eba 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eba/bcb.rb +7 -9
- data/lib/eba/version.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70e18781b4e7031a3cebf475a35ad4931bbf2e31
|
4
|
+
data.tar.gz: b379bf7d88ddcac61c492e3040eba80634fd3ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5754c4c82eab910ea7890181f0ab33437b5f57b29b7329bb758ab84038e60acca7d56573c30238705c402630866146df9c9d89aba3532b5a176eb0087cb066e5
|
7
|
+
data.tar.gz: fc45392f4cebb55a6070bed677564d4cb809ace79535bec3ff058829ee86297bec7cb2bd7361e5090df9d6e599144206756347b07e547697af076a77e29adb4e
|
data/lib/eba/bcb.rb
CHANGED
@@ -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 =
|
84
|
-
encoded_month =
|
85
|
-
encoded_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 "
|
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,
|
data/lib/eba/version.rb
CHANGED
@@ -5,7 +5,7 @@ module Eba
|
|
5
5
|
# ff - commits on feature
|
6
6
|
# hh - commits on hotfix
|
7
7
|
|
8
|
-
VERSION = "1.5.
|
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
|