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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47f4b881badba413ac46f65f7aff7457c2ec502f4ab743467393fe8b9e51b5d7
4
- data.tar.gz: 5333ce81e4360e10349a2cb22966794a21cfca24ab3158c0376af374105062fe
3
+ metadata.gz: e5b38eb7e94ec26d5621e219b7e32fe0e8ed7a07ba590dc51189df97ac0e5785
4
+ data.tar.gz: 11c32c0324281fc7d12aa83db3192c7948a9692d1c3d16c018d36c764a2ccf36
5
5
  SHA512:
6
- metadata.gz: 19d044e6aaa05b55fd3067eb7a51ba2fb140baf1eb221fcd2e3b7eb594e9025f45e0ff4bd0a490452b168e0211da85171493f11664a62ececb30f73b80850c73
7
- data.tar.gz: df0d59334c90dd06236873fa42def1bb92b2657418a137a3d8a501e15b88d8c9ca325cdb92f0cd74d1af81eefb114993c5f6f0cab93d3b9ed20afa8a8ee4c412
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
@@ -1,3 +1,3 @@
1
1
  class Money
2
- VERSION = "0.11.7"
2
+ VERSION = "0.11.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify-money
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.7
4
+ version: 0.11.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify Inc