File tree Expand file tree Collapse file tree 5 files changed +10
-1
lines changed
Expand file tree Collapse file tree 5 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ Edwin Vlieg
3535Eloy
3636Evan Alter
3737Exoth
38+ Felix Wolfsteller
3839Ferran Pelayo Monfort
3940Filipe Goncalves
4041Francisco Trindade
Original file line number Diff line number Diff line change 44
55- Require Ruby >= 3.1 and I18n ~ > 1.9
66- ** Potential breaking change** : Fix USDC decimals places from 2 to 6
7+ - Expose Money::VERSION
78- ** Potential breaking change** : Fix MGA (Malagasy Ariary) to be a zero-decimal currency (changing subunit_to_unit from 5 to 1)
89- Fix typo in ILS currency
910- Add Caribbean Guilder (XCG) as replacement for Netherlands Antillean Gulden (ANG)
Original file line number Diff line number Diff line change 44require "i18n"
55require "money/currency"
66require "money/money"
7+ require "money/version"
Original file line number Diff line number Diff line change 11class Money
2- VERSION = '6.19.0'
2+ VERSION = '6.19.0' . freeze
33end
Original file line number Diff line number Diff line change @@ -986,4 +986,10 @@ def m.amount
986986 expect ( Money . default_bank ) . to be_instance_of ( Money ::Bank ::SingleCurrency )
987987 end
988988 end
989+
990+ describe 'VERSION' do
991+ it 'exposes a version with major, minor and patch level' do
992+ expect ( Money ::VERSION ) . to match ( /\d +.\d +.\d +/ )
993+ end
994+ end
989995end
You can’t perform that action at this time.
0 commit comments