daily_exchange_rates_bank 1.0.2 → 1.0.3

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
  SHA256:
3
- metadata.gz: 626e118d401aec1e2da2ed5dd5794aa593f5dbe044fc86e2b3782920f09e2b40
4
- data.tar.gz: 8c69771e2be6fec05fc0911dfe904793c9af5f79322528d2a43c42ab0c556997
3
+ metadata.gz: 9d131c7733c8d1bf342e2115741721ba2a1feab1351638f985aee9ef600c0f4f
4
+ data.tar.gz: 1d930f2720a0170402a0c304a2a2ef63c0251d3f37c058c997914c6bde5830f9
5
5
  SHA512:
6
- metadata.gz: ba518774e92dab5e196ca0f0b68810f7a32487f598e71b799ce83511480c59f29a387574ec2b679ae3ec4679063f7f259112aad4861b94f7d3d238c1d3b3d039
7
- data.tar.gz: 9a8e350d33fd688c416ecd29a74de3f7c2bbb8d0603fd54ecec5b9e52768ccf67b2278cef9ca6f9f425effe0169b4dd0fe87f93a6f2b4357cd3101378fb0f40f
6
+ metadata.gz: 9ab97298a5101679a99ac33bc6932568f4d52b37bf9f8c4f871506579042d4384b40c34b3d66e6b7e2438b065ae170066f37f325205e91da5b64b455a178ba57
7
+ data.tar.gz: 63b2bffddfb0ceee7a95354e0cfdde20ff769a9c86f0b20ee5b17d073e535639276ec64e5878844a47f93d261dc58ca0083583017d25821be715c3dfcb743ef6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # daily_exchange_rates_bank changelog
2
2
 
3
+ ## 1.0.3 (04.05.2021)
4
+
5
+ * Fix default uri to fetch historic exchange rates
6
+
3
7
  ## 1.0.2 (22.04.2021)
4
8
 
5
9
  * Switch to api.frankfurter.app to fetch historic exchange rates
@@ -8,7 +8,7 @@ class DailyExchangeRatesBank < Money::Bank::VariableExchange
8
8
  def exchange_rates(from: 'EUR', to: %w[USD GBP CHF], date: Date.today)
9
9
  api_url = ENV.fetch('RATES_API_URL', 'https://api.frankfurter.app/')
10
10
  uri = URI.parse(api_url)
11
- uri.path = "/#{date}/"
11
+ uri.path = "/#{date}"
12
12
  uri.query = "base=#{from}&symbols=#{to.join(',')}"
13
13
  json_response = uri.read
14
14
  JSON.parse(json_response)['rates']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daily_exchange_rates_bank
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Aschenbrenner
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-22 00:00:00.000000000 Z
11
+ date: 2021-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: money
@@ -102,7 +102,7 @@ dependencies:
102
102
  version: '3.7'
103
103
  description: This gem supports money conversions with historic exchange rates. Missing
104
104
  exchange rates are fetched from api.frankfurter.app
105
- email:
105
+ email:
106
106
  executables: []
107
107
  extensions: []
108
108
  extra_rdoc_files: []
@@ -119,7 +119,7 @@ homepage: https://github.com/gapfish/daily_exchange_rates_bank
119
119
  licenses:
120
120
  - GPL-3.0
121
121
  metadata: {}
122
- post_install_message:
122
+ post_install_message:
123
123
  rdoc_options: []
124
124
  require_paths:
125
125
  - lib
@@ -134,8 +134,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubygems_version: 3.2.3
138
- signing_key:
137
+ rubygems_version: 3.2.15
138
+ signing_key:
139
139
  specification_version: 4
140
140
  summary: A bank for the money gem that determines exchange rates for any desired date.
141
141
  test_files: []