Skip to content

Conversation

@yukideluxe
Copy link
Member

Hello @RubyMoney/core!

We are bumping the major version of this gem to release the unreleased changes and enforce it to use the latest version of money! πŸ™†πŸ»β€β™€οΈ

@sunny sunny changed the title bump to 2.0.0 Bump to 2.0.0 Dec 4, 2025
sunny
sunny previously approved these changes Dec 4, 2025
Copy link
Member Author

@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.

@RubyMoney/core this is ready for review! I could not help doing some housekeeping changes based on changes we've done in the money gem 😳


computed_currency || fallback_currency || Money.default_currency
found = computed_currency || fallback_currency || Money.default_currency
raise Money::Currency::UnknownCurrency unless found
Copy link
Member Author

@yukideluxe yukideluxe Dec 10, 2025

Choose a reason for hiding this comment

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

@sunny I found the commit that caused this! RubyMoney/money@5c71447

Before adding the @default_currency.nil? condition, the code was initializing a currency with Money::Currency.new(nil) and then the Money::Currency::UnknownCurrency which was causing Money.default_currency to raise that error.

One could argue that we should differentiate between the Money::Currency::NoCurrency and Money::Currency::UnknownCurrency errors but I think this is OK to avoid touching more code and keep backwards compatibility. We are wrapping the error on Monetize::ParseError instead, anyways! πŸ™πŸ»

Copy link
Member

Choose a reason for hiding this comment

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

Awesome, thanks for looking more into this! πŸ‘πŸ»

spec.homepage = 'https://github.com/RubyMoney/monetize'
spec.license = 'MIT'
Gem::Specification.new do |s|
s.name = "monetize"
Copy link
Member Author

Choose a reason for hiding this comment

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

I just thought it would be easier for us if all the gems in this org keep the same structure 😊

Copy link
Member

@sunny sunny left a comment

Choose a reason for hiding this comment

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

πŸš€

@yukideluxe yukideluxe merged commit dcd4f95 into main Dec 11, 2025
6 checks passed
@yukideluxe yukideluxe deleted the jl-bump-to-2.0.0 branch December 11, 2025 09:14
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