eba 1.0.1.1 → 1.0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/eba.gemspec +1 -1
- data/lib/eba/bcb.rb +3 -2
- data/lib/eba/version.rb +6 -1
- metadata +3 -4
- data/lib/eba/.bcb.rb.swp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efc78afe8a2e239c4888dfa262c6e05dda17a73b
|
4
|
+
data.tar.gz: d1ebc4b547568403c645b31a6c2f799bad6737b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9799e9fed73b77ef66df4876829d049361c6c6d4c4f13193baa789b4bad0c75d150de7f7c0ce90c9e28a3ddcd97507693a66b20a9da804374a1b31863d696d0
|
7
|
+
data.tar.gz: ec77c27a9012b0bbd3878420ccb0e6d14fbc071df8fc8b926e0b876059a87c94781317c91f82b9d031562b31f64fe2f29fe82acdef3a2c7310e84431c2c92564
|
data/eba.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Rafael Campos Cruz"]
|
10
10
|
spec.email = ["rcampos@tendencias.com.br"]
|
11
11
|
|
12
|
-
spec.summary = %q{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
|
12
|
+
spec.summary = %q{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.\n}
|
13
13
|
spec.description = %q{This class was developed in a partinership with Tendencias - Consultoria Econômica, a economical analysis company from Brazil. The intent is, given that you know one or more primary keys for series inside the BCB database, you can extract updates or the full historical data of said series.\nEba stands for Easy BCB Access and is also an expression of joy in Brazillian Portuguese.}
|
14
14
|
spec.homepage = "https://github.com/rCamposCruz/eba"
|
15
15
|
spec.license = "MIT"
|
data/lib/eba/bcb.rb
CHANGED
@@ -68,7 +68,8 @@ class BCB < Encoder
|
|
68
68
|
encode(xmlResult.search("VALOR").text))
|
69
69
|
end
|
70
70
|
|
71
|
-
|
71
|
+
# Ensure that date is in the format dd/MM/YYY
|
72
|
+
def get_all_data_for_array(array_of_codes, date)
|
72
73
|
results = {}
|
73
74
|
codes = Array.new()
|
74
75
|
data_collection = Array.new()
|
@@ -78,7 +79,7 @@ class BCB < Encoder
|
|
78
79
|
|
79
80
|
# Build the message from the start of the historical series
|
80
81
|
message = { in0: {long: codes},
|
81
|
-
in1:
|
82
|
+
in1: date,
|
82
83
|
in2: Time.now.strftime('%d/%m/%Y').to_s}
|
83
84
|
|
84
85
|
# try and catch, as some series can be discontinued or a code may be broken
|
data/lib/eba/version.rb
CHANGED
@@ -6,7 +6,7 @@ module Eba
|
|
6
6
|
# ff - commits on feature
|
7
7
|
# hh - commits on hotfix
|
8
8
|
|
9
|
-
VERSION = "1.0.1.
|
9
|
+
VERSION = "1.0.1.2"
|
10
10
|
|
11
11
|
#Version 1.0.0.1
|
12
12
|
#
|
@@ -19,4 +19,9 @@ module Eba
|
|
19
19
|
# get_all_data_for_array will now return data for an invalid code, but will still prompt an error mesage.
|
20
20
|
# added rspec tests, guarantying consistency
|
21
21
|
# spec/valid_certificate contains a certificate which is valid at this moment (2016-11-22)
|
22
|
+
|
23
|
+
#Version 1.0.1.2
|
24
|
+
# Now get_all_data_for_array also expects a valid date in the format dd/MM/YYYY
|
25
|
+
|
26
|
+
|
22
27
|
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.0.1.
|
4
|
+
version: 1.0.1.2
|
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: 2016-11-
|
11
|
+
date: 2016-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -117,7 +117,6 @@ files:
|
|
117
117
|
- bin/setup
|
118
118
|
- eba.gemspec
|
119
119
|
- lib/eba.rb
|
120
|
-
- lib/eba/.bcb.rb.swp
|
121
120
|
- lib/eba/bcb.rb
|
122
121
|
- lib/eba/data.rb
|
123
122
|
- lib/eba/encoder.rb
|
@@ -147,5 +146,5 @@ signing_key:
|
|
147
146
|
specification_version: 4
|
148
147
|
summary: Class which serves as interface with Brazillian Central Bank databases through
|
149
148
|
the Webservice SGS - Sistema Gerenciador de Séries Temporais - v2.1. eba stands
|
150
|
-
for Easy BCB Access and is also an expression of joy in Brazillian Portuguese
|
149
|
+
for Easy BCB Access and is also an expression of joy in Brazillian Portuguese.\n
|
151
150
|
test_files: []
|
data/lib/eba/.bcb.rb.swp
DELETED
Binary file
|