Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Edwin Vlieg
Eloy
Evan Alter
Exoth
Felix Wolfsteller
Ferran Pelayo Monfort
Filipe Goncalves
Francisco Trindade
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Require Ruby >= 3.1 and I18n ~> 1.9
- **Potential breaking change**: Fix USDC decimals places from 2 to 6
- Expose Money::VERSION
- **Potential breaking change**: Fix MGA (Malagasy Ariary) to be a zero-decimal currency (changing subunit_to_unit from 5 to 1)
- Fix typo in ILS currency
- Add Caribbean Guilder (XCG) as replacement for Netherlands Antillean Gulden (ANG)
Expand Down
1 change: 1 addition & 0 deletions lib/money.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
require "i18n"
require "money/currency"
require "money/money"
require "money/version"
2 changes: 1 addition & 1 deletion lib/money/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class Money
VERSION = '6.19.0'
VERSION = '6.19.0'.freeze
end
6 changes: 6 additions & 0 deletions spec/money_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -986,4 +986,10 @@ def m.amount
expect(Money.default_bank).to be_instance_of(Money::Bank::SingleCurrency)
end
end

describe 'VERSION' do
it 'exposes a version with major, minor and patch level' do
expect(Money::VERSION).to match(/\d+.\d+.\d+/)
end
end
end