shopify-money 0.11.7 → 0.11.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/money/money.rb +1 -1
- data/lib/money/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: e5b38eb7e94ec26d5621e219b7e32fe0e8ed7a07ba590dc51189df97ac0e5785
|
4
|
+
data.tar.gz: 11c32c0324281fc7d12aa83db3192c7948a9692d1c3d16c018d36c764a2ccf36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b3082b3333a0df9f90e3883fd157171920cbc8c0271f9b196bdf7ca84fb1206a9c3710496fef085e57f99af9e30947fbdd9e198e65bc9f3ec9a3dd71888bf63
|
7
|
+
data.tar.gz: 66cfab41c457a7c485b788261ff764a721fd25d8ca9b33dbe867a5a1fb4696215baef8f7626cb880dd8855edb835c5f8c2d0c66e3eb1738d98a3f95f581bce3f
|
data/lib/money/money.rb
CHANGED
@@ -340,7 +340,7 @@ class Money
|
|
340
340
|
# @example
|
341
341
|
# Money.new(100, "USD").split(3) #=> [Money.new(34), Money.new(33), Money.new(33)]
|
342
342
|
def split(num)
|
343
|
-
calculate_splits(num).sum { |value, count| Array.new(count, value) }
|
343
|
+
calculate_splits(num).sum([]) { |value, count| Array.new(count, value) }
|
344
344
|
end
|
345
345
|
|
346
346
|
# Calculate the splits evenly without losing pennies.
|
data/lib/money/version.rb
CHANGED