daily_exchange_rates_bank 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/daily_exchange_rates_bank/exchange_rates_api_client.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d131c7733c8d1bf342e2115741721ba2a1feab1351638f985aee9ef600c0f4f
|
4
|
+
data.tar.gz: 1d930f2720a0170402a0c304a2a2ef63c0251d3f37c058c997914c6bde5830f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ab97298a5101679a99ac33bc6932568f4d52b37bf9f8c4f871506579042d4384b40c34b3d66e6b7e2438b065ae170066f37f325205e91da5b64b455a178ba57
|
7
|
+
data.tar.gz: 63b2bffddfb0ceee7a95354e0cfdde20ff769a9c86f0b20ee5b17d073e535639276ec64e5878844a47f93d261dc58ca0083583017d25821be715c3dfcb743ef6
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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
|
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.
|
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: []
|