xe_client 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/xe_client/responses/historic_rate_period_response.rb +5 -1
- data/lib/xe_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fab5e5d4640520e6634f4eff9ab3d9b41b193c21ac0914417775c5741b5afbd9
|
4
|
+
data.tar.gz: 454b5d050829e15be95cb8483c14e7b78da738bd58b54d655b545ee11b9c3d27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47ead7f552682955ab536bf0a2313cb6c97dad01780688a0734fddb84abd4c24481076eff1f954a178f365d6918c25d027bb83061bba82f5ca89ea65392dbd9b
|
7
|
+
data.tar.gz: d5ddbc02483c32d1ed6531fcb7382deb7e9d1d394f06386abb7a51ca76eb9e6a7808830335c48ea140954d3bce9a0db95924fe67b9628844b6bb483547c2424f
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [1.0.1] - 2020-06-30
|
6
|
+
### Fixed
|
7
|
+
- `#historic_rate_period`: Do not blow up if no rates
|
8
|
+
|
5
9
|
## [1.0.0] - 2020-06-30
|
6
10
|
### Changed
|
7
11
|
- Changed `url` to `host` fot the XE API host (defaults to https://xecdapi.xe.com)
|
@@ -11,7 +11,11 @@ module XEClient
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def default_to
|
14
|
-
response_body[:to]
|
14
|
+
to = response_body[:to]
|
15
|
+
|
16
|
+
return [] if to.blank?
|
17
|
+
|
18
|
+
to.each_with_object([]) do |(currency, quote_args), arr|
|
15
19
|
quote_args.each do |quote_arg|
|
16
20
|
arr << Quote.new(quote_arg.merge(quotecurrency: currency))
|
17
21
|
end
|
data/lib/xe_client/version.rb
CHANGED