open_exchange_rates 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/open_exchange_rates/rates.rb +2 -2
- data/lib/open_exchange_rates/version.rb +1 -1
- 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: b408da323d340240c7e8f2e3ef5492450c191374a2dcec160312f5a00e82d8b6
|
4
|
+
data.tar.gz: 3ca452d8c8d987e4381639af769684a85a7fcf2c484e3c757eda586bea5e08e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a19772242da9aa04bf74716d682a72487bf3fa10ebfd4fa7d473c711a4b49c07efe713d15b9a99af48f962fe4bf17d221a02f5507c5ddcf10860e1fc07785f1
|
7
|
+
data.tar.gz: 67477660c6bcf803e3359af89bab4f85c125e9dc9b8621c93bca666b941f351531122ec8ed25949b2ada918ae50d0d221b0d248c787a7c62cdf938e73edcea20
|
@@ -91,12 +91,12 @@ module OpenExchangeRates
|
|
91
91
|
|
92
92
|
def parse_latest
|
93
93
|
@latest_parser ||= OpenExchangeRates::Parser.new
|
94
|
-
@latest_parser.parse(open("#{OpenExchangeRates::LATEST_URL}?app_id=#{@app_id}"))
|
94
|
+
@latest_parser.parse(URI.open("#{OpenExchangeRates::LATEST_URL}?app_id=#{@app_id}"))
|
95
95
|
end
|
96
96
|
|
97
97
|
def parse_on(date_string)
|
98
98
|
@on_parser = OpenExchangeRates::Parser.new
|
99
|
-
@on_parser.parse(open("#{OpenExchangeRates::BASE_URL}/historical/#{date_string}.json?app_id=#{@app_id}"))
|
99
|
+
@on_parser.parse(URI.open("#{OpenExchangeRates::BASE_URL}/historical/#{date_string}.json?app_id=#{@app_id}"))
|
100
100
|
end
|
101
101
|
|
102
102
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: open_exchange_rates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vlado Cingel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yajl-ruby
|
@@ -112,8 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
|
116
|
-
rubygems_version: 2.5.1
|
115
|
+
rubygems_version: 3.0.3
|
117
116
|
signing_key:
|
118
117
|
specification_version: 4
|
119
118
|
summary: Ruby library for Open Exchange Rates API
|