eba 2.0.0 → 2.0.1
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 +2 -6
- data/lib/eba/version.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9139840c48d380ebc7f4bd5eb6b85a67e4ddfa2f
|
4
|
+
data.tar.gz: 390f470ad98f6b9c505e6987d8bd4f0412966541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd9bff1a14300d59f1de9631353710ba86b3a12ee2b9bd9f5dd7c6fc8b39fae50daeea998d5f5c573361eed7e4c00b57eeead6e5684153447e6adcf5529259d5
|
7
|
+
data.tar.gz: c2e8642c495dcf63e6b6b85a098f785b8a77e42f111595e948c4e20c5a9224ea7b0e790eb70c4b91baafa3a49162aba99b6821b2d119644f531bb4a0f1b8e969
|
data/lib/eba/bcb.rb
CHANGED
@@ -12,24 +12,20 @@ class BCB < Helper
|
|
12
12
|
# The certificate you are looking for is located in this webpage: #
|
13
13
|
# https://www.bcb.gov.br/estabilidadefinanceira/certificacaodigital #
|
14
14
|
# #
|
15
|
-
# You MUST supply
|
16
|
-
# 'Cadeia de CAs de *.bcb.gov.br (validação estendida - 2018)' file as the CA. #
|
15
|
+
# You MUST supply 'Cadeia de CAs de *.bcb.gov.br (validação estendida - 2018)' file as the CA. #
|
17
16
|
# #
|
18
17
|
# With all this done, you will be able to access freely this #
|
19
18
|
# service, without much hassle. Don't forget to upvote such an useful answer. #
|
20
19
|
# #
|
21
20
|
################################################################################################
|
22
21
|
|
23
|
-
def initialize(
|
24
|
-
@cert = path_to_certificate
|
22
|
+
def initialize(path_to_ca_certificate)
|
25
23
|
@ca = path_to_ca_certificate
|
26
|
-
|
27
24
|
connect_to_service()
|
28
25
|
end
|
29
26
|
|
30
27
|
def connect_to_service()
|
31
28
|
@service = Savon.client({wsdl: "https://www3.bcb.gov.br/wssgs/services/FachadaWSSGS?wsdl",
|
32
|
-
ssl_cert_file: @cert,
|
33
29
|
ssl_ca_cert_file: @ca,
|
34
30
|
headers: {'Accept-Encoding' => 'gzip, deflate'}})
|
35
31
|
end
|
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 = "2.0.
|
8
|
+
VERSION = "2.0.1"
|
9
9
|
|
10
10
|
#Version 1.0.1
|
11
11
|
#
|
@@ -86,4 +86,7 @@ module Eba
|
|
86
86
|
|
87
87
|
#Version 2.0.0
|
88
88
|
# Changes which files are used for authentication and how they are supplied to BCB class.
|
89
|
+
|
90
|
+
#Version 2.0.1
|
91
|
+
# Removes useless certificate and supplies only CA.
|
89
92
|
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: 2.0.
|
4
|
+
version: 2.0.1
|
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: 2019-01-
|
11
|
+
date: 2019-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|