Bump bundled bigdecimal to 3.2.1 (#13482)

This commit is contained in:
tomoya ishida 2025-05-31 18:31:17 +09:00 committed by GitHub
parent 2097d3794d
commit 49f35c917b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2025-05-31 09:31:31 +00:00
Merged-By: tompng <tomoyapenguin@gmail.com>
4 changed files with 3 additions and 7 deletions

View File

@ -135,7 +135,7 @@ The following bundled gems are updated.
* net-smtp 0.5.1 * net-smtp 0.5.1
* rbs 3.9.4 * rbs 3.9.4
* base64 0.3.0 * base64 0.3.0
* bigdecimal 3.2.0 * bigdecimal 3.2.1
* drb 2.2.3 * drb 2.2.3
* syslog 0.3.0 * syslog 0.3.0
* csv 3.3.4 * csv 3.3.4

View File

@ -25,7 +25,7 @@ racc 1.8.1 https://github.com/ruby/racc
mutex_m 0.3.0 https://github.com/ruby/mutex_m mutex_m 0.3.0 https://github.com/ruby/mutex_m
getoptlong 0.2.1 https://github.com/ruby/getoptlong getoptlong 0.2.1 https://github.com/ruby/getoptlong
base64 0.3.0 https://github.com/ruby/base64 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 observer 0.1.2 https://github.com/ruby/observer
abbrev 0.1.2 https://github.com/ruby/abbrev abbrev 0.1.2 https://github.com/ruby/abbrev
resolv-replace 0.1.1 https://github.com/ruby/resolv-replace resolv-replace 0.1.1 https://github.com/ruby/resolv-replace

View File

@ -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('0')).should == BigDecimal('0.9') (BigDecimal('0.888') - BigDecimal('0')).should == BigDecimal('0.9')
(BigDecimal('0.888') * BigDecimal('3')).should == BigDecimal('3') (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') (BigDecimal('0.888') / BigDecimal('3')).should == BigDecimal('0.3')
end end
@ -48,8 +46,6 @@ describe "BigDecimal.limit" do
it "picks the global precision when limit 0 specified" do it "picks the global precision when limit 0 specified" do
BigDecimalSpecs.with_limit(3) do BigDecimalSpecs.with_limit(3) do
BigDecimal('0.8888').add(BigDecimal('0'), 0).should == BigDecimal('0.889') 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.8888').sub(BigDecimal('0'), 0).should == BigDecimal('0.889')
BigDecimal('0.888').mult(BigDecimal('3'), 0).should == BigDecimal('2.66') BigDecimal('0.888').mult(BigDecimal('3'), 0).should == BigDecimal('2.66')
BigDecimal('0.8888').div(BigDecimal('3'), 0).should == BigDecimal('0.296') BigDecimal('0.8888').div(BigDecimal('3'), 0).should == BigDecimal('0.296')

View File

@ -31,7 +31,7 @@ describe :bigdecimal_quo, shared: true do
describe "with Object" do describe "with Object" do
it "tries to coerce the other operand to self" 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 = mock("Object")
object.should_receive(:coerce).with(@one).and_return([@one, @two]) object.should_receive(:coerce).with(@one).and_return([@one, @two])
@one.send(@method, object, *@object).should == BigDecimal("0.5") @one.send(@method, object, *@object).should == BigDecimal("0.5")