Skip to content

Conversation

@sbulat
Copy link
Contributor

@sbulat sbulat commented Jun 4, 2025

In the recent update, bigdecimal now parses 1. inputs as 1, instead of throwing an exception (ruby/bigdecimal#302). With the change, monetize parses inputs like 2..30 as 2 now, but previously it would throw an exception, passed down from BigDecimal.
The spec is already in place: spec/monetize_spec.rb:406, but it won't fail until Ruby 3.4.0

This PR updates the code to preserve the behavior with the newest version of BigDecimal.

Additionally, from Ruby 3.4, BigDecimal is no longer part of the standard library, so this PR updates the Gemfile accordingly.

@sunny
Copy link
Member

sunny commented Jun 26, 2025

Can you add an entry to the changelog? 🙏🏻

@sbulat
Copy link
Contributor Author

sbulat commented Jul 1, 2025

Thanks, updated!

@sbulat sbulat mentioned this pull request Jul 1, 2025
Copy link
Member

@yukideluxe yukideluxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@yukideluxe yukideluxe merged commit 1ce4de6 into RubyMoney:main Jul 23, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants