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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c23f145793fa7683757f64d8822bd162803073a8
4
- data.tar.gz: 57ac3e5eafd318cff087adb25108d8e52e27274c
3
+ metadata.gz: e64f77a51c6ebe687f02db490d0ff132e56e3337
4
+ data.tar.gz: 82c1df5cbd10e76284ffd210b3b9fab459401418
5
5
  SHA512:
6
- metadata.gz: 3d083be674718a0d071a4ebde9b03f47d4c5618e75472f860f031a75a30b8ab5203240e8ddbdcc30654dab82d1c6f4754c7c7c904d9113057e630a66ff8373e0
7
- data.tar.gz: e61cd111a5cf08b05d6d798490ec0a42ea5fcb84c463a6b9a68dd81ad105053bca670af57ca6e3b990693d796a2f2189a38e596eca1e43b2930b59cef1e33428
6
+ metadata.gz: 78b8d428a19bf09beab79ae85240fad86e2a4398544829b432b1c1101dabce8d9b0ba9cebdbbf9754f7a9561a00e46f20e5587c63afc681befa2232b2a4d9f8d
7
+ data.tar.gz: 3dc8627e035198d9154af01a70d1b40a0dc54c7cc7f893dcf698f727470e78215e519fa8fa59790f3693b2877f5a454041516f48b85407fbc3be05fd1e57c4dc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- br_boleto (1.1.0)
4
+ br_boleto (1.2.0)
5
5
  activemodel (~> 4.2)
6
6
  activesupport (~> 4.2)
7
7
  rake (>= 0.8.7)
data/README.markdown CHANGED
@@ -1,11 +1,11 @@
1
+ [![Gem Version](https://badge.fury.io/rb/br_boleto.svg)](https://badge.fury.io/rb/br_boleto)
2
+ [![Code Climate](https://codeclimate.com/github/Brunomm/br_boleto/badges/gpa.svg)](https://codeclimate.com/github/Brunomm/br_boleto)
3
+ [![Build Status](https://travis-ci.org/Brunomm/br_boleto.svg?branch=master)](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
- [![Code Climate](https://codeclimate.com/github/Brunomm/br_boleto/badges/gpa.svg)](https://codeclimate.com/github/Brunomm/br_boleto)
6
- [![Build Status](https://travis-ci.org/Brunomm/br_boleto.svg?branch=master)](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:
@@ -26,7 +26,8 @@ module BrBoleto
26
26
  super.merge({
27
27
  # ATRIBUTO POSIÇÃO DA LINHA
28
28
  nosso_numero: 38..47,
29
- modalidade: 50..51
29
+ modalidade: 50..51,
30
+ numero_documento: 59..72, # Número do documento sem DV
30
31
  })
31
32
  end
32
33
  end
@@ -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 = 0 #corrige bugs ou traz melhorias em implementações já existentes
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 "000000000000330"
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 "000000000000348"
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 "000000000000355"
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 "000000000000362"
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 "000000000000362"
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.0
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-05-30 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake