summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomoya ishida <[email protected]>2025-05-31 18:31:17 +0900
committerGitHub <[email protected]>2025-05-31 09:31:17 +0000
commit49f35c917b35d33f10900443837ba79e58414879 (patch)
tree6d0b70c7d9aeec4a985f727ef56c2b443d0c2e49
parent2097d3794d94cca79e58128f85063ecd169e9ec0 (diff)
Bump bundled bigdecimal to 3.2.1 (#13482)
Notes
Notes: Merged-By: tompng <[email protected]>
-rw-r--r--NEWS.md2
-rw-r--r--gems/bundled_gems2
-rw-r--r--spec/ruby/library/bigdecimal/limit_spec.rb4
-rw-r--r--spec/ruby/library/bigdecimal/shared/quo.rb2
4 files changed, 3 insertions, 7 deletions
diff --git a/NEWS.md b/NEWS.md
index 38b71f493d..da22b86520 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -135,7 +135,7 @@ The following bundled gems are updated.
* net-smtp 0.5.1
* rbs 3.9.4
* base64 0.3.0
-* bigdecimal 3.2.0
+* bigdecimal 3.2.1
* drb 2.2.3
* syslog 0.3.0
* csv 3.3.4
diff --git a/gems/bundled_gems b/gems/bundled_gems
index 7e0d3f91ca..3690c6caa5 100644
--- a/gems/bundled_gems
+++ b/gems/bundled_gems
@@ -25,7 +25,7 @@ racc 1.8.1 https://github.com/ruby/racc
mutex_m 0.3.0 https://github.com/ruby/mutex_m
getoptlong 0.2.1 https://github.com/ruby/getoptlong
base64 0.3.0 https://github.com/ruby/base64
-bigdecimal 3.2.0 https://github.com/ruby/bigdecimal
+bigdecimal 3.2.1 https://github.com/ruby/bigdecimal
observer 0.1.2 https://github.com/ruby/observer
abbrev 0.1.2 https://github.com/ruby/abbrev
resolv-replace 0.1.1 https://github.com/ruby/resolv-replace
diff --git a/spec/ruby/library/bigdecimal/limit_spec.rb b/spec/ruby/library/bigdecimal/limit_spec.rb
index 61e0d07e68..75cbc8b55c 100644
--- a/spec/ruby/library/bigdecimal/limit_spec.rb
+++ b/spec/ruby/library/bigdecimal/limit_spec.rb
@@ -23,8 +23,6 @@ describe "BigDecimal.limit" do
(BigDecimal('0.888') + BigDecimal('0')).should == BigDecimal('0.9')
(BigDecimal('0.888') - BigDecimal('0')).should == BigDecimal('0.9')
(BigDecimal('0.888') * BigDecimal('3')).should == BigDecimal('3')
-
- skip "TODO: BigDecimal 3.2.0" if BigDecimal::VERSION == '3.2.0'
(BigDecimal('0.888') / BigDecimal('3')).should == BigDecimal('0.3')
end
@@ -48,8 +46,6 @@ describe "BigDecimal.limit" do
it "picks the global precision when limit 0 specified" do
BigDecimalSpecs.with_limit(3) do
BigDecimal('0.8888').add(BigDecimal('0'), 0).should == BigDecimal('0.889')
-
- skip "TODO: BigDecimal 3.2.0" if BigDecimal::VERSION == '3.2.0'
BigDecimal('0.8888').sub(BigDecimal('0'), 0).should == BigDecimal('0.889')
BigDecimal('0.888').mult(BigDecimal('3'), 0).should == BigDecimal('2.66')
BigDecimal('0.8888').div(BigDecimal('3'), 0).should == BigDecimal('0.296')
diff --git a/spec/ruby/library/bigdecimal/shared/quo.rb b/spec/ruby/library/bigdecimal/shared/quo.rb
index ec6d5b49e9..18ff2fe9a5 100644
--- a/spec/ruby/library/bigdecimal/shared/quo.rb
+++ b/spec/ruby/library/bigdecimal/shared/quo.rb
@@ -31,7 +31,7 @@ describe :bigdecimal_quo, shared: true do
describe "with Object" do
it "tries to coerce the other operand to self" do
- skip "TODO: BigDecimal 3.2.0" if BigDecimal::VERSION == '3.2.0'
+ skip if @method == :div
object = mock("Object")
object.should_receive(:coerce).with(@one).and_return([@one, @two])
@one.send(@method, object, *@object).should == BigDecimal("0.5")