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 +4 -4
- data/lib/minting/money/conversion.rb +1 -1
- data/lib/minting/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1cb21299dcb5f2a07ce7ace30463640372647eca9fbbfdf8d667e5a8c12d86b
|
|
4
|
+
data.tar.gz: 90838c1838f18a3892cedbe2ea3583d1103356479eb04fe3d51b9214fa05ffa3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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.
|
data/lib/minting/version.rb
CHANGED