bigdecimal 3.0.2 → 3.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94cacf0d3ea1fe8d70fc866530799e00fe34d6c86c9497a77c2ee8b1f0adddab
4
- data.tar.gz: 2d9503ddea18e93370340991789e2f3bb6690e4449e6805483e3773b7891bc35
3
+ metadata.gz: f5b29096324f4d5c2effbe82e606b7c4d15dcfc51d447f387389fd2a30a0a399
4
+ data.tar.gz: 7430f646c26f19d709da049de86dc3befe2226900d7eb246ae6aa74fa40be284
5
5
  SHA512:
6
- metadata.gz: bfbb161000111a0373c2981fe70467d02a89fa15d212ec6c1ba8cde81fc8db02d071aed10ba55af71cf4b39653b40f7a34fcb54b027aae3e71908e5030cb4192
7
- data.tar.gz: edbd1fc536b280ff310f3d436e5e204ca17fe00a09c61211585acb7a270eae1562d3cc353778ca13beac8b09d74c03951ff471276beafa2fe3156826bb03f496
6
+ metadata.gz: c6eb24b2bdde0a88af4df1fd80eaa5553a4dfbba55351c8f9b4c9b4124e7c77d7ac1ea0579d5c2b4a30ecd23ebf0e9bdb436624888cd4e02f87e0a295391a9c3
7
+ data.tar.gz: 7c4f70bfdc422a0188c8f99aeaaf5002475457859bbe0a7d2bed95d06c61b47fa89deec2bb5f3e633858f3abe18d4ca374f22b2779a256a50e110370e067e0e1
data/LICENSE ADDED
@@ -0,0 +1,56 @@
1
+ Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
2
+ You can redistribute it and/or modify it under either the terms of the
3
+ 2-clause BSDL (see the file BSDL), or the conditions below:
4
+
5
+ 1. You may make and give away verbatim copies of the source form of the
6
+ software without restriction, provided that you duplicate all of the
7
+ original copyright notices and associated disclaimers.
8
+
9
+ 2. You may modify your copy of the software in any way, provided that
10
+ you do at least ONE of the following:
11
+
12
+ a) place your modifications in the Public Domain or otherwise
13
+ make them Freely Available, such as by posting said
14
+ modifications to Usenet or an equivalent medium, or by allowing
15
+ the author to include your modifications in the software.
16
+
17
+ b) use the modified software only within your corporation or
18
+ organization.
19
+
20
+ c) give non-standard binaries non-standard names, with
21
+ instructions on where to get the original software distribution.
22
+
23
+ d) make other distribution arrangements with the author.
24
+
25
+ 3. You may distribute the software in object code or binary form,
26
+ provided that you do at least ONE of the following:
27
+
28
+ a) distribute the binaries and library files of the software,
29
+ together with instructions (in the manual page or equivalent)
30
+ on where to get the original distribution.
31
+
32
+ b) accompany the distribution with the machine-readable source of
33
+ the software.
34
+
35
+ c) give non-standard binaries non-standard names, with
36
+ instructions on where to get the original software distribution.
37
+
38
+ d) make other distribution arrangements with the author.
39
+
40
+ 4. You may modify and include the part of the software into any other
41
+ software (possibly commercial). But some files in the distribution
42
+ are not written by the author, so that they are not under these terms.
43
+
44
+ For the list of those files and their copying conditions, see the
45
+ file LEGAL.
46
+
47
+ 5. The scripts and library files supplied as input to or produced as
48
+ output from the software do not automatically fall under the
49
+ copyright of the software, but belong to whomever generated them,
50
+ and may be sold commercially, and may be aggregated with this
51
+ software.
52
+
53
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
54
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
55
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
56
+ PURPOSE.
data/bigdecimal.gemspec CHANGED
@@ -1,24 +1,30 @@
1
1
  # coding: utf-8
2
2
 
3
- bigdecimal_version = '3.0.2'
3
+ name = File.basename(__FILE__, '.*')
4
+ source_version = ["", "ext/#{name}/"].find do |dir|
5
+ begin
6
+ break File.foreach(File.join(__dir__, "#{dir}#{name}.c")) {|line|
7
+ break $1.sub("-", ".") if /^#define\s+#{name.upcase}_VERSION\s+"(.+)"/o =~ line
8
+ }
9
+ rescue Errno::ENOENT
10
+ end
11
+ end or raise "can't find #{name.upcase}_VERSION"
4
12
 
5
13
  Gem::Specification.new do |s|
6
- s.name = "bigdecimal"
7
- s.version = bigdecimal_version
14
+ s.name = name
15
+ s.version = source_version
8
16
  s.authors = ["Kenta Murata", "Zachary Scott", "Shigeo Kobayashi"]
9
17
  s.email = ["mrkn@mrkn.jp"]
10
18
 
11
19
  s.summary = "Arbitrary-precision decimal floating-point number library."
12
20
  s.description = "This library provides arbitrary-precision decimal floating-point number class."
13
21
  s.homepage = "https://github.com/ruby/bigdecimal"
14
- s.license = "Ruby"
22
+ s.licenses = ["Ruby", "BSD-2-Clause"]
15
23
 
16
24
  s.require_paths = %w[lib]
17
- s.extensions = %w[ext/bigdecimal/extconf.rb]
18
25
  s.files = %w[
26
+ LICENSE
19
27
  bigdecimal.gemspec
20
- ext/bigdecimal/bigdecimal.c
21
- ext/bigdecimal/bigdecimal.h
22
28
  lib/bigdecimal.rb
23
29
  lib/bigdecimal/jacobian.rb
24
30
  lib/bigdecimal/ludcmp.rb
@@ -29,11 +35,21 @@ Gem::Specification.new do |s|
29
35
  sample/nlsolve.rb
30
36
  sample/pi.rb
31
37
  ]
38
+ if Gem::Platform === s.platform and s.platform =~ 'java' or RUBY_ENGINE == 'jruby'
39
+ s.platform = 'java'
40
+ else
41
+ s.extensions = %w[ext/bigdecimal/extconf.rb]
42
+ s.files += %w[
43
+ ext/bigdecimal/bigdecimal.c
44
+ ext/bigdecimal/bigdecimal.h
45
+ ext/bigdecimal/bits.h
46
+ ext/bigdecimal/feature.h
47
+ ext/bigdecimal/missing.c
48
+ ext/bigdecimal/missing.h
49
+ ext/bigdecimal/missing/dtoa.c
50
+ ext/bigdecimal/static_assert.h
51
+ ]
52
+ end
32
53
 
33
- s.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
34
-
35
- s.add_development_dependency "rake", ">= 12.3.3"
36
- s.add_development_dependency "rake-compiler", ">= 0.9"
37
- s.add_development_dependency "minitest", "< 5.0.0"
38
- s.add_development_dependency "pry"
54
+ s.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
39
55
  end