Skip to content

Commit

Permalink
Merge branch 'main' into fix-money-only-cents-for-negative-money
Browse files Browse the repository at this point in the history
  • Loading branch information
semmons99 authored Mar 13, 2024
2 parents 9363e10 + 0815c28 commit 1868b87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2']
ruby-version: ['3.0', '3.1', '3.2', '3.3']
mongodb-version: ['4.4']
sqlite-version: ['3.0']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
Expand Down
1 change: 1 addition & 0 deletions money-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ Gem::Specification.new do |s|
s.metadata['changelog_uri'] = 'https://github.com/RubyMoney/money-rails/blob/master/CHANGELOG.md'
s.metadata['source_code_uri'] = 'https://github.com/RubyMoney/money-rails/'
s.metadata['bug_tracker_uri'] = 'https://github.com/RubyMoney/money-rails/issues'
s.metadata['rubygems_mfa_required'] = 'true'
end
end
2 changes: 1 addition & 1 deletion spec/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
value = Money.new(-12345600, "EUR")
symbol = Money::Currency.find(:eur).symbol

MoneyRails.default_format = {symbol_position: :after}
MoneyRails.default_format = { format: '%n%u' }
expect(value.format).to match(/#{symbol}\z/)

# Override with "classic" format options for backward compatibility
Expand Down
2 changes: 2 additions & 0 deletions spec/dummy/config/initializers/money.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# encoding : utf-8

MoneyRails.configure do |config|
Money.locale_backend = :i18n
Money.rounding_mode = BigDecimal::ROUND_HALF_UP

# To set the default currency
#
Expand Down

0 comments on commit 1868b87

Please sign in to comment.