monetize icon indicating copy to clipboard operation
monetize copied to clipboard

A library for converting various objects into `Money` objects.

Results 11 monetize issues
Sort by recently updated
recently updated
newest added

```irb 3.1.2 :032 > Monetize.assume_from_symbol = true => true 3.1.2 :033 > Monetize.parse!("100 zł") # 3.1.2 :034 > Monetize.parse!("100 zz") # 3.1.2 :035 > Money.default_currency=nil => nil 3.1.2 :036 >...

As per https://github.com/rubygems/rubygems/pull/5337, we can simplify the steps of adding a gem.

Parsing real world human input there's a common case where a single thousands separator is used. For example at the moment, the following string parsings are incorrect (unless we're expecting...

Floats are now translated in interesting ways in Ruby 3. Take the following example: ```ruby # rails console or IRB 9.86.to_money => { :cents => 985.9999999999999, :currency_iso => "USD" }...

Malaysian ringgit, ISO code: MYR, symbol: RM. The commit that broke our code is [this one](https://github.com/RubyMoney/monetize/commit/1deafa29fd5a656c01f3cf06ebf65ef6393044c9) which prioritises ISO code over a symbol. It makes the incorrect assumption that the...

If the default_currency is configured, the Monetize.parse_collection won't return correct value with symbol (the currency is hardcoded to the default currency) ``` MoneyRails.configure do |config| config.default_currency = -> { 'MYR'...

Hi, I've just found a possibility to improve a bit parsing a string via `#to_money` (`Monetize.parse`) here, take a look ```ruby '0.1'.to_money('BTC') # => # '0,1'.to_money('BTC') # => # '0.01'.to_money('BTC')...

Currently, there is an existing bug in `monetize` v1.13.0 introduced by https://github.com/RubyMoney/monetize/pull/167 that attempted to implement additional logic for currency parsing discussed in https://github.com/RubyMoney/monetize/issues/153. Example of the bug: - Expected:...

⚠️ NOT READY TO BE MERGED YET ⚠️ This PR is aimed to be merged on top of #183, hence a few overlapping changes. Once the #183 is merged, I'll...

Resurrecting a previous proposal — https://github.com/RubyMoney/monetize/pull/164 This is basically a step 1 that allows multiple parsers to co-exist without breaking the default behaviour. A new parser is registered under a...