shopify-money 0.11.2 → 0.11.3
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 +2 -2
- data/lib/money/version.rb +1 -1
- data/spec/money_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53109f360b32e2f8fe8c6ade1992ba9a50c4a27d
|
4
|
+
data.tar.gz: 63b5789d8f13897ddba4ce87e857d8d60092d026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b602fb6b125c484290a44d6269b14f209c7699d58830bbcf50589b8588b02d4c15d2030dd9ef91890e770fb4e3ba205d2b974a529c120285ff62b673ac0c19e7
|
7
|
+
data.tar.gz: 3e6c25119ade6fa8a8e4236f5779e64baaaa6e771c1f7be10204334066de7b94a516eeafe98a144cf8467069fed0d3490823a78093fe0318381e09e6c137ba6e
|
data/lib/money/money.rb
CHANGED
data/lib/money/version.rb
CHANGED
data/spec/money_spec.rb
CHANGED
@@ -34,6 +34,10 @@ RSpec.describe "Money" do
|
|
34
34
|
expect(Money.zero).to eq(Money.new(0))
|
35
35
|
end
|
36
36
|
|
37
|
+
it ".zero accepts an optional currency" do
|
38
|
+
expect(Money.zero('USD')).to eq(Money.new(0, 'USD'))
|
39
|
+
end
|
40
|
+
|
37
41
|
it "returns itself with to_money" do
|
38
42
|
expect(money.to_money).to eq(money)
|
39
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify-money
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|