money-oxr 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/README.md +3 -1
- data/lib/money_oxr/rates_store.rb +1 -1
- data/money-oxr.gemspec +1 -1
- 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: a283741d0b0ca6559ff85a25af15ce133141cc14
|
4
|
+
data.tar.gz: 7c194384510a06be51ac77dae7fe992e467d22a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 679348166a9a5fbb2ce06253044116067fd538bac85086b9b9812c5f46939b5ee66f6247da31f9f5b04e00c9dc732b825c62892f8aa00fad1673b20958f705be
|
7
|
+
data.tar.gz: c6ada9b0b9233ca5a209eddca2407c2fbcdbe73ef2d2073a4589b89e6fc57347589854bb2d581bafe0d76e06a37903124255e27b5133976c01090ffd81c65858
|
data/.rspec
CHANGED
data/README.md
CHANGED
@@ -68,7 +68,9 @@ Money.default_bank = MoneyOXR::Bank.new(
|
|
68
68
|
|
69
69
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
70
70
|
|
71
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
71
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
72
|
+
|
73
|
+
To release a new version, update the version number in `money-oxr.gemspec`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
72
74
|
|
73
75
|
## Contributing
|
74
76
|
|
@@ -107,7 +107,7 @@ module MoneyOXR
|
|
107
107
|
text = text.gsub(/("[A-Z]{3}": ?)(\d+\.\d+)/, '\\1"\\2"')
|
108
108
|
data = JSON.parse(text)
|
109
109
|
data['rates'] = data['rates'].each_with_object({}) do |(key, value), rates|
|
110
|
-
rates[key] = BigDecimal
|
110
|
+
rates[key] = BigDecimal(value)
|
111
111
|
end
|
112
112
|
data
|
113
113
|
end
|
data/money-oxr.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: money-oxr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed Lebert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: money
|