monetize 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/monetize.rb +1 -0
- data/lib/monetize/version.rb +1 -1
- data/spec/monetize_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: 38e7e5f39705dfc454cf5e40d7ba07aab4d8b5c1
|
4
|
+
data.tar.gz: 58a057ce76a10410fd919e5b015c96eaccbb74a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cdfffde0b0b27e4b1d5fe929644808abee53edecc67d76a56d8b98e1d1ce51a66397bbf21b272644c44c4644d741ce84d22029267aec1d991021a3636cddbfd
|
7
|
+
data.tar.gz: 2b68ae2631ddc16b55feec5a240870859e408d9e00e919b8b857bbf59af5fa632435c2c5f46892f88fab094dbb318064bdcad42d3fca196a2edf7e7eaa5d70fb
|
data/CHANGELOG.md
CHANGED
data/lib/monetize.rb
CHANGED
data/lib/monetize/version.rb
CHANGED
data/spec/monetize_spec.rb
CHANGED
@@ -42,6 +42,10 @@ describe Monetize do
|
|
42
42
|
expect(Monetize.parse("£9.99")).to eq Money.new(999, 'GBP')
|
43
43
|
end
|
44
44
|
|
45
|
+
it "parses formatted inputs with British Pounds Sterling passed as a lira sign symbol" do
|
46
|
+
expect(Monetize.parse("₤9.99")).to eq Money.new(999, 'GBP')
|
47
|
+
end
|
48
|
+
|
45
49
|
it "parses formatted inputs with South African Rand passed as a symbol" do
|
46
50
|
expect(Monetize.parse("R9.99")).to eq Money.new(999, 'ZAR')
|
47
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monetize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Emmons
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: money
|