eba 1.6.7 → 1.7.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.
- checksums.yaml +4 -4
- data/lib/eba/bcb.rb +3 -3
- data/lib/eba/version.rb +4 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4606dceffb058c04a017d81ce12f7f9c51a042d7
|
4
|
+
data.tar.gz: 54fa4baf6e5396675a5d9049c3f84e5a5e342cf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af7c3cd134d8ea2c0955f10d8bc10ec2078f0dc67975f004fba1d2d88919566e37f404ea5a86ab8cc68e63d96505c48f3e202d10ce9de2cbda87d81c9bb7ca3f
|
7
|
+
data.tar.gz: acbff44e77d11d3f9ba0b96889049d10a0f7b0c2e74f2711d42b519d0066e811234d213497e2189266a43ee03b6c650594e4216662df68cd361077f17834fe19
|
data/lib/eba/bcb.rb
CHANGED
@@ -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,
|
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:
|
157
|
-
in2:
|
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
|
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
|
+
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.
|
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-
|
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.
|
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>
|