boleto_bancario 0.0.1.beta → 0.0.2
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 +7 -0
- data/.gitignore +3 -2
- data/.travis.yml +10 -0
- data/Changelog.markdown +4 -0
- data/Gemfile +1 -1
- data/Planning.markdown +18 -86
- data/README.markdown +107 -55
- data/Rakefile +7 -1
- data/TODO.markdown +15 -1
- data/boleto_bancario.gemspec +7 -3
- data/lib/boleto_bancario.rb +27 -15
- data/lib/boleto_bancario/calculos/modulo11_fator_de9a2.rb +65 -0
- data/lib/boleto_bancario/calculos/modulo11_fator_de9a2_resto_x.rb +5 -51
- data/lib/boleto_bancario/calculos/modulo_numero_de_controle.rb +117 -0
- data/lib/boleto_bancario/core/banco_brasil.rb +30 -5
- data/lib/boleto_bancario/core/banrisul.rb +182 -0
- data/lib/boleto_bancario/core/boleto.rb +67 -34
- data/lib/boleto_bancario/core/bradesco.rb +28 -16
- data/lib/boleto_bancario/core/caixa.rb +233 -0
- data/lib/boleto_bancario/core/hsbc.rb +170 -0
- data/lib/boleto_bancario/core/itau.rb +20 -10
- data/lib/boleto_bancario/core/real.rb +177 -0
- data/lib/boleto_bancario/core/santander.rb +19 -22
- data/lib/boleto_bancario/core/sicoob.rb +172 -0
- data/lib/boleto_bancario/core/sicredi.rb +290 -0
- data/lib/boleto_bancario/version.rb +1 -2
- data/spec/boleto_bancario/calculos/modulo10_spec.rb +4 -0
- data/spec/boleto_bancario/calculos/modulo11_fator_de2a9_spec.rb +6 -0
- data/spec/boleto_bancario/calculos/modulo11_fator_de9a2_spec.rb +31 -0
- data/spec/boleto_bancario/calculos/modulo_numero_de_controle_spec.rb +37 -0
- data/spec/boleto_bancario/core/banco_brasil_spec.rb +59 -65
- data/spec/boleto_bancario/core/banrisul_spec.rb +129 -0
- data/spec/boleto_bancario/core/boleto_spec.rb +148 -32
- data/spec/boleto_bancario/core/bradesco_spec.rb +29 -36
- data/spec/boleto_bancario/core/caixa_spec.rb +111 -0
- data/spec/boleto_bancario/core/hsbc_spec.rb +72 -0
- data/spec/boleto_bancario/core/itau_spec.rb +33 -36
- data/spec/boleto_bancario/core/real_spec.rb +104 -0
- data/spec/boleto_bancario/core/santander_spec.rb +26 -24
- data/spec/boleto_bancario/core/sicoob_spec.rb +111 -0
- data/spec/boleto_bancario/core/sicredi_spec.rb +149 -0
- data/spec/inheritance/banco_brasil_spec.rb +22 -0
- data/spec/inheritance/banrisul_spec.rb +22 -0
- data/spec/inheritance/boleto_spec.rb +15 -0
- data/spec/inheritance/bradesco_spec.rb +22 -0
- data/spec/inheritance/caixa_spec.rb +22 -0
- data/spec/inheritance/hsbc_spec.rb +22 -0
- data/spec/inheritance/itau_spec.rb +22 -0
- data/spec/inheritance/real_spec.rb +22 -0
- data/spec/inheritance/santander_spec.rb +22 -0
- data/spec/inheritance/sicoob_spec.rb +22 -0
- data/spec/inheritance/sicredi_spec.rb +22 -0
- data/spec/shared_examples/boleto_bancario_shared_example.rb +21 -34
- data/spec/spec_helper.rb +2 -2
- metadata +119 -47
- data/.rvmrc +0 -1
@@ -0,0 +1,15 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
class Boleto < BoletoBancario::Boleto
|
5
|
+
def self.valor_documento_tamanho_maximo
|
6
|
+
9_999.99 # Default 99999999.99
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
describe Boleto do
|
11
|
+
describe "on validations" do
|
12
|
+
it { should have_valid(:valor_documento).when(100.99, 9_999.99) }
|
13
|
+
it { should_not have_valid(:valor_documento).when(10_000.00, 99_999.99) }
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
class Bradesco < BoletoBancario::Bradesco
|
5
|
+
def self.valor_documento_tamanho_maximo
|
6
|
+
250 # Default 99999999.99
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.carteiras_suportadas
|
10
|
+
%w[06 19 22] # Default %w[03 06 09 19 21 22]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Bradesco do
|
15
|
+
describe "on validations" do
|
16
|
+
it { should have_valid(:valor_documento).when(99, 249, 250) }
|
17
|
+
it { should_not have_valid(:valor_documento).when(250.01, 260) }
|
18
|
+
|
19
|
+
it { should have_valid(:carteira).when(6, 19, 22) }
|
20
|
+
it { should_not have_valid(:carteira).when(3, 9, 21, 15) }
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
class Caixa < BoletoBancario::Caixa
|
5
|
+
def self.valor_documento_tamanho_maximo
|
6
|
+
100 # Default 9999999.99
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.carteiras_suportadas
|
10
|
+
%w[12 17] # Default %w[14 24]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Caixa do
|
15
|
+
describe "on validations" do
|
16
|
+
it { should have_valid(:valor_documento).when(99, 99.99, 25) }
|
17
|
+
it { should_not have_valid(:valor_documento).when(100.01, 150) }
|
18
|
+
|
19
|
+
it { should have_valid(:carteira).when(12, 17) }
|
20
|
+
it { should_not have_valid(:carteira).when(16, 14, 20) }
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
class Hsbc < BoletoBancario::Hsbc
|
5
|
+
def self.valor_documento_tamanho_maximo
|
6
|
+
100 # Default 99999999.99
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.carteiras_suportadas
|
10
|
+
%w[ABC] # Default %w[CNR]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Hsbc do
|
15
|
+
describe "on validations" do
|
16
|
+
it { should have_valid(:valor_documento).when(99, 99.99, 25) }
|
17
|
+
it { should_not have_valid(:valor_documento).when(100.01, 150) }
|
18
|
+
|
19
|
+
it { should have_valid(:carteira).when('ABC') }
|
20
|
+
it { should_not have_valid(:carteira).when('CNR', 14, 'CSB') }
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
class Itau < BoletoBancario::Itau
|
5
|
+
def self.valor_documento_tamanho_maximo
|
6
|
+
250 # Default 99999999.99
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.carteiras_suportadas
|
10
|
+
%w[109 175 198 131 146 142 168] # Default %w[107 109 174 175 196 198 126 131 146 122 142 143 150 168]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Itau do
|
15
|
+
describe "on validations" do
|
16
|
+
it { should have_valid(:valor_documento).when(99, 249, 250) }
|
17
|
+
it { should_not have_valid(:valor_documento).when(250.01, 260) }
|
18
|
+
|
19
|
+
it { should have_valid(:carteira).when(109, 175, 198, 131, 146, 142, 168) }
|
20
|
+
it { should_not have_valid(:carteira).when(107, 174, 196, 126, 122, 143, 150) }
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
class Real < BoletoBancario::Real
|
5
|
+
def self.valor_documento_tamanho_maximo
|
6
|
+
711 # Default 99999999.99
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.carteiras_suportadas
|
10
|
+
%w[20] # Default %w[00 20 31 42 47 85]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Real do
|
15
|
+
describe "on validations" do
|
16
|
+
it { should have_valid(:valor_documento).when(1, 0.01, 711.00) }
|
17
|
+
it { should_not have_valid(:valor_documento).when(711.01, 1000) }
|
18
|
+
|
19
|
+
it { should have_valid(:carteira).when(20) }
|
20
|
+
it { should_not have_valid(:carteira).when(00, 31, 42, 47, 85) }
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
class Santander < BoletoBancario::Santander
|
5
|
+
def self.valor_documento_tamanho_maximo
|
6
|
+
250 # Default 99999999.99
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.carteiras_suportadas
|
10
|
+
%w[102] # Default %w[101 102 121]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Santander do
|
15
|
+
describe "on validations" do
|
16
|
+
it { should have_valid(:valor_documento).when(99, 249, 250) }
|
17
|
+
it { should_not have_valid(:valor_documento).when(250.01, 260) }
|
18
|
+
|
19
|
+
it { should have_valid(:carteira).when(102) }
|
20
|
+
it { should_not have_valid(:carteira).when(101, 121) }
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
class Sicoob < BoletoBancario::Sicoob
|
5
|
+
def self.valor_documento_tamanho_maximo
|
6
|
+
456.50 # Default 99999999.99
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.carteiras_suportadas
|
10
|
+
%w[1] # Default %w[1 9]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Sicoob do
|
15
|
+
describe "on validations" do
|
16
|
+
it { should have_valid(:valor_documento).when(99, 99.99, 25) }
|
17
|
+
it { should_not have_valid(:valor_documento).when(456.51, 1000) }
|
18
|
+
|
19
|
+
it { should have_valid(:carteira).when(1) }
|
20
|
+
it { should_not have_valid(:carteira).when(9) }
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
class Sicredi < BoletoBancario::Sicredi
|
5
|
+
def self.valor_documento_tamanho_maximo
|
6
|
+
250 # Default 99999999.99
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.carteiras_suportadas
|
10
|
+
%w[102] # Default %w[11 31]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Sicredi do
|
15
|
+
describe "on validations" do
|
16
|
+
it { should have_valid(:valor_documento).when(99, 249, 250) }
|
17
|
+
it { should_not have_valid(:valor_documento).when(250.01, 260) }
|
18
|
+
|
19
|
+
it { should have_valid(:carteira).when(102) }
|
20
|
+
it { should_not have_valid(:carteira).when(1, 31) }
|
21
|
+
end
|
22
|
+
end
|
@@ -11,15 +11,9 @@ shared_examples_for 'boleto bancario' do
|
|
11
11
|
it { should have_valid(:endereco_cedente).when('Rua Itapaiuna') }
|
12
12
|
it { should_not have_valid(:endereco_cedente).when(nil, '') }
|
13
13
|
|
14
|
-
it { should have_valid(:valor_documento).when('0900') }
|
15
|
-
it { should_not have_valid(:valor_documento).when(nil, '') }
|
16
|
-
|
17
14
|
it { should have_valid(:numero_documento).when('09890') }
|
18
15
|
it { should_not have_valid(:numero_documento).when(nil, '') }
|
19
16
|
|
20
|
-
it { should have_valid(:carteira).when('10', '75') }
|
21
|
-
it { should_not have_valid(:carteira).when(nil, '') }
|
22
|
-
|
23
17
|
it { should have_valid(:sacado).when('Teste', 'Outro Teste') }
|
24
18
|
it { should_not have_valid(:sacado).when(nil, '') }
|
25
19
|
|
@@ -37,19 +31,31 @@ shared_examples_for 'boleto bancario' do
|
|
37
31
|
describe "#persisted?" do
|
38
32
|
before { subject.should respond_to(:persisted?) }
|
39
33
|
|
40
|
-
|
34
|
+
it { expect(subject.persisted?).to be false }
|
35
|
+
end
|
36
|
+
|
37
|
+
describe "#carteira_formatada" do
|
38
|
+
it { subject.should respond_to(:carteira_formatada) }
|
39
|
+
end
|
40
|
+
|
41
|
+
describe "#valor_documento_formatado" do
|
42
|
+
it { subject.should respond_to(:valor_formatado_para_codigo_de_barras) }
|
43
|
+
end
|
44
|
+
|
45
|
+
describe "#aceite_formatado" do
|
46
|
+
it { subject.should respond_to(:aceite_formatado) }
|
41
47
|
end
|
42
48
|
|
43
49
|
describe "#codigo_do_banco" do
|
44
50
|
before { subject.should respond_to(:codigo_banco) }
|
45
51
|
|
46
|
-
it { expect { subject.codigo_banco }.to_not raise_error(
|
52
|
+
it { expect { subject.codigo_banco }.to_not raise_error() }
|
47
53
|
end
|
48
54
|
|
49
55
|
describe "#digito_do_codigo_do_banco" do
|
50
56
|
before { subject.should respond_to(:digito_codigo_banco) }
|
51
57
|
|
52
|
-
it { expect { subject.digito_codigo_banco }.to_not raise_error(
|
58
|
+
it { expect { subject.digito_codigo_banco }.to_not raise_error() }
|
53
59
|
end
|
54
60
|
|
55
61
|
describe "#codigo_banco_formatado" do
|
@@ -65,13 +71,13 @@ shared_examples_for 'boleto bancario' do
|
|
65
71
|
describe "#agencia_codigo_cedente" do
|
66
72
|
before { subject.should respond_to(:agencia_codigo_cedente) }
|
67
73
|
|
68
|
-
it { expect { subject.agencia_codigo_cedente }.to_not raise_error(
|
74
|
+
it { expect { subject.agencia_codigo_cedente }.to_not raise_error() }
|
69
75
|
end
|
70
76
|
|
71
77
|
describe "#nosso_numero" do
|
72
78
|
before { subject.should respond_to(:nosso_numero) }
|
73
79
|
|
74
|
-
it { expect { subject.nosso_numero }.to_not raise_error(
|
80
|
+
it { expect { subject.nosso_numero }.to_not raise_error() }
|
75
81
|
end
|
76
82
|
|
77
83
|
describe "#carteira_formatada" do
|
@@ -81,32 +87,13 @@ shared_examples_for 'boleto bancario' do
|
|
81
87
|
describe "#codigo_de_barras_do_banco" do
|
82
88
|
before { subject.should respond_to(:codigo_de_barras_do_banco) }
|
83
89
|
|
84
|
-
it { expect { subject.codigo_de_barras_do_banco }.to_not raise_error(
|
90
|
+
it { expect { subject.codigo_de_barras_do_banco }.to_not raise_error() }
|
85
91
|
end
|
86
92
|
|
87
93
|
describe "#valor_formatado_para_codigo_de_barras" do
|
88
|
-
|
89
|
-
described_class.new.should respond_to(:valor_documento)
|
90
|
-
described_class.new.should respond_to(:valor_formatado_para_codigo_de_barras)
|
91
|
-
end
|
92
|
-
|
93
|
-
context "when period" do
|
94
|
-
subject { described_class.new(:valor_documento => 123.45) }
|
95
|
-
|
96
|
-
its(:valor_formatado_para_codigo_de_barras) { should eq '0000012345' }
|
97
|
-
end
|
98
|
-
|
99
|
-
context "when comma" do
|
100
|
-
subject { described_class.new(:valor_documento => '1.000,45') }
|
94
|
+
it { subject.should respond_to(:valor_documento) }
|
101
95
|
|
102
|
-
|
103
|
-
end
|
104
|
-
|
105
|
-
context "when integer" do
|
106
|
-
subject { described_class.new(:valor_documento => 1_999) }
|
107
|
-
|
108
|
-
its(:valor_formatado_para_codigo_de_barras) { should eq '0000001999' }
|
109
|
-
end
|
96
|
+
it { subject.should respond_to(:valor_formatado_para_codigo_de_barras) }
|
110
97
|
end
|
111
98
|
|
112
99
|
describe "#codigo_de_barras" do
|
@@ -161,4 +148,4 @@ shared_examples_for 'boleto bancario' do
|
|
161
148
|
subject.fator_de_vencimento.should eq '1677'
|
162
149
|
end
|
163
150
|
end
|
164
|
-
end
|
151
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,126 +1,153 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boleto_bancario
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tomas D'Stefano
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-08-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
14
27
|
- !ruby/object:Gem::Dependency
|
15
28
|
name: activesupport
|
16
29
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
30
|
requirements:
|
19
|
-
- - ~>
|
31
|
+
- - "~>"
|
20
32
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
33
|
+
version: '4.1'
|
22
34
|
type: :runtime
|
23
35
|
prerelease: false
|
24
36
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
37
|
requirements:
|
27
|
-
- - ~>
|
38
|
+
- - "~>"
|
28
39
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
40
|
+
version: '4.1'
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
42
|
name: activemodel
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '4.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '4.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: barby
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
36
60
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
61
|
+
version: '0'
|
38
62
|
type: :runtime
|
39
63
|
prerelease: false
|
40
64
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
65
|
requirements:
|
43
|
-
- -
|
66
|
+
- - ">="
|
44
67
|
- !ruby/object:Gem::Version
|
45
|
-
version: '
|
68
|
+
version: '0'
|
46
69
|
- !ruby/object:Gem::Dependency
|
47
70
|
name: rspec
|
48
71
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
72
|
requirements:
|
51
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.13'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.13'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
52
88
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
89
|
+
version: '0'
|
54
90
|
type: :development
|
55
91
|
prerelease: false
|
56
92
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
93
|
requirements:
|
59
|
-
- -
|
94
|
+
- - ">="
|
60
95
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
96
|
+
version: '0'
|
62
97
|
- !ruby/object:Gem::Dependency
|
63
98
|
name: valid_attribute
|
64
99
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
100
|
requirements:
|
67
|
-
- - ~>
|
101
|
+
- - "~>"
|
68
102
|
- !ruby/object:Gem::Version
|
69
103
|
version: '1.3'
|
70
104
|
type: :development
|
71
105
|
prerelease: false
|
72
106
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
107
|
requirements:
|
75
|
-
- - ~>
|
108
|
+
- - "~>"
|
76
109
|
- !ruby/object:Gem::Version
|
77
110
|
version: '1.3'
|
78
111
|
- !ruby/object:Gem::Dependency
|
79
112
|
name: pry
|
80
113
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
114
|
requirements:
|
83
|
-
- - ~>
|
115
|
+
- - "~>"
|
84
116
|
- !ruby/object:Gem::Version
|
85
117
|
version: '0.9'
|
86
118
|
type: :development
|
87
119
|
prerelease: false
|
88
120
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
121
|
requirements:
|
91
|
-
- - ~>
|
122
|
+
- - "~>"
|
92
123
|
- !ruby/object:Gem::Version
|
93
124
|
version: '0.9'
|
94
125
|
- !ruby/object:Gem::Dependency
|
95
126
|
name: simplecov
|
96
127
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
128
|
requirements:
|
99
|
-
- - ~>
|
129
|
+
- - "~>"
|
100
130
|
- !ruby/object:Gem::Version
|
101
131
|
version: '0.2'
|
102
132
|
type: :development
|
103
133
|
prerelease: false
|
104
134
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
135
|
requirements:
|
107
|
-
- - ~>
|
136
|
+
- - "~>"
|
108
137
|
- !ruby/object:Gem::Version
|
109
138
|
version: '0.2'
|
110
139
|
- !ruby/object:Gem::Dependency
|
111
140
|
name: simplecov-html
|
112
141
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
142
|
requirements:
|
115
|
-
- - ~>
|
143
|
+
- - "~>"
|
116
144
|
- !ruby/object:Gem::Version
|
117
145
|
version: '0.7'
|
118
146
|
type: :development
|
119
147
|
prerelease: false
|
120
148
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
149
|
requirements:
|
123
|
-
- - ~>
|
150
|
+
- - "~>"
|
124
151
|
- !ruby/object:Gem::Version
|
125
152
|
version: '0.7'
|
126
153
|
description: Emissão de Boletos Bancários em Ruby
|
@@ -130,9 +157,9 @@ executables: []
|
|
130
157
|
extensions: []
|
131
158
|
extra_rdoc_files: []
|
132
159
|
files:
|
133
|
-
- .gitignore
|
134
|
-
- .rspec
|
135
|
-
- .
|
160
|
+
- ".gitignore"
|
161
|
+
- ".rspec"
|
162
|
+
- ".travis.yml"
|
136
163
|
- Changelog.markdown
|
137
164
|
- Gemfile
|
138
165
|
- LICENSE
|
@@ -152,12 +179,20 @@ files:
|
|
152
179
|
- lib/boleto_bancario/calculos/modulo11_fator_de2a7.rb
|
153
180
|
- lib/boleto_bancario/calculos/modulo11_fator_de2a9.rb
|
154
181
|
- lib/boleto_bancario/calculos/modulo11_fator_de2a9_resto_zero.rb
|
182
|
+
- lib/boleto_bancario/calculos/modulo11_fator_de9a2.rb
|
155
183
|
- lib/boleto_bancario/calculos/modulo11_fator_de9a2_resto_x.rb
|
184
|
+
- lib/boleto_bancario/calculos/modulo_numero_de_controle.rb
|
156
185
|
- lib/boleto_bancario/core/banco_brasil.rb
|
186
|
+
- lib/boleto_bancario/core/banrisul.rb
|
157
187
|
- lib/boleto_bancario/core/boleto.rb
|
158
188
|
- lib/boleto_bancario/core/bradesco.rb
|
189
|
+
- lib/boleto_bancario/core/caixa.rb
|
190
|
+
- lib/boleto_bancario/core/hsbc.rb
|
159
191
|
- lib/boleto_bancario/core/itau.rb
|
192
|
+
- lib/boleto_bancario/core/real.rb
|
160
193
|
- lib/boleto_bancario/core/santander.rb
|
194
|
+
- lib/boleto_bancario/core/sicoob.rb
|
195
|
+
- lib/boleto_bancario/core/sicredi.rb
|
161
196
|
- lib/boleto_bancario/version.rb
|
162
197
|
- spec/boleto_bancario/calculos/digitos_spec.rb
|
163
198
|
- spec/boleto_bancario/calculos/fator_vencimento_spec.rb
|
@@ -168,37 +203,55 @@ files:
|
|
168
203
|
- spec/boleto_bancario/calculos/modulo11_fator_de2a9_resto_zero_spec.rb
|
169
204
|
- spec/boleto_bancario/calculos/modulo11_fator_de2a9_spec.rb
|
170
205
|
- spec/boleto_bancario/calculos/modulo11_fator_de9a2_resto_x_spec.rb
|
206
|
+
- spec/boleto_bancario/calculos/modulo11_fator_de9a2_spec.rb
|
171
207
|
- spec/boleto_bancario/calculos/modulo11_spec.rb
|
208
|
+
- spec/boleto_bancario/calculos/modulo_numero_de_controle_spec.rb
|
172
209
|
- spec/boleto_bancario/core/banco_brasil_spec.rb
|
210
|
+
- spec/boleto_bancario/core/banrisul_spec.rb
|
173
211
|
- spec/boleto_bancario/core/boleto_spec.rb
|
174
212
|
- spec/boleto_bancario/core/bradesco_spec.rb
|
213
|
+
- spec/boleto_bancario/core/caixa_spec.rb
|
214
|
+
- spec/boleto_bancario/core/hsbc_spec.rb
|
175
215
|
- spec/boleto_bancario/core/itau_spec.rb
|
216
|
+
- spec/boleto_bancario/core/real_spec.rb
|
176
217
|
- spec/boleto_bancario/core/santander_spec.rb
|
218
|
+
- spec/boleto_bancario/core/sicoob_spec.rb
|
219
|
+
- spec/boleto_bancario/core/sicredi_spec.rb
|
220
|
+
- spec/inheritance/banco_brasil_spec.rb
|
221
|
+
- spec/inheritance/banrisul_spec.rb
|
222
|
+
- spec/inheritance/boleto_spec.rb
|
223
|
+
- spec/inheritance/bradesco_spec.rb
|
224
|
+
- spec/inheritance/caixa_spec.rb
|
225
|
+
- spec/inheritance/hsbc_spec.rb
|
226
|
+
- spec/inheritance/itau_spec.rb
|
227
|
+
- spec/inheritance/real_spec.rb
|
228
|
+
- spec/inheritance/santander_spec.rb
|
229
|
+
- spec/inheritance/sicoob_spec.rb
|
230
|
+
- spec/inheritance/sicredi_spec.rb
|
177
231
|
- spec/shared_examples/boleto_bancario_shared_example.rb
|
178
232
|
- spec/spec_helper.rb
|
179
233
|
homepage: https://github.com/tomas-stefano/boleto_bancario
|
180
234
|
licenses: []
|
235
|
+
metadata: {}
|
181
236
|
post_install_message:
|
182
237
|
rdoc_options: []
|
183
238
|
require_paths:
|
184
239
|
- lib
|
185
240
|
required_ruby_version: !ruby/object:Gem::Requirement
|
186
|
-
none: false
|
187
241
|
requirements:
|
188
|
-
- -
|
242
|
+
- - ">="
|
189
243
|
- !ruby/object:Gem::Version
|
190
244
|
version: '0'
|
191
245
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
|
-
none: false
|
193
246
|
requirements:
|
194
|
-
- -
|
247
|
+
- - ">="
|
195
248
|
- !ruby/object:Gem::Version
|
196
|
-
version:
|
249
|
+
version: '0'
|
197
250
|
requirements: []
|
198
251
|
rubyforge_project:
|
199
|
-
rubygems_version:
|
252
|
+
rubygems_version: 2.4.5
|
200
253
|
signing_key:
|
201
|
-
specification_version:
|
254
|
+
specification_version: 4
|
202
255
|
summary: Emissão de Boletos Bancários em Ruby
|
203
256
|
test_files:
|
204
257
|
- spec/boleto_bancario/calculos/digitos_spec.rb
|
@@ -210,12 +263,31 @@ test_files:
|
|
210
263
|
- spec/boleto_bancario/calculos/modulo11_fator_de2a9_resto_zero_spec.rb
|
211
264
|
- spec/boleto_bancario/calculos/modulo11_fator_de2a9_spec.rb
|
212
265
|
- spec/boleto_bancario/calculos/modulo11_fator_de9a2_resto_x_spec.rb
|
266
|
+
- spec/boleto_bancario/calculos/modulo11_fator_de9a2_spec.rb
|
213
267
|
- spec/boleto_bancario/calculos/modulo11_spec.rb
|
268
|
+
- spec/boleto_bancario/calculos/modulo_numero_de_controle_spec.rb
|
214
269
|
- spec/boleto_bancario/core/banco_brasil_spec.rb
|
270
|
+
- spec/boleto_bancario/core/banrisul_spec.rb
|
215
271
|
- spec/boleto_bancario/core/boleto_spec.rb
|
216
272
|
- spec/boleto_bancario/core/bradesco_spec.rb
|
273
|
+
- spec/boleto_bancario/core/caixa_spec.rb
|
274
|
+
- spec/boleto_bancario/core/hsbc_spec.rb
|
217
275
|
- spec/boleto_bancario/core/itau_spec.rb
|
276
|
+
- spec/boleto_bancario/core/real_spec.rb
|
218
277
|
- spec/boleto_bancario/core/santander_spec.rb
|
278
|
+
- spec/boleto_bancario/core/sicoob_spec.rb
|
279
|
+
- spec/boleto_bancario/core/sicredi_spec.rb
|
280
|
+
- spec/inheritance/banco_brasil_spec.rb
|
281
|
+
- spec/inheritance/banrisul_spec.rb
|
282
|
+
- spec/inheritance/boleto_spec.rb
|
283
|
+
- spec/inheritance/bradesco_spec.rb
|
284
|
+
- spec/inheritance/caixa_spec.rb
|
285
|
+
- spec/inheritance/hsbc_spec.rb
|
286
|
+
- spec/inheritance/itau_spec.rb
|
287
|
+
- spec/inheritance/real_spec.rb
|
288
|
+
- spec/inheritance/santander_spec.rb
|
289
|
+
- spec/inheritance/sicoob_spec.rb
|
290
|
+
- spec/inheritance/sicredi_spec.rb
|
219
291
|
- spec/shared_examples/boleto_bancario_shared_example.rb
|
220
292
|
- spec/spec_helper.rb
|
221
293
|
has_rdoc:
|