eba 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/eba/bcb.rb +7 -9
  3. data/lib/eba/version.rb +4 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55af898e71af162b85311da79aa89d7548475f16
4
- data.tar.gz: 8d4c33a83231025fb5c94b6d70123db580f27619
3
+ metadata.gz: 70e18781b4e7031a3cebf475a35ad4931bbf2e31
4
+ data.tar.gz: b379bf7d88ddcac61c492e3040eba80634fd3ff0
5
5
  SHA512:
6
- metadata.gz: 3451a3d6aadbae4f38a11b7292535ebf52829398a48cf94c26a4faf03df66d114069c8dde10fa6b03288d4e1c8de8c9de493d33eae90bddb72300abc25aeaf1c
7
- data.tar.gz: 0ad0448c43666985704b8c8337ee07bf0e90ba551257caa0a83e96a650e16ce6262aa04ea29e7178d83e2114136afc221dd7f1ffbf1f437059587c2802ea3064
6
+ metadata.gz: 5754c4c82eab910ea7890181f0ab33437b5f57b29b7329bb758ab84038e60acca7d56573c30238705c402630866146df9c9d89aba3532b5a176eb0087cb066e5
7
+ data.tar.gz: fc45392f4cebb55a6070bed677564d4cb809ace79535bec3ff058829ee86297bec7cb2bd7361e5090df9d6e599144206756347b07e547697af076a77e29adb4e
@@ -80,9 +80,9 @@ class BCB < Encoder
80
80
  encoded_name = encode(name)
81
81
  encoded_periodicity = encode(periodicity)
82
82
  encoded_unit = encode(unit)
83
- encoded_day = encode(day)
84
- encoded_month = encode(month)
85
- encoded_year = encode(year)
83
+ encoded_day = day
84
+ encoded_month = month
85
+ encoded_year = year
86
86
  encoded_value = encode(value)
87
87
 
88
88
  is_unseasoned = name.include? " - com ajuste sazonal"
@@ -152,15 +152,13 @@ class BCB < Encoder
152
152
 
153
153
  # try and catch, as some series can be discontinued or a code may be broken
154
154
  begin
155
- response = @service.call(:get_valores_series_xml, message: message)
156
- result = Nokogiri::XML(response.to_hash[:get_valores_series_xml_response] \
157
- [:get_valores_series_xml_return])
158
-
155
+ response = @service.call(:get_valores_series_xml, message: message)
156
+ result = Nokogiri::XML(response.to_hash[:get_valores_series_xml_response][:get_valores_series_xml_return])
159
157
  rescue Exception => erro
160
- puts "Error requesting! #{erro}"
158
+ puts "\n\nError requesting! #{erro}\n\n"
161
159
  end
162
160
 
163
- i = 0
161
+ i = 0
164
162
 
165
163
  result.css("SERIE").each do |serie|
166
164
  # recover identifying data from the getLastValue method,
@@ -5,7 +5,7 @@ module Eba
5
5
  # ff - commits on feature
6
6
  # hh - commits on hotfix
7
7
 
8
- VERSION = "1.5.3"
8
+ VERSION = "1.5.4"
9
9
 
10
10
  #Version 1.0.1
11
11
  #
@@ -40,4 +40,7 @@ module Eba
40
40
  #Version 1.5.3
41
41
  # adds flag in data to mark seasonally adjusted data
42
42
  # adds detection for seasonally adjusted data
43
+
44
+ #Version 1.5.4
45
+ # removed encoding vor day, month and year, as they can be integers and, therefore, haven't encoding
43
46
  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.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Campos Cruz