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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbcc251c771bd1631fd40854de0e85d80c168f49
4
- data.tar.gz: 8911f59f2da0450bdaceb4674c202b8eb5bf94b3
3
+ metadata.gz: a283741d0b0ca6559ff85a25af15ce133141cc14
4
+ data.tar.gz: 7c194384510a06be51ac77dae7fe992e467d22a1
5
5
  SHA512:
6
- metadata.gz: a3b745972f2157c830acca225c16aa556da1c94228663da013f4af1c40501e5fad4e437435cfe5df3baa9766e47e1c74ab48f289c9621a5e7288811782a97fde
7
- data.tar.gz: 1e1ca2d53a229e3573d9be103031475b8d5afab8fd4e67cb3c4aaf6a9e332a49f829ebe6d7efb371fce459bf6c0e5c127dfe3bd473ec03058a9029c112e842a8
6
+ metadata.gz: 679348166a9a5fbb2ce06253044116067fd538bac85086b9b9812c5f46939b5ee66f6247da31f9f5b04e00c9dc732b825c62892f8aa00fad1673b20958f705be
7
+ data.tar.gz: c6ada9b0b9233ca5a209eddca2407c2fbcdbe73ef2d2073a4589b89e6fc57347589854bb2d581bafe0d76e06a37903124255e27b5133976c01090ffd81c65858
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --format documentation
2
2
  --color
3
+ --warnings
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`. To release a new version, update the version number in `version.rb`, 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).
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.new(value)
110
+ rates[key] = BigDecimal(value)
111
111
  end
112
112
  data
113
113
  end
data/money-oxr.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "money-oxr"
5
- spec.version = "0.4.0"
5
+ spec.version = "0.4.1"
6
6
  spec.authors = ["Ed Lebert"]
7
7
 
8
8
  spec.summary = %q{A Money-compatible rate store that uses exchange rates from openexchangerates.org.}
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.0
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: 2018-11-30 00:00:00.000000000 Z
11
+ date: 2019-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: money