monetize 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +8 -5
- data/CHANGELOG.md +3 -0
- data/lib/monetize/parser.rb +1 -1
- data/lib/monetize/version.rb +1 -1
- data/spec/monetize_spec.rb +4 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9bf6700b6d319c454fcc18dc2ffd9414bd565d5797b456ffbe4db4bd16aa4d53
|
4
|
+
data.tar.gz: 11d999ec312805bed1f95b48f283d237785dffc6f64698a4b6c85f5a19f0d1d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14414941fae908b1ef3e00c6c421f9572cafb159287d78816484dc7c1444078a294a058d9b718b82ecf8a0656db1ecb3f2304c807890d65575a19728c8df5159
|
7
|
+
data.tar.gz: fa4bfdf4d423f36b36918d41bdb2e695e8b684c75e195445f01391a94c7d9610777241511a90b8a6165d03fb0fd1a32860e422b644825a80267187eeaa1390fc
|
data/.travis.yml
CHANGED
@@ -1,15 +1,18 @@
|
|
1
1
|
sudo: false
|
2
|
-
language:
|
2
|
+
language:
|
3
|
+
- ruby
|
4
|
+
- java
|
3
5
|
rvm:
|
4
6
|
- 1.9.3
|
5
7
|
- 2.0.0
|
6
8
|
- 2.1.10
|
7
9
|
- 2.2.10
|
8
|
-
- 2.3.
|
9
|
-
- 2.4.
|
10
|
-
- 2.5.
|
11
|
-
- 2.6.
|
10
|
+
- 2.3.8
|
11
|
+
- 2.4.6
|
12
|
+
- 2.5.5
|
13
|
+
- 2.6.3
|
12
14
|
- jruby-9.0.5.0
|
15
|
+
jdk: openjdk8
|
13
16
|
before_install:
|
14
17
|
- gem install bundler --version '~> 1.17'
|
15
18
|
script: bundle exec rspec spec
|
data/CHANGELOG.md
CHANGED
data/lib/monetize/parser.rb
CHANGED
data/lib/monetize/version.rb
CHANGED
data/spec/monetize_spec.rb
CHANGED
@@ -70,6 +70,10 @@ describe Monetize do
|
|
70
70
|
expect(Monetize.parse("#{symbol}#{amount_in_units}")).to eq Money.new(amount, iso_code)
|
71
71
|
end
|
72
72
|
|
73
|
+
it "parses formatted inputs with #{iso_code} symbol is after the amount" do
|
74
|
+
expect(Monetize.parse("#{amount_in_units}#{symbol}")).to eq Money.new(amount, iso_code)
|
75
|
+
end
|
76
|
+
|
73
77
|
context 'prefix' do
|
74
78
|
it 'parses formatted inputs with plus sign and currency as a symbol' do
|
75
79
|
expect(Monetize.parse("+#{symbol}#{amount_in_units}")).to eq Money.new(amount, iso_code)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monetize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Emmons
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-01-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: money
|
@@ -122,8 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
|
-
|
126
|
-
rubygems_version: 2.6.8
|
125
|
+
rubygems_version: 3.0.3
|
127
126
|
signing_key:
|
128
127
|
specification_version: 4
|
129
128
|
summary: A library for converting various objects into `Money` objects.
|