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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 889781013f8287b436a0c8c4e0e9a182f6d764f9
4
- data.tar.gz: 2f877745de9c7c426677ddd59ed0c0e14dcdb878
2
+ SHA256:
3
+ metadata.gz: b408da323d340240c7e8f2e3ef5492450c191374a2dcec160312f5a00e82d8b6
4
+ data.tar.gz: 3ca452d8c8d987e4381639af769684a85a7fcf2c484e3c757eda586bea5e08e5
5
5
  SHA512:
6
- metadata.gz: 9bd91ca2ecb1ea3299775cabccc4319dcc509dca139e73e320654f3face92ecf3687ebf3907272b9056c4b3e159341577832cfd3ae2e608075ef19439ceda567
7
- data.tar.gz: 6952fd1193d31b83a897438ad9090f21c0bfc06f499cc55bcf05af6af78ba042adfd30baa10402383a4b5789ecfbd1656230444f2c65eb317802c2854e363d0b
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
@@ -1,3 +1,3 @@
1
1
  module OpenExchangeRates
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  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.5.1
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: 2016-08-21 00:00:00.000000000 Z
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
- rubyforge_project:
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