bigdecimal 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bigdecimal.gemspec +2 -1
  3. data/lib/bigdecimal.rb +10 -0
  4. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59d754906202729560ab57b162e8989d1cc4b65f1632c21f9682d60724aba44f
4
- data.tar.gz: 0242f55f71651afdcee0eed65384eddc3ae56f35c3cc7adfdcb1bf2565893d8e
3
+ metadata.gz: ba59492c4c5d6d57a15b9a02b25d8587257d66a083a80eba82ad65d2209a77c5
4
+ data.tar.gz: d25d0be615ff46b7f38a64ddedda4964c965ef9f9a20fc1a7a79acfa3a297151
5
5
  SHA512:
6
- metadata.gz: 1d718945ceb15ac60452c6195442420562b6cf06058bc106c5227e712d861c6bd6d3f08a0258fa3736dfd35d4d114145cadd8d06632278a447aef7e4c9cee72c
7
- data.tar.gz: 36bf850a957aafebe21a62d14154dd68708974c086135eed2273861074644d1c3a2002e96970d77dc7abf0281278cb7b1a8c177269bfdae9f1ff092440dde934
6
+ metadata.gz: 5e3de510a188c4658be5d4e6e163a81622aecd60d99d7ff605f18c180fff04fbb2bd327d18b2975e688fbc12c2ed9a02e25f3d94956872156f3b66c0256e4911
7
+ data.tar.gz: c2db42684202a56b218164603222e6f511c53d9b91545c0a1b142e0570c421b0e16f6ec3d883267c92d6924fa1192fd73fea2eca0390afed5c5c1dcd7b986f21
data/bigdecimal.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- bigdecimal_version = '1.4.0'
3
+ bigdecimal_version = '1.4.1'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "bigdecimal"
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  ext/bigdecimal/extconf.rb
25
25
  ext/bigdecimal/util/extconf.rb
26
26
  ext/bigdecimal/util/util.c
27
+ lib/bigdecimal.rb
27
28
  lib/bigdecimal/jacobian.rb
28
29
  lib/bigdecimal/ludcmp.rb
29
30
  lib/bigdecimal/math.rb
data/lib/bigdecimal.rb ADDED
@@ -0,0 +1,10 @@
1
+ begin
2
+ require "#{RUBY_VERSION[/\d+\.\d+/]}/bigdecimal.so"
3
+ rescue LoadError
4
+ require 'bigdecimal.so'
5
+ end
6
+
7
+ def BigDecimal.new(*args, **kwargs)
8
+ warn "BigDecimal.new is deprecated; use BigDecimal() method instead.", uplevel: 1
9
+ BigDecimal(*args, **kwargs)
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigdecimal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Murata
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-12-23 00:00:00.000000000 Z
13
+ date: 2018-12-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -100,6 +100,7 @@ files:
100
100
  - ext/bigdecimal/extconf.rb
101
101
  - ext/bigdecimal/util/extconf.rb
102
102
  - ext/bigdecimal/util/util.c
103
+ - lib/bigdecimal.rb
103
104
  - lib/bigdecimal/jacobian.rb
104
105
  - lib/bigdecimal/ludcmp.rb
105
106
  - lib/bigdecimal/math.rb
@@ -127,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
128
  - !ruby/object:Gem::Version
128
129
  version: '0'
129
130
  requirements: []
130
- rubygems_version: 3.0.0
131
+ rubygems_version: 3.0.1
131
132
  signing_key:
132
133
  specification_version: 4
133
134
  summary: Arbitrary-precision decimal floating-point number library.