eba 1.8.8 → 1.9.8

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 +3 -2
  3. data/lib/eba/version.rb +4 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1231bf40608efe45e2d079ed9517fb8e65e7a63d
4
- data.tar.gz: 4d92dc6d01a200cad08e2468f1ad848a56105fa4
3
+ metadata.gz: 7f4398411b85da2cdfcfb9ea03cd4f88443d996c
4
+ data.tar.gz: 35f835445073fc8bcbc096149951c6e66a561ee9
5
5
  SHA512:
6
- metadata.gz: 8f349eb2311358a786f0f2ce8858538dd5ad1b1a7c3f64555741c31c7db5171e09fb8a136061977c576b8a752515e56d609ee6324f6987f78eeba9e05147876e
7
- data.tar.gz: db656af679ced55f11b12ce7f644b8d2baf7d525f901ed70037d1254574bc55a164abeda5d73d75310c315dc0b04c121eb2cecde77b8ac5b5faff36d690ec402
6
+ metadata.gz: 2832fffc06dee526bf80d7be522f92242add3fc8ee558b53c93b6682b7d6c9e0a6dfe7634e07511eaa726dc2d9aa2dd4d823eb752de5d589131879e16f0aad89
7
+ data.tar.gz: 36bbccafa125cf2655f1523107997ef98c44a1a81c6fa26bccfe4aaaf8751cf620914e2ea0e56459a35e9314d415bcf33772f632e28a97285d13697699c62cbf
data/lib/eba/bcb.rb CHANGED
@@ -101,7 +101,8 @@ class BCB < Encoder
101
101
  def get_last_value(series_code)
102
102
  begin
103
103
  response = @service.call(:get_ultimo_valor_xml, message: {in0: "#{series_code}"})
104
- rescue
104
+ rescue => e
105
+ puts "Error requesting last value. Error: #{e}\nTrace: #{e.backtrace}"
105
106
  return nil
106
107
  end
107
108
 
@@ -165,7 +166,7 @@ class BCB < Encoder
165
166
  if erro.to_s.include? "Value(s) not found" then
166
167
  return []
167
168
  else
168
- puts "\n\nError requesting! #{erro}\n\n"
169
+ puts "\n\nError requesting! #{erro}\nTrace: #{erro.backtrace}\n\n"
169
170
  end
170
171
  end
171
172
 
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.8.8"
8
+ VERSION = "1.9.8"
9
9
 
10
10
  #Version 1.0.1
11
11
  #
@@ -66,4 +66,7 @@ module Eba
66
66
 
67
67
  #Version 1.8.8
68
68
  # Forces conversion of error to string.
69
+
70
+ #Version 1.9.8
71
+ # Improves logging by adding trace.
69
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.8
4
+ version: 1.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Campos Cruz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-19 00:00:00.000000000 Z
11
+ date: 2018-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement