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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: faccd61a405fbd11dfb9873a31a602e8b6b088500d420061318d8dd4525eae9a
4
- data.tar.gz: ad0f22f7e5fd44f582a81250ef7415db193b0ccc066ac6de540e0a1f98a22463
3
+ metadata.gz: fab5e5d4640520e6634f4eff9ab3d9b41b193c21ac0914417775c5741b5afbd9
4
+ data.tar.gz: 454b5d050829e15be95cb8483c14e7b78da738bd58b54d655b545ee11b9c3d27
5
5
  SHA512:
6
- metadata.gz: e6d9a02af3aeee2f477861297ea8a5f7b26dc3b6f35a09c1c11cd9de0b8e3566a4a14f1203ef5c6e03819c6ddaab0131ecdab8d942c14d5732725ccc1e268653
7
- data.tar.gz: 45335dc7e9974c01744871f769043c4e4ef00bb9daf1301207c9c280217b8b3d7a90271c3a9e67f7ddefb76fbf7ab787d06446eb30d314ee8c23301719facf15
6
+ metadata.gz: 47ead7f552682955ab536bf0a2313cb6c97dad01780688a0734fddb84abd4c24481076eff1f954a178f365d6918c25d027bb83061bba82f5ca89ea65392dbd9b
7
+ data.tar.gz: d5ddbc02483c32d1ed6531fcb7382deb7e9d1d394f06386abb7a51ca76eb9e6a7808830335c48ea140954d3bce9a0db95924fe67b9628844b6bb483547c2424f
@@ -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].each_with_object([]) do |(currency, quote_args), arr|
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
@@ -1,3 +1,3 @@
1
1
  module XEClient
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xe_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag