minting 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 851c39a123584b8a782ef0c610c5e271239e0f20b948963bf926daf11defa269
4
- data.tar.gz: 9d9c5aab7a6acc499308b2850157f6e8d4eef8ad01f4b0db4aa75e89067162fb
3
+ metadata.gz: f1cb21299dcb5f2a07ce7ace30463640372647eca9fbbfdf8d667e5a8c12d86b
4
+ data.tar.gz: 90838c1838f18a3892cedbe2ea3583d1103356479eb04fe3d51b9214fa05ffa3
5
5
  SHA512:
6
- metadata.gz: d6cca508a6ec6690436d67f70720db03bcebabeb7b561a4769aca306d9350f1d40ba07af63500316c236094dca13b7a6c181d49b324729e7439deff05f69513a
7
- data.tar.gz: 419ce736af2fd00d90834dc6b82e5459ff83873922871a40d89d62dda69603ce31a5456918fa61ba21564489019eba6c80b1589cefce19841410a6e328ee45fa
6
+ metadata.gz: db903188b6e59832572d8d7161672f38b293d34bdca45c3d1bfff6bd8906e4f2bfa471530067f31196e619ae0ef9465026f23e3d7e852d9fb1661c742d40c070
7
+ data.tar.gz: a27d66b6395e6e980ed22965dbe94abdf9b9ce23f3bfe186c03257e62721b274ebe50703173faa8c1b91ef87aaa8c8f7d35c71ca84f78a4e9c766de6a2614bd1
@@ -12,7 +12,7 @@ module Mint
12
12
  # @return [BigDecimal] the decimal representation of the money amount
13
13
  # @example
14
14
  # Money.from(9.99, 'USD').to_d #=> 0.999e1
15
- def to_d = amount.to_d 0
15
+ def to_d = BigDecimal(amount, 0)
16
16
 
17
17
  # Converts the monetary amount to a standard float.
18
18
  # Note: Using float conversion loses precision guarantees.
@@ -3,5 +3,5 @@
3
3
  # Root namespace for the Minting library.
4
4
  module Minting
5
5
  # Current version of the Minting gem.
6
- VERSION = '2.1.0'
6
+ VERSION = '2.1.1'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minting
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gilson Ferraz