eba 1.6.7 → 1.7.7

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 -3
  3. data/lib/eba/version.rb +4 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c7437b7166b2464059e5f0e07851117f01a41c5
4
- data.tar.gz: 63d4b2dbd88f8f87f62100023cb1b37d3b540bb9
3
+ metadata.gz: 4606dceffb058c04a017d81ce12f7f9c51a042d7
4
+ data.tar.gz: 54fa4baf6e5396675a5d9049c3f84e5a5e342cf4
5
5
  SHA512:
6
- metadata.gz: 161b14dbffb33ab76d91e20c904207ceeeca55fa8833125a8eff534ababa897463d0f4fbe971b00a543bb77d92bca56c9cbc790022630bac4377b77451cc38b1
7
- data.tar.gz: a43ef4c0ee3167f42fd80fd53b8865bd38efab45cb048f2ce6b0aed8aee6a5ea138862862898070be73a34c1e8ade9e6261a4a53602476a7db0eef411a76f8ee
6
+ metadata.gz: af7c3cd134d8ea2c0955f10d8bc10ec2078f0dc67975f004fba1d2d88919566e37f404ea5a86ab8cc68e63d96505c48f3e202d10ce9de2cbda87d81c9bb7ca3f
7
+ data.tar.gz: acbff44e77d11d3f9ba0b96889049d10a0f7b0c2e74f2711d42b519d0066e811234d213497e2189266a43ee03b6c650594e4216662df68cd361077f17834fe19
@@ -130,7 +130,7 @@ class BCB < Encoder
130
130
  end
131
131
 
132
132
  # Ensure that date is in the format dd/MM/YYY
133
- def get_all_data_for_array(array_of_codes, date)
133
+ def get_all_data_for_array(array_of_codes, min_date, max_date = Time.now.strftime('%d/%m/%Y').to_s)
134
134
  result = nil
135
135
  data_collection = Array.new()
136
136
 
@@ -153,8 +153,8 @@ class BCB < Encoder
153
153
 
154
154
  # Build the message from the start of the historical series
155
155
  message = { in0: {long: codes},
156
- in1: date,
157
- in2: Time.now.strftime('%d/%m/%Y').to_s}
156
+ in1: min_date,
157
+ in2: max_date}
158
158
 
159
159
  # try and catch, as some series can be discontinued or a code may be broken
160
160
  begin
@@ -5,7 +5,7 @@ module Eba
5
5
  # ff - commits on feature
6
6
  # hh - commits on hotfix
7
7
 
8
- VERSION = "1.6.7"
8
+ VERSION = "1.7.7"
9
9
 
10
10
  #Version 1.0.1
11
11
  #
@@ -56,4 +56,7 @@ module Eba
56
56
  #
57
57
  # Adds verifications of validity for data-type.
58
58
  # Changes tests in order to incorporate validity detection.
59
+
60
+ #Version 1.7.7
61
+ # Adds support for max and minimun data for queries.
59
62
  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.6.7
4
+ version: 1.7.7
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-02-08 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.6.8
140
+ rubygems_version: 2.6.13
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Class which serves as interface with Brazillian Central Bank databases through the Webservice SGS - Sistema Gerenciador de Séries Temporais - v2.1. eba stands for Easy BCB Access and is also an expression of joy in Brazillian Portuguese.<br>