eba 1.5.5 → 1.5.6
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 -6
- data/lib/eba/version.rb +4 -1
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 764378712fdd296f175fff65f704622dc0a9b7e4
|
4
|
+
data.tar.gz: f67894df06ad96cb905843b0dcfd48a093f103d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a78bee6636ad03907a120ab33ca379160843195c91e225c3970eddbf5b8ea5efa260971cb80e5a651cc9cfc37e63d73bd114fe4630c0a96a5b7aada68b53bf1b
|
7
|
+
data.tar.gz: ed3fc2f8783bf2059abef4c7dda98910ce24526e59223354ead18b62115b2d0310eb0121f6bddb52ce216b05cb477f6ad827cf05c2c075b1706556f6df11f6e7
|
data/lib/eba/bcb.rb
CHANGED
@@ -77,6 +77,12 @@ class BCB < Encoder
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def build_bcb_data(name, code, periodicity, unit, day, month, year, value)
|
80
|
+
is_unseasoned = name.include? " - com ajuste sazonal"
|
81
|
+
|
82
|
+
if is_unseasoned then
|
83
|
+
name.slice! " - com ajuste sazonal"
|
84
|
+
end
|
85
|
+
|
80
86
|
encoded_name = encode(name)
|
81
87
|
encoded_periodicity = encode(periodicity)
|
82
88
|
encoded_unit = encode(unit)
|
@@ -84,12 +90,6 @@ class BCB < Encoder
|
|
84
90
|
encoded_month = month
|
85
91
|
encoded_year = year
|
86
92
|
encoded_value = encode(value)
|
87
|
-
|
88
|
-
is_unseasoned = name.include? " - com ajuste sazonal"
|
89
|
-
|
90
|
-
if is_unseasoned then
|
91
|
-
name.slice! " - com ajuste sazonal"
|
92
|
-
end
|
93
93
|
|
94
94
|
return Data_bcb.new(encoded_name, code, encoded_periodicity,
|
95
95
|
encoded_unit, encoded_day, encoded_month,
|
@@ -113,6 +113,7 @@ class BCB < Encoder
|
|
113
113
|
# MES = MONTH
|
114
114
|
# ANO = YEAR
|
115
115
|
# VALOR = VALUE
|
116
|
+
|
116
117
|
return build_bcb_data(xmlResult.search("NOME").text,
|
117
118
|
series_code,
|
118
119
|
xmlResult.search("PERIODICIDADE").text,
|
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.6"
|
9
9
|
|
10
10
|
#Version 1.0.1
|
11
11
|
#
|
@@ -46,4 +46,7 @@ module Eba
|
|
46
46
|
|
47
47
|
#Version 1.5.5
|
48
48
|
# promoted small change in order to handle a weird date style which BCB uses (i.e 01.2010.1900)
|
49
|
+
|
50
|
+
#Version 1.5.6
|
51
|
+
# fixes identification and handling of seazonaly adjusted data points.
|
49
52
|
end
|
metadata
CHANGED
@@ -1,99 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
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:
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.13'
|
20
14
|
requirement: !ruby/object:Gem::Requirement
|
21
15
|
requirements:
|
22
16
|
- - "~>"
|
23
17
|
- !ruby/object:Gem::Version
|
24
18
|
version: '1.13'
|
19
|
+
name: bundler
|
25
20
|
prerelease: false
|
26
21
|
type: :development
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
22
|
version_requirements: !ruby/object:Gem::Requirement
|
30
23
|
requirements:
|
31
24
|
- - "~>"
|
32
25
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
26
|
+
version: '1.13'
|
27
|
+
- !ruby/object:Gem::Dependency
|
34
28
|
requirement: !ruby/object:Gem::Requirement
|
35
29
|
requirements:
|
36
30
|
- - "~>"
|
37
31
|
- !ruby/object:Gem::Version
|
38
32
|
version: '10.0'
|
33
|
+
name: rake
|
39
34
|
prerelease: false
|
40
35
|
type: :development
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec
|
43
36
|
version_requirements: !ruby/object:Gem::Requirement
|
44
37
|
requirements:
|
45
38
|
- - "~>"
|
46
39
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
48
42
|
requirement: !ruby/object:Gem::Requirement
|
49
43
|
requirements:
|
50
44
|
- - "~>"
|
51
45
|
- !ruby/object:Gem::Version
|
52
46
|
version: '3.0'
|
47
|
+
name: rspec
|
53
48
|
prerelease: false
|
54
49
|
type: :development
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: nokogiri
|
57
50
|
version_requirements: !ruby/object:Gem::Requirement
|
58
51
|
requirements:
|
59
52
|
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
62
56
|
requirement: !ruby/object:Gem::Requirement
|
63
57
|
requirements:
|
64
58
|
- - "~>"
|
65
59
|
- !ruby/object:Gem::Version
|
66
60
|
version: '1.6'
|
61
|
+
name: nokogiri
|
67
62
|
prerelease: false
|
68
63
|
type: :development
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: savon
|
71
64
|
version_requirements: !ruby/object:Gem::Requirement
|
72
65
|
requirements:
|
73
66
|
- - "~>"
|
74
67
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
68
|
+
version: '1.6'
|
69
|
+
- !ruby/object:Gem::Dependency
|
76
70
|
requirement: !ruby/object:Gem::Requirement
|
77
71
|
requirements:
|
78
72
|
- - "~>"
|
79
73
|
- !ruby/object:Gem::Version
|
80
74
|
version: '2.11'
|
75
|
+
name: savon
|
81
76
|
prerelease: false
|
82
77
|
type: :development
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: net
|
85
78
|
version_requirements: !ruby/object:Gem::Requirement
|
86
79
|
requirements:
|
87
80
|
- - "~>"
|
88
81
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
82
|
+
version: '2.11'
|
83
|
+
- !ruby/object:Gem::Dependency
|
90
84
|
requirement: !ruby/object:Gem::Requirement
|
91
85
|
requirements:
|
92
86
|
- - "~>"
|
93
87
|
- !ruby/object:Gem::Version
|
94
88
|
version: '0.1'
|
89
|
+
name: net
|
95
90
|
prerelease: false
|
96
91
|
type: :development
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.1'
|
97
97
|
description: 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.<br>Eba stands for Easy BCB Access and is also an expression of joy in Brazillian Portuguese.<br>
|
98
98
|
email:
|
99
99
|
- rcampos@tendencias.com.br
|
@@ -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.
|
140
|
+
rubygems_version: 2.6.8
|
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>
|