https://github.com/RubyMoney/money

sort by:
Revision Author Date Message Commit Date
37e183a Merge pull request #1091 from tagliala/chore/remove-legacy-checks Remove legacy Ruby version conditionals 15 April 2024, 12:37:04 UTC
7ff3695 Merge pull request #1089 from tagliala/bugfix/1081-fix-usdc Change USDC decimal places from 2 to 6 15 April 2024, 12:36:42 UTC
5b02fc0 Update CHANGELOG.md 15 April 2024, 12:36:03 UTC
62652c8 Remove legacy Ruby version conditionals Also: - Test against JRuby 9.4 - Remove conditional installation of `json` on JRuby, because it appears to be part of the standard library on all supported Ruby versions - Move `rbs` and `typeprof` to Gemfile and conditionally install them only on supported Ruby platforms Note: the minimum JRuby version which passes the specs is 9.4.2.0 24 March 2024, 11:44:09 UTC
a0559b9 Change USDC decimal places from 2 to 6 This fix can introduce a breaking change Before: ``` Money.new(100, "USDC").to_s => "1.00" ``` After: ``` Money.new(100, "USDC").to_s => "0.000100" ``` Close #1081 22 March 2024, 13:14:36 UTC
73b84b5 Merge pull request #1054 from DalenW/rbs RBS 18 March 2024, 12:41:30 UTC
20d54f8 Merge branch 'main' into rbs 18 March 2024, 12:40:28 UTC
3a45a68 Merge pull request #1087 from tagliala/chore/1085-1086-bigdecimal-ruby-version Require Ruby 3.1 and fix bigdecimal requirement 13 March 2024, 17:03:05 UTC
815b618 Remove conditional on bigdecimal - bigdecimal installs and works fine on all supported ruby versions - The condition was checking for ruby version to be greater than 6.19, which will not happen soon - The condition is also evaluated on `rubygems`, and it is not correct Close #1085 13 March 2024, 16:28:42 UTC
69d654b Set minimum Ruby version to 3.1 Drop all EOL Ruby versions Close #1086 13 March 2024, 16:28:34 UTC
2ef600a Merge pull request #1067 from masoo/jpy_formatting Fix the issue where japanese formatting is no longer possible. 13 March 2024, 13:32:25 UTC
656aab2 Merge branch 'main' into jpy_formatting 13 March 2024, 13:31:55 UTC
79989af Merge pull request #1068 from simonneutert/ruby-stdlib-deprecation-warning Fixes ruby deprecation warning regarding `bigdecimal` will be moved out from stdlib soon 13 March 2024, 13:31:21 UTC
c473f3e Merge branch 'main' into ruby-stdlib-deprecation-warning 13 March 2024, 13:31:01 UTC
51497ed Merge pull request #1072 from svoop/patch-1 Fix thousands separator for CHF 13 March 2024, 13:29:44 UTC
ae0cb46 Merge pull request #1077 from tagliala/security/opt-in-for-mfa Opt-in for MFA requirement 13 March 2024, 13:29:22 UTC
0775030 Merge pull request #1079 from tagliala/chore/1076-fix-deprecation-warning Fix deprecation warning when running specs 13 March 2024, 13:29:05 UTC
6a50ae7 Merge pull request #1080 from tagliala/chore/1066-improve-changelog Add SLE to 6.18.0 changelog 13 March 2024, 13:28:45 UTC
184d6ef Merge pull request #1083 from tagliala/chore/test-against-ruby-33 Test against Ruby 3.3 13 March 2024, 13:28:19 UTC
d17da73 Test against Ruby 3.3 Ruby 3.3 is the stable Ruby version at the moment. Also updates the checkout action to the latest available to prevent a deprecation warning related to Node 16 based actions. 08 March 2024, 13:36:38 UTC
7125810 Add SLE to 6.18.0 changelog Ref: #1023 Close #1066 [ci skip] 06 March 2024, 16:20:14 UTC
2a335e6 Opt-in for MFA requirement Make the gem more secure by requiring that all privileged operations by any of the owners require OTP. Ref: https://guides.rubygems.org/mfa-requirement-opt-in/ 06 March 2024, 16:19:57 UTC
042c855 Fix implicit block expectation syntax warning Close #1076 06 March 2024, 16:19:31 UTC
20dcec8 Change `raise_exception` to `raise_error` `raise_error` better clarifies what is expected from specs and is also shorter - `ArgumentError` and `TypeError` are errors - `DifferentCurrencyError`, `UndefinedSmallestDenomination`, and `UnknownRate` inherit from `Error` - `UnknownCurrency` inherits from `ArgumentError` 06 March 2024, 16:19:31 UTC
faec0fb feat: Add release notes for version 6.19.0 06 March 2024, 12:57:40 UTC
d7e7f45 Merge pull request #1082 from tirosh/increased_precision Improves Precision and Simplifies Allocation Logic 06 March 2024, 12:55:22 UTC
4dfce9e Fixes spec due to regression in df6525f3 06 March 2024, 08:49:30 UTC
d3c8f19 Adds author 05 March 2024, 22:10:50 UTC
f956028 Improves Precision and Simplifies Allocation Logic - Converts all numeric parameters to BigDecimal when any is a BigDecimal, Float, or Rational, enhancing calculation precision. - Removes obsolete round-robin penny distribution for a more straightforward allocation approach. 05 March 2024, 21:03:06 UTC
7738f91 Fix thousands separator for CHF see https://de.wikipedia.org/wiki/Zifferngruppierung#Regelung_in_den_L%C3%A4ndern 17 February 2024, 13:27:09 UTC
f2fd337 changelog and author entry 20 January 2024, 22:21:17 UTC
447bdb7 adds bigdecimal as a dependency for future versions 20 January 2024, 22:21:05 UTC
ca6940d when using the gem, the following deprecation warning is thrown: warning: bigdecimal was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec. 20 January 2024, 22:18:43 UTC
95c4911 specs are green again :tada: 20 January 2024, 22:15:19 UTC
d9080d1 Fix the issue where formatting is no longer possible. 19 January 2024, 15:35:27 UTC
092ecc7 chore: Update copyright year to 2024 01 January 2024, 16:11:12 UTC
84a3a4b Merge branch 'main' into rbs 01 October 2023, 18:04:20 UTC
ccddfdc Merge pull request #1056 from nicholalexander/bug.fix-format-deprecation-warning-message Update deprecation message to suggest correct formatting. 01 October 2023, 18:02:06 UTC
85184d8 Merge branch 'main' into bug.fix-format-deprecation-warning-message 01 October 2023, 18:01:46 UTC
2e4748a Merge pull request #1055 from kholbekj/patch-1 Add space to CHF format 01 October 2023, 18:01:19 UTC
d510acf Update deprecation message to suggest correct formatting. The current deprecation message for the before or after symbol suggests using a format string that includes spaces. This is a small change so that the deprecation warning is more useful. Co-authored-by: Alec Clarke <alec.clarke.dev@gmail.com> 09 June 2023, 16:32:16 UTC
df6525f Update spec 05 June 2023, 12:13:36 UTC
73892e2 Add space to CHF format 05 June 2023, 12:05:45 UTC
b6652a4 move manifest.yml 14 May 2023, 01:48:14 UTC
e3c24be rates store 13 May 2023, 20:42:28 UTC
9dccc52 more money 13 May 2023, 20:38:59 UTC
5345db6 bank 13 May 2023, 20:10:42 UTC
761a21b money and currency 13 May 2023, 19:55:01 UTC
cde394e add gems 13 May 2023, 19:54:50 UTC
a7a9d2e Merge pull request #1051 from friendlyantz/patch-1 explicit declaration of i18n locales 29 March 2023, 14:01:39 UTC
b2a7c4a explicit declaration of i18n locales `.format` requires i18n locales explicit declaration 22 March 2023, 02:22:44 UTC
7210ba2 Merge pull request #1049 from dirceu-jr/fix/change-pen-decimal-mark-and-thousands-separator Change Peruvian Sol (PEN) decimal mark and thousands separator 05 February 2023, 17:15:50 UTC
b17ebda fix: change PEN mark and separator 29 January 2023, 18:55:26 UTC
5a8677c Merge pull request #1046 from RubyMoney/copyright-2023 update copyright 2023 17 January 2023, 17:05:16 UTC
465d13f update copyright 2023 17 January 2023, 17:00:59 UTC
c0462e9 Merge pull request #1044 from mroach/remove/hrk change(data): remove HRK (Croatian Kuna) 17 January 2023, 16:42:34 UTC
3206c75 change(data): move HRK (Croatian Kuna) definition On 2023-01-01, Croatia adopted the Euro and the HRK became obsolete. 16 January 2023, 07:58:57 UTC
de30c06 Merge pull request #1040 from tagliala/chore/improve-ci Improve CI 02 January 2023, 02:51:12 UTC
e164e23 Test against Ruby 3.2 At the moment, Ruby 3.2 is in RC and GitHub actions support it 22 December 2022, 11:06:56 UTC
019c1f9 Update deprecated CI action Fixes a warning related to Node 12 actions 22 December 2022, 11:06:47 UTC
9c5f223 Merge pull request #1036 from cgunther/zar-fix-decimal_mark-and-thousands_separator Correct ZAR decimal mark (,) and thousands separator (space) 21 December 2022, 22:45:36 UTC
5570ac0 Merge branch 'main' into zar-fix-decimal_mark-and-thousands_separator 21 December 2022, 22:45:29 UTC
bc7e1f6 Merge pull request #1034 from Mongey/cm-document-bug Ensure Money::Allocation.generate allocate all pennies 21 December 2022, 22:45:05 UTC
bc9dc0d Merge branch 'main' into cm-document-bug 21 December 2022, 22:44:57 UTC
f569947 Merge pull request #1032 from jackspiva/main Add `Money.from_dollars` initializer for explicitness 21 December 2022, 22:44:51 UTC
030aa83 Merge branch 'main' into main 21 December 2022, 22:44:44 UTC
222cb1a Merge pull request #1030 from justcute/fix-usdc-typo fix usdc typo 21 December 2022, 22:44:36 UTC
ef1798a Merge branch 'main' into fix-usdc-typo 21 December 2022, 22:44:28 UTC
20b7557 Merge pull request #1026 from byrneg7/main Update html_entity for euro 21 December 2022, 22:44:21 UTC
af05db0 Merge branch 'main' into main 21 December 2022, 22:44:14 UTC
e5a10c9 Merge pull request #1023 from niallwingham/niallwingham/add-sle-currency Add new SLE currency 21 December 2022, 22:43:48 UTC
68f6e14 Merge branch 'main' into niallwingham/add-sle-currency 21 December 2022, 22:43:38 UTC
a0dda58 Merge pull request #1022 from smtlaissezfaire/fix_ar_custom_exchange_rate_docs Fix ActiveRecord custom exchange rate docs 21 December 2022, 22:43:33 UTC
b5deb88 Merge branch 'main' into fix_ar_custom_exchange_rate_docs 21 December 2022, 22:43:27 UTC
f927388 Merge pull request #1013 from yukideluxe/georgian-lari update Georgian Lari symbol 21 December 2022, 22:43:19 UTC
80458c0 Merge branch 'main' into georgian-lari 21 December 2022, 22:43:12 UTC
e848ae0 Merge pull request #1011 from kofiasare/main Redis store example implementation 21 December 2022, 22:42:49 UTC
ff05a08 Merge branch 'main' into main 21 December 2022, 22:42:41 UTC
6195333 Merge pull request #1008 from petergoldstein/feature/add_ruby_3_1 Add Ruby 3.1 to CI 21 December 2022, 22:42:32 UTC
5c4dff2 update AUTHORS and CHANGELOG 23 November 2022, 20:48:56 UTC
e8dd681 update Georgian Lari symbol 23 November 2022, 20:48:36 UTC
54068c1 Correct ZAR decimal mark (,) and thousands separator (space) Got a user report that the period decimal mark and comma thousands separator was incorrect. Best source I could find to confirm was the Editorial Style Guide from the Government Communications and Information System department of the Republic of South Africa: https://www.gcis.gov.za/sites/default/files/editorial_styleguide_2011.pdf From page 2: > Use the decimal comma, not the decimal point: 17,4 million > Use a space, not commas, to indicate thousands: 3 000, 20 000. Peeking through the project's history, both options seem to have been wrong since decimal mark and thousands separator options were added to the library, no sign that they were consciously set to their incorrect values. 03 November 2022, 03:17:47 UTC
920854d Move test 28 September 2022, 23:09:13 UTC
88729b2 Correctly handle allocation of negative amounts 28 September 2022, 21:56:51 UTC
bdda88c Implement a second pass, round-robin allocation of pennies 28 September 2022, 20:29:59 UTC
41dc069 Document issue with Money::Allocation.generate leaving pennies 28 September 2022, 20:21:19 UTC
57a73d8 Add Money.from_dollars initializer for explicitness Similar to https://github.com/RubyMoney/money/pull/984. This adds a new more explicit initializer `Money.from_dollars` that aliases `Money.from_amount`. 28 September 2022, 19:16:35 UTC
e7e0214 fix usdc typo 01 September 2022, 15:56:39 UTC
9fcc375 Update html_entity for euro Update CHANGELOG.md 16 August 2022, 09:12:17 UTC
73e67db Add new SLE currency This is the "New Leone" introduced to Sierra Leone in July 2022. The previous currency (SLL) will remain valid until October 2022. See: * https://www.reuters.com/article/leone-currency-idAFL8N2YI2E9 * https://en.wikipedia.org/w/index.php?title=ISO_4217&diff=1095269772&oldid=1095247155 27 July 2022, 02:09:37 UTC
3a3d56e Fix AR custom exchange rate docs; without this method, calling save! would throw an error in test suites, bombing the whole suite. Example stacktrace: /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `marshal_dump' for MyExchangeRateARClass:Class (NoMethodError) from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/attr_encrypted-3.1.0/lib/attr_encrypted.rb:306:in `method_missing' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/attr_encrypted-3.1.0/lib/attr_encrypted/adapters/active_record.rb:131:in `method_missing_with_attr_encrypted' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/money-6.13.8/lib/money/bank/variable_exchange.rb:69:in `marshal_dump' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest/test.rb:205:in `dump' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest/test.rb:205:in `sanitize_exception' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest/test.rb:201:in `rescue in capture_exceptions' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest/test.rb:194:in `capture_exceptions' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest/test.rb:95:in `block (2 levels) in run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:281:in `time_it' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest/test.rb:94:in `block in run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:376:in `on_signal' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest/test.rb:221:in `with_info_handler' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest/test.rb:93:in `run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/bundler/gems/minitest-reporters-0996340031d4/lib/minitest/reporters.rb:48:in `run_with_hooks' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:1042:in `run_one_method' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:350:in `run_one_method' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:337:in `block (2 levels) in run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:336:in `each' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:336:in `block in run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:376:in `on_signal' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:363:in `with_info_handler' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:335:in `run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/railties-6.1.5.1/lib/rails/test_unit/line_filtering.rb:10:in `run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:169:in `block in __run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:169:in `map' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:169:in `__run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:146:in `run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/minitest-5.15.0/lib/minitest.rb:73:in `block in autorun' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/fork_tracker.rb:8:in `fork' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/fork_tracker.rb:8:in `fork' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/fork_tracker.rb:27:in `fork' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/fork_tracker.rb:8:in `fork' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/fork_tracker.rb:27:in `fork' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/spring-2.1.1/lib/spring/application.rb:180:in `serve' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/spring-2.1.1/lib/spring/application.rb:145:in `block in run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/spring-2.1.1/lib/spring/application.rb:139:in `loop' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/spring-2.1.1/lib/spring/application.rb:139:in `run' from /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/spring-2.1.1/lib/spring/application/boot.rb:19:in `<top (required)>' from <internal:/opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require' from <internal:/opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require' from -e:1:in `<main>' /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/validations.rb:80:in `raise_validation_error': Validation failed: "my custom validation message". (ActiveRecord::RecordInvalid) 12 July 2022, 21:03:59 UTC
e0b5120 Update CHANGELOG.md and AUTHORS 10 May 2022, 16:59:37 UTC
9de5305 Add Ruby 3.1 to CI 10 May 2022, 16:58:02 UTC
7de3b51 Merge pull request #1017 from tweymuth/add-stn Add Second Dobra (STN) from Sao Tome and Principe 01 May 2022, 21:47:37 UTC
70cb56e Add second Dobra (STN) from Sao Tome and Principe 25 April 2022, 15:00:11 UTC
845b2aa Merge pull request #1016 from rramsden/feature-stablecoins Add USDC stablecoin 21 April 2022, 12:07:56 UTC
241d921 Add USDC stablecoin 21 April 2022, 04:45:45 UTC
ffb611f Update README.md Add a Redis store implementation to save exchange rates. 02 March 2022, 14:20:52 UTC
5eccb5e Update README.md 02 March 2022, 13:57:16 UTC
2d9153b Merge pull request #1006 from RubyMoney/copyright update copyright 16 January 2022, 17:24:30 UTC
back to top