money-oxr 0.4.1 → 0.4.2

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
- SHA1:
3
- metadata.gz: a283741d0b0ca6559ff85a25af15ce133141cc14
4
- data.tar.gz: 7c194384510a06be51ac77dae7fe992e467d22a1
2
+ SHA256:
3
+ metadata.gz: a61dae5b0b4876ffb64d75a75677c7b3e116f7dbda7f6fb30e369b21c857b9a3
4
+ data.tar.gz: 811a5d1c0ff40c4c1a9842946c8e4853cc148d13311ce9da3d666944fe53fed3
5
5
  SHA512:
6
- metadata.gz: 679348166a9a5fbb2ce06253044116067fd538bac85086b9b9812c5f46939b5ee66f6247da31f9f5b04e00c9dc732b825c62892f8aa00fad1673b20958f705be
7
- data.tar.gz: c6ada9b0b9233ca5a209eddca2407c2fbcdbe73ef2d2073a4589b89e6fc57347589854bb2d581bafe0d76e06a37903124255e27b5133976c01090ffd81c65858
6
+ metadata.gz: 565ad5d8fa733e28e25f1fcece9536e154208087a531d65836e50e6178a3a727870d1a486a2c3bd5eb76575261c3bc63c51d8c870d2a761b44939ddcb7364bd5
7
+ data.tar.gz: 581c16b480d0502f8c18850884f1c9e100492b5bdc084ea92b621e5da94daa20ecfb309496f12da7622e9f02cf125f7194554b5f3a7872e816b18b99701f577d
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  /.bundle/
2
+ /.ruby-version
2
3
  /.yardoc
3
4
  /Gemfile.lock
4
5
  /_yardoc/
data/.travis.yml CHANGED
@@ -1,5 +1,11 @@
1
- sudo: false
2
1
  language: ruby
3
2
  rvm:
4
- - 2.4.1
5
- before_install: gem install bundler -v 1.15.3
3
+ - 2.3
4
+ - 2.4
5
+ - 2.5
6
+ - 2.6
7
+ - ruby-head
8
+ before_install:
9
+ - gem update --system
10
+ - gem install bundler
11
+ sudo: false
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MoneyOXR
1
+ # money-oxr [![Build Status](https://travis-ci.org/edlebert/money-oxr.svg?branch=master)](https://travis-ci.org/edlebert/money-oxr)
2
2
 
3
3
  A [Money](https://github.com/RubyMoney/money)-compatible rate store that uses exchange rates from openexchangerates.org.
4
4
 
@@ -35,7 +35,9 @@ module MoneyOXR
35
35
  end
36
36
 
37
37
  def loaded?
38
- index.any?
38
+ transaction do
39
+ rates.any?
40
+ end
39
41
  end
40
42
 
41
43
  def load
@@ -95,7 +97,7 @@ module MoneyOXR
95
97
  data = parse_json(text)
96
98
  transaction do
97
99
  @last_updated_at = Time.at(data['timestamp'])
98
- index.clear
100
+ rates.clear
99
101
  data['rates'].each do |iso_to, rate|
100
102
  add_rate(source, iso_to, rate)
101
103
  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.1"
5
+ spec.version = "0.4.2"
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.}
@@ -14,10 +14,10 @@ Gem::Specification.new do |spec|
14
14
  end
15
15
  spec.require_paths = ["lib"]
16
16
 
17
- spec.add_dependency "money", "~> 6.6"
17
+ spec.add_dependency "money", ">= 6.13.5"
18
18
 
19
- spec.add_development_dependency "bundler", "~> 1.15"
20
- spec.add_development_dependency "rake", "~> 10.0"
21
- spec.add_development_dependency "rspec", "~> 3.0"
22
- spec.add_development_dependency "webmock", "~> 3.3"
19
+ spec.add_development_dependency "bundler"
20
+ spec.add_development_dependency "rake"
21
+ spec.add_development_dependency "rspec"
22
+ spec.add_development_dependency "webmock"
23
23
  end
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: money-oxr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Lebert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-24 00:00:00.000000000 Z
11
+ date: 2019-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: money
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.6'
19
+ version: 6.13.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '6.6'
26
+ version: 6.13.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.15'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.15'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '3.0'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '3.3'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '3.3'
82
+ version: '0'
83
83
  description:
84
84
  email:
85
85
  executables: []
@@ -118,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubyforge_project:
122
- rubygems_version: 2.6.11
121
+ rubygems_version: 3.0.3
123
122
  signing_key:
124
123
  specification_version: 4
125
124
  summary: A Money-compatible rate store that uses exchange rates from openexchangerates.org.