br_boleto 1.2.0 → 1.2.1
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/Gemfile.lock +1 -1
- data/README.markdown +4 -4
- data/lib/br_boleto/retorno/cnab240/sicoob.rb +2 -1
- data/lib/br_boleto/version.rb +1 -1
- data/test/br_boleto/retorno/cnab240/sicoob_test.rb +5 -5
- 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: e64f77a51c6ebe687f02db490d0ff132e56e3337
|
|
4
|
+
data.tar.gz: 82c1df5cbd10e76284ffd210b3b9fab459401418
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78b8d428a19bf09beab79ae85240fad86e2a4398544829b432b1c1101dabce8d9b0ba9cebdbbf9754f7a9561a00e46f20e5587c63afc681befa2232b2a4d9f8d
|
|
7
|
+
data.tar.gz: 3dc8627e035198d9154af01a70d1b40a0dc54c7cc7f893dcf698f727470e78215e519fa8fa59790f3693b2877f5a454041516f48b85407fbc3be05fd1e57c4dc
|
data/Gemfile.lock
CHANGED
data/README.markdown
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
[](https://badge.fury.io/rb/br_boleto)
|
|
2
|
+
[](https://codeclimate.com/github/Brunomm/br_boleto)
|
|
3
|
+
[](https://travis-ci.org/Brunomm/br_boleto)
|
|
4
|
+
|
|
1
5
|
# **BrBoleto**
|
|
2
6
|
|
|
3
7
|
Emissão de Boletos Bancários em Ruby.
|
|
4
8
|
|
|
5
|
-
[](https://codeclimate.com/github/Brunomm/br_boleto)
|
|
6
|
-
[](https://travis-ci.org/Brunomm/br_boleto)
|
|
7
|
-
|
|
8
|
-
## Versão 1.1.0
|
|
9
9
|
**O que essa gem faz?**
|
|
10
10
|
|
|
11
11
|
1. Boleto bancário (apenas os cálculos para o boleto, sem a interface) para os bancos:
|
data/lib/br_boleto/version.rb
CHANGED
|
@@ -2,7 +2,7 @@ module BrBoleto
|
|
|
2
2
|
module Version
|
|
3
3
|
MAJOR = 1 #inclui alterações de API e pode quebrar compatibilidade com versões anteriores
|
|
4
4
|
MINOR = 2 #inclui novas funcionalidades, sem quebrar APIs existentes
|
|
5
|
-
PATCH =
|
|
5
|
+
PATCH = 1 #corrige bugs ou traz melhorias em implementações já existentes
|
|
6
6
|
CURRENT = "#{MAJOR}.#{MINOR}.#{PATCH}"
|
|
7
7
|
end
|
|
8
8
|
end
|
|
@@ -23,7 +23,7 @@ describe BrBoleto::Retorno::Cnab240::Sicoob do
|
|
|
23
23
|
pagamento.dv_conta_e_agencia.must_equal "0"
|
|
24
24
|
pagamento.nosso_numero.must_equal "0000000330"
|
|
25
25
|
pagamento.carteira.must_equal "1"
|
|
26
|
-
pagamento.numero_documento.must_equal "
|
|
26
|
+
pagamento.numero_documento.must_equal "00000000000033"
|
|
27
27
|
pagamento.data_vencimento.must_equal Date.parse('03/05/2016')
|
|
28
28
|
pagamento.valor_titulo.must_equal 129.39
|
|
29
29
|
pagamento.banco_recebedor.must_equal "756"
|
|
@@ -63,7 +63,7 @@ describe BrBoleto::Retorno::Cnab240::Sicoob do
|
|
|
63
63
|
pagamento.dv_conta_e_agencia.must_equal "0"
|
|
64
64
|
pagamento.nosso_numero.must_equal "0000000348"
|
|
65
65
|
pagamento.carteira.must_equal "1"
|
|
66
|
-
pagamento.numero_documento.must_equal "
|
|
66
|
+
pagamento.numero_documento.must_equal "00000000000034"
|
|
67
67
|
pagamento.data_vencimento.must_equal Date.parse('06/05/2016')
|
|
68
68
|
pagamento.valor_titulo.must_equal 29.0
|
|
69
69
|
pagamento.banco_recebedor.must_equal "756"
|
|
@@ -103,7 +103,7 @@ describe BrBoleto::Retorno::Cnab240::Sicoob do
|
|
|
103
103
|
pagamento.dv_conta_e_agencia.must_equal "0"
|
|
104
104
|
pagamento.nosso_numero.must_equal "0000000355"
|
|
105
105
|
pagamento.carteira.must_equal "1"
|
|
106
|
-
pagamento.numero_documento.must_equal "
|
|
106
|
+
pagamento.numero_documento.must_equal "00000000000035"
|
|
107
107
|
pagamento.data_vencimento.must_equal Date.parse('06/05/2016')
|
|
108
108
|
pagamento.valor_titulo.must_equal 89.1
|
|
109
109
|
pagamento.banco_recebedor.must_equal "756"
|
|
@@ -143,7 +143,7 @@ describe BrBoleto::Retorno::Cnab240::Sicoob do
|
|
|
143
143
|
pagamento.dv_conta_e_agencia.must_equal "0"
|
|
144
144
|
pagamento.nosso_numero.must_equal "0000000362"
|
|
145
145
|
pagamento.carteira.must_equal "1"
|
|
146
|
-
pagamento.numero_documento.must_equal "
|
|
146
|
+
pagamento.numero_documento.must_equal "00000000000036"
|
|
147
147
|
pagamento.data_vencimento.must_equal Date.parse('06/05/2016')
|
|
148
148
|
pagamento.valor_titulo.must_equal 29.0
|
|
149
149
|
pagamento.banco_recebedor.must_equal "104"
|
|
@@ -183,7 +183,7 @@ describe BrBoleto::Retorno::Cnab240::Sicoob do
|
|
|
183
183
|
pagamento.dv_conta_e_agencia.must_equal "0"
|
|
184
184
|
pagamento.nosso_numero.must_equal "0000000362"
|
|
185
185
|
pagamento.carteira.must_equal "1"
|
|
186
|
-
pagamento.numero_documento.must_equal "
|
|
186
|
+
pagamento.numero_documento.must_equal "00000000000036"
|
|
187
187
|
pagamento.data_vencimento.must_equal Date.parse('06/05/2016')
|
|
188
188
|
pagamento.valor_titulo.must_equal 47.37
|
|
189
189
|
pagamento.banco_recebedor.must_equal "104"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: br_boleto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bruno M. Mergen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|