money
money copied to clipboard
A Ruby Library for dealing with money and currency conversion.
Quoting from: https://en.wikipedia.org/wiki/Sierra_Leonean_leone > On 1 July 2022, a new leone (ISO 4217 code: SLE) was introduced, worth 1000 SLL.[[1]](https://en.wikipedia.org/wiki/Sierra_Leonean_leone#cite_note-1) Quoting from: https://bsl.gov.sl/Redenomination_Rationale.html > Consistent with the BSL Act 2019...
May one of the rubygems.org owners please publish the latest version of the gem? Thank-you in advance!
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
Without this method, calling save! throws an error that causes test suites to bomb. 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...
My application **does not use** `Money.default_infinite_precision = true` per default. However, in some cases I need it to be turned on. I haven't found a way to set it on...
Hi there, We are seeing a new error when using the .exchange_to method, when it come to USD only. Ruby on Rails app Example. ``` Money.from_amount(5, "jpy").exchange_to("usd") # Money::Bank::RequestError (Your...
I was expecting the `cents` method to return the cents part of a Money object, but it returns the fractional value instead. ```ruby # Expected behaviour: Money.new(123).cents # => 23...
Hello! One of our customers made us notice that the Georgian Lari symbol was changed back in 2014 and we should update it here too! More about it in the...
This PR adds Ruby 3.1 to the CI matrix. To get this working I had to make some changes in a serialization test to support the Psych 4 safe load....