Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose Money::VERSION #1106

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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

Choose a reason for hiding this comment

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

Ok

Choose a reason for hiding this comment

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

Ok

5078034842796463

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 @@ -3,6 +3,7 @@
## Upcoming 7.0.0.alpha

- **Potential breaking change**: Fix USDC decimals places from 2 to 6
- Expose Money::VERSION

## 6.19.0

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 @@ -988,4 +988,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