eba 1.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/eba.gemspec +30 -0
- data/lib/eba/bcb.rb +121 -0
- data/lib/eba/data.rb +89 -0
- data/lib/eba/encoder.rb +6 -0
- data/lib/eba/version.rb +17 -0
- data/lib/eba.rb +8 -0
- metadata +150 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 71d4d45aff8d5cbe3dd24ff254ac58280b612663
|
4
|
+
data.tar.gz: bd5077be7f5154ec19e85ffc6664c24911636ac5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 738ce5f25715bfeb82839702b0e758cd7ff5a67a976c5cefba972c6c9cdc7899bea50e1ab29c695ff4e651b619e5630f5771cf79cc83791980b04d6d379762b8
|
7
|
+
data.tar.gz: 3a6204920a4d53b8b5f343b7f10f028b30e1bb903bf0d07367bd15acc98edeaa8944f4933755e57cc16c92244cba511a1b32478e9a51eb4d75f4708723532886
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at rcampos@tendencias.com.br. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 rCamposCruz
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Eba
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/eba`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'eba'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install eba
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/eba. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "eba"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/eba.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'eba/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "eba"
|
8
|
+
spec.version = Eba::VERSION
|
9
|
+
spec.authors = ["Rafael Campos Cruz"]
|
10
|
+
spec.email = ["rcampos@tendencias.com.br"]
|
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.}
|
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
|
+
spec.homepage = "https://github.com/rCamposCruz/eba"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "nokogiri", "~> 1.6"
|
28
|
+
spec.add_development_dependency "savon", "~> 2.11"
|
29
|
+
spec.add_development_dependency "net", "~> 0.1"
|
30
|
+
end
|
data/lib/eba/bcb.rb
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
require "savon"
|
2
|
+
require "net/https"
|
3
|
+
require "nokogiri"
|
4
|
+
require "date"
|
5
|
+
require_relative "encoder"
|
6
|
+
require_relative "data"
|
7
|
+
|
8
|
+
class BCB < Encoder
|
9
|
+
|
10
|
+
################################################################################################
|
11
|
+
# #
|
12
|
+
# You MUST supply a valid certificate in order for the connection to work! #
|
13
|
+
# The certificate you are looking for is located in this webpage: #
|
14
|
+
# http://www.bcb.gov.br/?CERTDIG #
|
15
|
+
# #
|
16
|
+
# It will the most recent one which looks something like: #
|
17
|
+
# Cadeia de CAs de *.bcb.gov.br (yyyy) #
|
18
|
+
# #
|
19
|
+
# You then have to generate a public key from this crt file, #
|
20
|
+
# you can do so by following this StackOverflow post: #
|
21
|
+
# http://stackoverflow.com/questions/5244129/use-rsa-private-key-to-generate-public-key #
|
22
|
+
# #
|
23
|
+
# With all this done, you will be able to access freely this #
|
24
|
+
# service, without much hassle. Don't forget to upvote such an useful answer. #
|
25
|
+
# #
|
26
|
+
################################################################################################
|
27
|
+
|
28
|
+
def initialize(path_to_certificate)
|
29
|
+
@pub_key = path_to_certificate
|
30
|
+
connect_to_service()
|
31
|
+
end
|
32
|
+
|
33
|
+
def connect_to_service()
|
34
|
+
@service = Savon.client(wsdl: "https://www3.bcb.gov.br/sgspub/JSP/sgsgeral/FachadaWSSGS.wsdl",
|
35
|
+
ssl_cert_file: @pub_key)
|
36
|
+
end
|
37
|
+
|
38
|
+
# List of all operations available for the webservice,
|
39
|
+
# useful for expanding the gem
|
40
|
+
def list_operations()
|
41
|
+
puts @service.operations
|
42
|
+
end
|
43
|
+
|
44
|
+
def get_last_value(series_code)
|
45
|
+
response = @service.call(:get_ultimo_valor_xml, message: {in0: "#{series_code}"})
|
46
|
+
xmlResult = Nokogiri::XML(response.to_hash[:get_ultimo_valor_xml_response][:get_ultimo_valor_xml_return], nil, 'UTF-8')
|
47
|
+
|
48
|
+
# As it's a brazillian database it's column identifications are in portuguese,
|
49
|
+
# the translation for the fields, in order, are:
|
50
|
+
# NOME = NAME
|
51
|
+
# PERIODICIDADE = PERIODICITY
|
52
|
+
# UNIDADE = UNIT
|
53
|
+
# DIA = DAY
|
54
|
+
# MES = MONTH
|
55
|
+
# ANO = YEAR
|
56
|
+
# VALOR = VALUE
|
57
|
+
return DataBCB.new(encode(xmlResult.search("NOME").text),
|
58
|
+
series_code,
|
59
|
+
encode(xmlResult.search("PERIODICIDADE").text),
|
60
|
+
encode(xmlResult.search("UNIDADE").text),
|
61
|
+
encode(xmlResult.search("DIA").text),
|
62
|
+
encode(xmlResult.search("MES").text),
|
63
|
+
encode(xmlResult.search("ANO").text),
|
64
|
+
encode(xmlResult.search("VALOR").text))
|
65
|
+
end
|
66
|
+
|
67
|
+
def get_all_data_for_array(array_of_codes)
|
68
|
+
results = {}
|
69
|
+
codes = Array.new()
|
70
|
+
data_collection = Array.new()
|
71
|
+
|
72
|
+
array_of_codes.each do |code|
|
73
|
+
codes << code.to_s
|
74
|
+
|
75
|
+
# Build the message from the start of the historical series
|
76
|
+
message = { in0: {long: codes},
|
77
|
+
in1: '01/02/2004',
|
78
|
+
in2: Time.now.strftime('%d/%m/%Y').to_s}
|
79
|
+
|
80
|
+
# try and catch, as some series can be discontinued or a code may be broken
|
81
|
+
begin
|
82
|
+
# This request has a limit of series he can get at a time, thus
|
83
|
+
# it's way simpler to break a composite requests in various smaller
|
84
|
+
# requests. The DataBCB class serves as a way to organize such data
|
85
|
+
# and allow the developer to easily identify which series each data
|
86
|
+
# object pertains.
|
87
|
+
response = @service.call(:get_valores_series_xml, message: message)
|
88
|
+
results[code] = Nokogiri::XML(response.to_hash[:get_valores_series_xml_response] \
|
89
|
+
[:get_valores_series_xml_return])
|
90
|
+
rescue
|
91
|
+
puts "Failure trying to extract #{code}"
|
92
|
+
end
|
93
|
+
|
94
|
+
codes.clear
|
95
|
+
end
|
96
|
+
|
97
|
+
results.each do |code, result|
|
98
|
+
# recover identifying data from the getLastValue method,
|
99
|
+
# as the get_valores_series_xml desn't have identifying data
|
100
|
+
# as series name, periodicity, etc.
|
101
|
+
base_data = get_last_value(code)
|
102
|
+
|
103
|
+
|
104
|
+
# Encode enforces data data is being read as UTF-8, as
|
105
|
+
# portuguese uses a huge ammount of special characters and
|
106
|
+
# accentuations.
|
107
|
+
result.css("ITEM").each do |item|
|
108
|
+
data_collection << DataBCB.new(encode(base_data.name),
|
109
|
+
code,
|
110
|
+
base_data.periodicity,
|
111
|
+
encode(base_data.unit),
|
112
|
+
"1",
|
113
|
+
item.css("DATA").text.split("/")[0],
|
114
|
+
item.css("DATA").text.split("/")[1],
|
115
|
+
item.css("VALOR").text)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
return data_collection
|
120
|
+
end
|
121
|
+
end
|
data/lib/eba/data.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# This class intends to organize the series data in a easy to use way,
|
2
|
+
# making it easier to group lots of data in a coese way, without lost of
|
3
|
+
# information.
|
4
|
+
class DataBCB
|
5
|
+
@name = ""
|
6
|
+
@periodicity = 0
|
7
|
+
@unit = ""
|
8
|
+
@date = ""
|
9
|
+
@value = 0.0
|
10
|
+
@pk = 0
|
11
|
+
|
12
|
+
# Initialization is expected to express the state of a single row of
|
13
|
+
# data inside the BCB's Database.
|
14
|
+
def initialize(series_name, series_code, series_periodicity, series_unit,
|
15
|
+
series_day, series_month, series_year, series_value)
|
16
|
+
|
17
|
+
@name = series_name
|
18
|
+
@pk = series_code
|
19
|
+
@periodicity = series_periodicity
|
20
|
+
@unit = series_unit
|
21
|
+
@date = standardizes_date(series_day, series_month, series_year)
|
22
|
+
|
23
|
+
# Removes the . which separate every three numbers.
|
24
|
+
# This might be supperfluous, haven't tested it though.
|
25
|
+
@value = series_value.tr(".", "").to_f
|
26
|
+
end
|
27
|
+
|
28
|
+
# Return an "identification key" with data which should
|
29
|
+
# be unique to a series (grouped).
|
30
|
+
def key()
|
31
|
+
return @name + @periodicity.to_s + @unity
|
32
|
+
end
|
33
|
+
|
34
|
+
# Note that there are no set methods in this class,
|
35
|
+
# I built it in such a way that you are only intended
|
36
|
+
# to access data in the rawest form as possible as it comes
|
37
|
+
# from the BCB Webservice.
|
38
|
+
def pk
|
39
|
+
return @pk
|
40
|
+
end
|
41
|
+
|
42
|
+
def name
|
43
|
+
return @name
|
44
|
+
end
|
45
|
+
|
46
|
+
def periodicity
|
47
|
+
return @periodicity
|
48
|
+
end
|
49
|
+
|
50
|
+
def unit
|
51
|
+
return @unit
|
52
|
+
end
|
53
|
+
|
54
|
+
def date
|
55
|
+
return @date
|
56
|
+
end
|
57
|
+
|
58
|
+
def value
|
59
|
+
return @value
|
60
|
+
end
|
61
|
+
|
62
|
+
# The Webservice will always supply the date in three separate fields,
|
63
|
+
# this methods aim to convert it to a standard dd.mm.YYYY string.
|
64
|
+
def standardizes_date(day, month, year)
|
65
|
+
return "#{standardizes_number(day.to_i)}.#{standardizes_number(month.to_i)}.#{year}"
|
66
|
+
end
|
67
|
+
|
68
|
+
# As we are building a dd.mm.yyyy string, we want to
|
69
|
+
# standardize the size of the fields.
|
70
|
+
def standardizes_number(number)
|
71
|
+
if (number < 10)
|
72
|
+
return "0#{number}"
|
73
|
+
else
|
74
|
+
return "#{number}"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def print()
|
79
|
+
return "Name: #{@name}\nBCB Code: #{@pk}\nPeriodicity: #{@periodicity}\nUnit: #{@unit}\nDate: #{@date} Value: #{@value}\n"
|
80
|
+
end
|
81
|
+
|
82
|
+
# Simple comparission between two DataBCB objects.
|
83
|
+
def compare_to(data_bcb)
|
84
|
+
return (@name == data_bcb.name and @pk == data_bcb.pk \
|
85
|
+
and @periodicity == data_bcb.periodicity \
|
86
|
+
and @unit == data_bcb.unit and @date == data_bcb.date \
|
87
|
+
and @value = data_bcb.value)
|
88
|
+
end
|
89
|
+
end
|
data/lib/eba/encoder.rb
ADDED
data/lib/eba/version.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
module Eba
|
2
|
+
# For documentation purposes:
|
3
|
+
# VERSION = mm.dd.ff.hh
|
4
|
+
# mm - commits on master
|
5
|
+
# dd - commits on development
|
6
|
+
# ff - commits on feature
|
7
|
+
# hh - commits on hotfix
|
8
|
+
|
9
|
+
VERSION = "1.0.0.1"
|
10
|
+
|
11
|
+
#Version 1.0.0.1
|
12
|
+
#
|
13
|
+
# Updater gemspec.
|
14
|
+
# Added classes Encoder and DataBCB for user.
|
15
|
+
|
16
|
+
|
17
|
+
end
|
data/lib/eba.rb
ADDED
metadata
ADDED
@@ -0,0 +1,150 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: eba
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rafael Campos Cruz
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.13'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.13'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nokogiri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.6'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.6'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: savon
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.11'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.11'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: net
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.1'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.1'
|
97
|
+
description: This class was developed in a partinership with Tendencias - Consultoria
|
98
|
+
Econômica, a economical analysis company from Brazil. The intent is, given that
|
99
|
+
you know one or more primary keys for series inside the BCB database, you can extract
|
100
|
+
updates or the full historical data of said series.\nEba stands for Easy BCB Access
|
101
|
+
and is also an expression of joy in Brazillian Portuguese.
|
102
|
+
email:
|
103
|
+
- rcampos@tendencias.com.br
|
104
|
+
executables: []
|
105
|
+
extensions: []
|
106
|
+
extra_rdoc_files: []
|
107
|
+
files:
|
108
|
+
- ".gitignore"
|
109
|
+
- ".rspec"
|
110
|
+
- ".travis.yml"
|
111
|
+
- CODE_OF_CONDUCT.md
|
112
|
+
- Gemfile
|
113
|
+
- LICENSE.txt
|
114
|
+
- README.md
|
115
|
+
- Rakefile
|
116
|
+
- bin/console
|
117
|
+
- bin/setup
|
118
|
+
- eba.gemspec
|
119
|
+
- lib/eba.rb
|
120
|
+
- lib/eba/bcb.rb
|
121
|
+
- lib/eba/data.rb
|
122
|
+
- lib/eba/encoder.rb
|
123
|
+
- lib/eba/version.rb
|
124
|
+
homepage: https://github.com/rCamposCruz/eba
|
125
|
+
licenses:
|
126
|
+
- MIT
|
127
|
+
metadata: {}
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options: []
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
requirements: []
|
143
|
+
rubyforge_project:
|
144
|
+
rubygems_version: 2.5.1
|
145
|
+
signing_key:
|
146
|
+
specification_version: 4
|
147
|
+
summary: Class which serves as interface with Brazillian Central Bank databases through
|
148
|
+
the Webservice SGS - Sistema Gerenciador de Séries Temporais - v2.1. eba stands
|
149
|
+
for Easy BCB Access and is also an expression of joy in Brazillian Portuguese.
|
150
|
+
test_files: []
|