eba 1.7.7 → 1.8.7

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/eba/bcb.rb +6 -1
  3. data/lib/eba/version.rb +5 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4606dceffb058c04a017d81ce12f7f9c51a042d7
4
- data.tar.gz: 54fa4baf6e5396675a5d9049c3f84e5a5e342cf4
3
+ metadata.gz: 5a81a0de60ce3d13011ebb73f80e1a39b6c764db
4
+ data.tar.gz: 6264e522474251a05c4e82aa5ef2ff3b1de5f323
5
5
  SHA512:
6
- metadata.gz: af7c3cd134d8ea2c0955f10d8bc10ec2078f0dc67975f004fba1d2d88919566e37f404ea5a86ab8cc68e63d96505c48f3e202d10ce9de2cbda87d81c9bb7ca3f
7
- data.tar.gz: acbff44e77d11d3f9ba0b96889049d10a0f7b0c2e74f2711d42b519d0066e811234d213497e2189266a43ee03b6c650594e4216662df68cd361077f17834fe19
6
+ metadata.gz: c74ce4f7ce5c4b41957822e0637d92cd7ba8e3df495e30bb3fe9d09ab2a0fe727db3ba8ee7b4f0b80dc42ff8c1ea323718146c3c6b76866aad57914ad361f3c2
7
+ data.tar.gz: 2f96e23e5494555ab046b48f668364c4aa2244790213ac1d46bfe7b2881ba4a02242838e7cafcd7dd513d14f05648ce80b0f416cf80735254bc2f77840b3eb5d
@@ -161,7 +161,12 @@ class BCB < Encoder
161
161
  response = @service.call(:get_valores_series_xml, message: message)
162
162
  result = Nokogiri::XML(response.to_hash[:get_valores_series_xml_response][:get_valores_series_xml_return])
163
163
  rescue Exception => erro
164
- puts "\n\nError requesting! #{erro}\n\n"
164
+ #The interval is empty, therefore an empty array should be returned.
165
+ if erro.include? "Value(s) not found" then
166
+ return []
167
+ else
168
+ puts "\n\nError requesting! #{erro}\n\n"
169
+ end
165
170
  end
166
171
 
167
172
  i = 0
@@ -5,7 +5,7 @@ module Eba
5
5
  # ff - commits on feature
6
6
  # hh - commits on hotfix
7
7
 
8
- VERSION = "1.7.7"
8
+ VERSION = "1.8.7"
9
9
 
10
10
  #Version 1.0.1
11
11
  #
@@ -59,4 +59,8 @@ module Eba
59
59
 
60
60
  #Version 1.7.7
61
61
  # Adds support for max and minimun data for queries.
62
+
63
+ #Version 1.8.7
64
+ # Improves the way the gem deals with no data in interval result. Returning an empty array,
65
+ # instead of an error.
62
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.7
4
+ version: 1.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Campos Cruz