diff options
author | Hiroshi SHIBATA <[email protected]> | 2024-01-17 09:59:48 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-01-18 07:44:13 +0900 |
commit | 2b0766113b35baf188bcb40e7da36a27423a2149 (patch) | |
tree | 0f67cfc62dd775af527568b038c9b9a6c2dabcb1 /ext/bigdecimal/bigdecimal.gemspec | |
parent | db9f5fc91620b799c8829d0ca69bf72564a16e14 (diff) |
Extract bigdecimal as bundled gems
Diffstat (limited to 'ext/bigdecimal/bigdecimal.gemspec')
-rw-r--r-- | ext/bigdecimal/bigdecimal.gemspec | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/ext/bigdecimal/bigdecimal.gemspec b/ext/bigdecimal/bigdecimal.gemspec deleted file mode 100644 index f9f3b45616..0000000000 --- a/ext/bigdecimal/bigdecimal.gemspec +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -name = File.basename(__FILE__, '.*') -source_version = ["", "ext/#{name}/"].find do |dir| - begin - break File.foreach(File.join(__dir__, "#{dir}#{name}.c")) {|line| - break $1.sub("-", ".") if /^#define\s+#{name.upcase}_VERSION\s+"(.+)"/o =~ line - } - rescue Errno::ENOENT - end -end or raise "can't find #{name.upcase}_VERSION" - -Gem::Specification.new do |s| - s.name = name - s.version = source_version - s.authors = ["Kenta Murata", "Zachary Scott", "Shigeo Kobayashi"] - s.email = ["[email protected]"] - - s.summary = "Arbitrary-precision decimal floating-point number library." - s.description = "This library provides arbitrary-precision decimal floating-point number class." - s.homepage = "https://github.com/ruby/bigdecimal" - s.licenses = ["Ruby", "BSD-2-Clause"] - - s.require_paths = %w[lib] - s.files = %w[ - bigdecimal.gemspec - lib/bigdecimal.rb - lib/bigdecimal/jacobian.rb - lib/bigdecimal/ludcmp.rb - lib/bigdecimal/math.rb - lib/bigdecimal/newton.rb - lib/bigdecimal/util.rb - sample/linear.rb - sample/nlsolve.rb - sample/pi.rb - ] - if Gem::Platform === s.platform and s.platform =~ 'java' or RUBY_ENGINE == 'jruby' - s.platform = 'java' - else - s.extensions = %w[ext/bigdecimal/extconf.rb] - s.files += %w[ - ext/bigdecimal/bigdecimal.c - ext/bigdecimal/bigdecimal.h - ext/bigdecimal/bits.h - ext/bigdecimal/feature.h - ext/bigdecimal/missing.c - ext/bigdecimal/missing.h - ext/bigdecimal/missing/dtoa.c - ext/bigdecimal/static_assert.h - ] - end - - s.required_ruby_version = Gem::Requirement.new(">= 2.5.0") -end |