Sha256: 813aeda8f3c6e5a41c6f64b35dbf4b86e7fd2b8af6b4884b19f8d6be6c8309e6

Contents?: true

Size: 1.65 KB

Versions: 11

Compression:

Stored size: 1.65 KB

Contents

# 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         = ["mrkn@mrkn.jp"]

  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[
    LICENSE
    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

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
cloudsmith-api-2.0.13 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.7/bigdecimal.gemspec
cloudsmith-api-2.0.12 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.7/bigdecimal.gemspec
bigdecimal-3.1.7-java bigdecimal.gemspec
bigdecimal-3.1.7 bigdecimal.gemspec
cloudsmith-api-2.0.11 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.6/bigdecimal.gemspec
cloudsmith-api-2.0.10 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.6/bigdecimal.gemspec
cloudsmith-api-2.0.9 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.6/bigdecimal.gemspec
cloudsmith-api-2.0.8 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.6/bigdecimal.gemspec
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/bigdecimal-3.1.6/bigdecimal.gemspec
bigdecimal-3.1.6-java bigdecimal.gemspec
bigdecimal-3.1.6 bigdecimal.gemspec