boleto_bancario 0.0.2 → 1.0.0

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.
Files changed (73) hide show
  1. checksums.yaml +5 -5
  2. data/Changelog.markdown +54 -2
  3. data/README.markdown +660 -189
  4. data/lib/boleto_bancario/calculos/documento.rb +191 -0
  5. data/lib/boleto_bancario/calculos/fator_vencimento.rb +78 -31
  6. data/lib/boleto_bancario/core/boleto.rb +30 -1
  7. data/lib/boleto_bancario/core/c6_bank.rb +155 -0
  8. data/lib/boleto_bancario/core/inter.rb +155 -0
  9. data/lib/boleto_bancario/core/nubank.rb +156 -0
  10. data/lib/boleto_bancario/locales/pt-BR.yml +55 -0
  11. data/lib/boleto_bancario/renderers/base.rb +154 -0
  12. data/lib/boleto_bancario/renderers/html_renderer.rb +92 -0
  13. data/lib/boleto_bancario/renderers/pdf_renderer.rb +130 -0
  14. data/lib/boleto_bancario/renderers/png_renderer.rb +66 -0
  15. data/lib/boleto_bancario/templates/_barcode.html.erb +3 -0
  16. data/lib/boleto_bancario/templates/_cedente.html.erb +14 -0
  17. data/lib/boleto_bancario/templates/_header.html.erb +4 -0
  18. data/lib/boleto_bancario/templates/_instructions.html.erb +10 -0
  19. data/lib/boleto_bancario/templates/_payment.html.erb +36 -0
  20. data/lib/boleto_bancario/templates/_sacado.html.erb +10 -0
  21. data/lib/boleto_bancario/templates/boleto.html.erb +22 -0
  22. data/lib/boleto_bancario/templates/boleto_styles.css +18 -0
  23. data/lib/boleto_bancario/version.rb +3 -1
  24. data/lib/boleto_bancario.rb +23 -6
  25. data/lib/generators/boleto_bancario/views_generator.rb +47 -0
  26. metadata +91 -129
  27. data/.gitignore +0 -19
  28. data/.rspec +0 -1
  29. data/.travis.yml +0 -10
  30. data/Gemfile +0 -3
  31. data/Planning.markdown +0 -63
  32. data/Rakefile +0 -15
  33. data/TODO.markdown +0 -19
  34. data/boleto_bancario.gemspec +0 -29
  35. data/documentacoes_dos_boletos/Bradesco/Manual_BRADESCO.PDF +0 -0
  36. data/lib/boleto_bancario/core/hsbc.rb +0 -170
  37. data/lib/boleto_bancario/core/real.rb +0 -177
  38. data/spec/boleto_bancario/calculos/digitos_spec.rb +0 -19
  39. data/spec/boleto_bancario/calculos/fator_vencimento_spec.rb +0 -59
  40. data/spec/boleto_bancario/calculos/fatores_de_multiplicacao_spec.rb +0 -69
  41. data/spec/boleto_bancario/calculos/linha_digitavel_spec.rb +0 -57
  42. data/spec/boleto_bancario/calculos/modulo10_spec.rb +0 -53
  43. data/spec/boleto_bancario/calculos/modulo11_fator_de2a7_spec.rb +0 -43
  44. data/spec/boleto_bancario/calculos/modulo11_fator_de2a9_resto_zero_spec.rb +0 -39
  45. data/spec/boleto_bancario/calculos/modulo11_fator_de2a9_spec.rb +0 -67
  46. data/spec/boleto_bancario/calculos/modulo11_fator_de9a2_resto_x_spec.rb +0 -37
  47. data/spec/boleto_bancario/calculos/modulo11_fator_de9a2_spec.rb +0 -31
  48. data/spec/boleto_bancario/calculos/modulo11_spec.rb +0 -19
  49. data/spec/boleto_bancario/calculos/modulo_numero_de_controle_spec.rb +0 -37
  50. data/spec/boleto_bancario/core/banco_brasil_spec.rb +0 -377
  51. data/spec/boleto_bancario/core/banrisul_spec.rb +0 -129
  52. data/spec/boleto_bancario/core/boleto_spec.rb +0 -218
  53. data/spec/boleto_bancario/core/bradesco_spec.rb +0 -163
  54. data/spec/boleto_bancario/core/caixa_spec.rb +0 -111
  55. data/spec/boleto_bancario/core/hsbc_spec.rb +0 -72
  56. data/spec/boleto_bancario/core/itau_spec.rb +0 -333
  57. data/spec/boleto_bancario/core/real_spec.rb +0 -104
  58. data/spec/boleto_bancario/core/santander_spec.rb +0 -137
  59. data/spec/boleto_bancario/core/sicoob_spec.rb +0 -111
  60. data/spec/boleto_bancario/core/sicredi_spec.rb +0 -149
  61. data/spec/inheritance/banco_brasil_spec.rb +0 -22
  62. data/spec/inheritance/banrisul_spec.rb +0 -22
  63. data/spec/inheritance/boleto_spec.rb +0 -15
  64. data/spec/inheritance/bradesco_spec.rb +0 -22
  65. data/spec/inheritance/caixa_spec.rb +0 -22
  66. data/spec/inheritance/hsbc_spec.rb +0 -22
  67. data/spec/inheritance/itau_spec.rb +0 -22
  68. data/spec/inheritance/real_spec.rb +0 -22
  69. data/spec/inheritance/santander_spec.rb +0 -22
  70. data/spec/inheritance/sicoob_spec.rb +0 -22
  71. data/spec/inheritance/sicredi_spec.rb +0 -22
  72. data/spec/shared_examples/boleto_bancario_shared_example.rb +0 -151
  73. data/spec/spec_helper.rb +0 -14
@@ -0,0 +1,36 @@
1
+ <div class="info-row">
2
+ <div class="info-cell">
3
+ <label>Data Vencimento</label>
4
+ <span><%= data_vencimento_formatada %></span>
5
+ </div>
6
+ <div class="info-cell">
7
+ <label>Valor Documento</label>
8
+ <span>R$ <%= valor_formatado %></span>
9
+ </div>
10
+ <div class="info-cell">
11
+ <label>Nosso Numero</label>
12
+ <span><%= nosso_numero %></span>
13
+ </div>
14
+ <div class="info-cell">
15
+ <label>N Documento</label>
16
+ <span><%= boleto.numero_documento %></span>
17
+ </div>
18
+ </div>
19
+ <div class="info-row">
20
+ <div class="info-cell">
21
+ <label>Carteira</label>
22
+ <span><%= boleto.carteira_formatada %></span>
23
+ </div>
24
+ <div class="info-cell">
25
+ <label>Especie</label>
26
+ <span><%= boleto.especie_documento %></span>
27
+ </div>
28
+ <div class="info-cell">
29
+ <label>Data Documento</label>
30
+ <span><%= data_documento_formatada %></span>
31
+ </div>
32
+ <div class="info-cell">
33
+ <label>Aceite</label>
34
+ <span><%= boleto.aceite_formatado %></span>
35
+ </div>
36
+ </div>
@@ -0,0 +1,10 @@
1
+ <div class="info-row">
2
+ <div class="info-cell flex-2">
3
+ <label>Sacado</label>
4
+ <span><%= boleto.sacado %></span>
5
+ </div>
6
+ <div class="info-cell">
7
+ <label>CPF/CNPJ</label>
8
+ <span><%= boleto.documento_sacado %></span>
9
+ </div>
10
+ </div>
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html lang="pt-BR">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Boleto Bancario</title>
7
+ <style>
8
+ <%= css_styles %>
9
+ </style>
10
+ </head>
11
+ <body>
12
+ <div class="boleto">
13
+ <%= render_partial('header') %>
14
+ <div class="linha-digitavel"><%= linha_digitavel %></div>
15
+ <%= render_partial('cedente') %>
16
+ <%= render_partial('payment') %>
17
+ <%= render_partial('sacado') %>
18
+ <%= render_partial('instructions') %>
19
+ <%= render_partial('barcode') %>
20
+ </div>
21
+ </body>
22
+ </html>
@@ -0,0 +1,18 @@
1
+ * { margin: 0; padding: 0; box-sizing: border-box; }
2
+ body { font-family: Arial, sans-serif; font-size: 12px; }
3
+ .boleto { max-width: 800px; margin: 20px auto; border: 1px solid #000; padding: 15px; }
4
+ .header { display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 10px; }
5
+ .bank-name { font-size: 18px; font-weight: bold; }
6
+ .bank-code { font-size: 16px; font-weight: bold; }
7
+ .linha-digitavel { text-align: center; font-size: 14px; font-weight: bold; margin: 15px 0; letter-spacing: 1px; }
8
+ .info-row { display: flex; border-bottom: 1px solid #ccc; }
9
+ .info-cell { flex: 1; padding: 5px; border-right: 1px solid #ccc; }
10
+ .info-cell:last-child { border-right: none; }
11
+ .info-cell label { font-size: 10px; color: #666; display: block; }
12
+ .info-cell span { font-weight: bold; }
13
+ .info-cell.flex-2 { flex: 2; }
14
+ .instructions { margin: 15px 0; padding: 10px; background: #f9f9f9; }
15
+ .instructions h4 { margin-bottom: 5px; }
16
+ .instructions ul { margin-left: 20px; }
17
+ .barcode { text-align: center; margin: 20px 0; font-family: 'Libre Barcode 128', monospace; font-size: 48px; }
18
+ .barcode-text { font-size: 10px; margin-top: 5px; }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module BoletoBancario
2
- VERSION = '0.0.2'
4
+ VERSION = '1.0.0'
3
5
  end
@@ -1,12 +1,17 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  require 'boleto_bancario/version'
3
4
  require 'active_model'
4
5
  require 'active_support/core_ext/class'
5
6
  require 'active_support/core_ext/enumerable'
6
7
  require 'active_support/core_ext/object'
7
8
  require 'active_support/core_ext/string'
9
+ require 'i18n'
10
+
11
+ # Load locale files
12
+ I18n.load_path += Dir[File.join(File.dirname(__FILE__), 'boleto_bancario', 'locales', '*.yml')]
8
13
 
9
- # Copyright (C) 2012 Tomás D'Stefano <http://successoft.com>
14
+ # Copyright (C) 2012-2026 Tomás D'Stefano <http://successoft.com>
10
15
  #
11
16
  # @author Tomás D'Stefano <tomas_stefano@successoft.com>
12
17
  #
@@ -17,12 +22,11 @@ require 'active_support/core_ext/string'
17
22
  # Essa biblioteca é baseada em outras <b>ótimas</b> bibliotecas.
18
23
  # Recomendo analisar muito bem cada solução!
19
24
  #
20
- # * Novo Gateway de Pagamentos da Locaweb: http://www.locaweb.com.br/produtos/gateway-pagamento.html
21
25
  # * Brcobranca: https://github.com/kivanio/brcobranca
22
26
  # * Boleto Php: http://boletophp.com.br
23
27
  # * Stella Caelum: http://stella.caelum.com.br
24
28
  #
25
- # === Coreuições
29
+ # === Contribuições
26
30
  #
27
31
  # Você pode contribuir de N formas. Seguem elas:
28
32
  #
@@ -63,10 +67,11 @@ module BoletoBancario
63
67
  autoload :BancoBrasil
64
68
  autoload :Banrisul
65
69
  autoload :Bradesco
70
+ autoload :C6Bank
66
71
  autoload :Caixa
67
- autoload :Hsbc
72
+ autoload :Inter
68
73
  autoload :Itau
69
- autoload :Real
74
+ autoload :Nubank
70
75
  autoload :Santander
71
76
  autoload :Sicoob
72
77
  autoload :Sicredi
@@ -77,6 +82,7 @@ module BoletoBancario
77
82
  module Calculos
78
83
  extend ActiveSupport::Autoload
79
84
 
85
+ autoload :Documento
80
86
  autoload :FatorVencimento
81
87
  autoload :FatoresDeMultiplicacao
82
88
  autoload :LinhaDigitavel
@@ -91,5 +97,16 @@ module BoletoBancario
91
97
  autoload :Digitos
92
98
  end
93
99
 
100
+ # Módulo que possui classes para renderização de boletos em diferentes formatos.
101
+ #
102
+ module Renderers
103
+ extend ActiveSupport::Autoload
104
+
105
+ autoload :Base
106
+ autoload :PdfRenderer
107
+ autoload :HtmlRenderer
108
+ autoload :PngRenderer
109
+ end
110
+
94
111
  include Core
95
112
  end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails/generators'
4
+
5
+ module BoletoBancario
6
+ module Generators
7
+ # Rails generator para copiar os templates de boleto para a aplicacao Rails.
8
+ #
9
+ # @example Uso
10
+ # rails generate boleto_bancario:views
11
+ #
12
+ # Isso copia os templates padrao para app/views/boletos/, permitindo
13
+ # customizacao completa dos templates de boleto.
14
+ #
15
+ class ViewsGenerator < Rails::Generators::Base
16
+ desc 'Copia os templates de boleto para app/views/boletos/'
17
+
18
+ source_root File.expand_path('../../boleto_bancario/templates', __dir__)
19
+
20
+ def copy_templates
21
+ directory '.', 'app/views/boletos'
22
+ end
23
+
24
+ def show_readme
25
+ say ''
26
+ say 'Templates copiados para app/views/boletos/', :green
27
+ say ''
28
+ say 'Arquivos criados:'
29
+ say ' app/views/boletos/boleto.html.erb - Template principal'
30
+ say ' app/views/boletos/boleto_styles.css - Estilos CSS'
31
+ say ' app/views/boletos/_header.html.erb - Partial do cabecalho'
32
+ say ' app/views/boletos/_cedente.html.erb - Partial do cedente'
33
+ say ' app/views/boletos/_sacado.html.erb - Partial do sacado'
34
+ say ' app/views/boletos/_payment.html.erb - Partial de pagamento'
35
+ say ' app/views/boletos/_instructions.html.erb - Partial de instrucoes'
36
+ say ' app/views/boletos/_barcode.html.erb - Partial do codigo de barras'
37
+ say ''
38
+ say 'Para usar os templates customizados, configure o renderer:'
39
+ say ''
40
+ say ' class MyHtmlRenderer < BoletoBancario::Renderers::HtmlRenderer'
41
+ say " self.template_path = Rails.root.join('app/views/boletos')"
42
+ say ' end'
43
+ say ''
44
+ end
45
+ end
46
+ end
47
+ end
metadata CHANGED
@@ -1,115 +1,129 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boleto_bancario
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas D'Stefano
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-28 00:00:00.000000000 Z
11
+ date: 2026-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '7.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '7.1'
27
27
  - !ruby/object:Gem::Dependency
28
- name: activesupport
28
+ name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.1'
33
+ version: '7.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4.1'
40
+ version: '7.1'
41
41
  - !ruby/object:Gem::Dependency
42
- name: activemodel
42
+ name: barby
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.1'
47
+ version: '0.6'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4.1'
54
+ version: '0.6'
55
55
  - !ruby/object:Gem::Dependency
56
- name: barby
56
+ name: prawn
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '2.4'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '2.4'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rspec
70
+ name: prawn-table
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.13'
76
- type: :development
75
+ version: '0.2'
76
+ type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.13'
82
+ version: '0.2'
83
83
  - !ruby/object:Gem::Dependency
84
- name: yard
84
+ name: chunky_png
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '1.4'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.4'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '13.0'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - ">="
108
+ - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '0'
110
+ version: '13.0'
97
111
  - !ruby/object:Gem::Dependency
98
- name: valid_attribute
112
+ name: rspec
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '1.3'
117
+ version: '3.13'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '1.3'
124
+ version: '3.13'
111
125
  - !ruby/object:Gem::Dependency
112
- name: pry
126
+ name: yard
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
@@ -123,33 +137,47 @@ dependencies:
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0.9'
125
139
  - !ruby/object:Gem::Dependency
126
- name: simplecov
140
+ name: valid_attribute
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '0.2'
145
+ version: '2.0'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: '0.2'
152
+ version: '2.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.14'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.14'
139
167
  - !ruby/object:Gem::Dependency
140
- name: simplecov-html
168
+ name: simplecov
141
169
  requirement: !ruby/object:Gem::Requirement
142
170
  requirements:
143
171
  - - "~>"
144
172
  - !ruby/object:Gem::Version
145
- version: '0.7'
173
+ version: '0.22'
146
174
  type: :development
147
175
  prerelease: false
148
176
  version_requirements: !ruby/object:Gem::Requirement
149
177
  requirements:
150
178
  - - "~>"
151
179
  - !ruby/object:Gem::Version
152
- version: '0.7'
180
+ version: '0.22'
153
181
  description: Emissão de Boletos Bancários em Ruby
154
182
  email:
155
183
  - tomas_stefano@successoft.com
@@ -157,20 +185,12 @@ executables: []
157
185
  extensions: []
158
186
  extra_rdoc_files: []
159
187
  files:
160
- - ".gitignore"
161
- - ".rspec"
162
- - ".travis.yml"
163
188
  - Changelog.markdown
164
- - Gemfile
165
189
  - LICENSE
166
- - Planning.markdown
167
190
  - README.markdown
168
- - Rakefile
169
- - TODO.markdown
170
- - boleto_bancario.gemspec
171
- - documentacoes_dos_boletos/Bradesco/Manual_BRADESCO.PDF
172
191
  - lib/boleto_bancario.rb
173
192
  - lib/boleto_bancario/calculos/digitos.rb
193
+ - lib/boleto_bancario/calculos/documento.rb
174
194
  - lib/boleto_bancario/calculos/fator_vencimento.rb
175
195
  - lib/boleto_bancario/calculos/fatores_de_multiplicacao.rb
176
196
  - lib/boleto_bancario/calculos/linha_digitavel.rb
@@ -186,54 +206,34 @@ files:
186
206
  - lib/boleto_bancario/core/banrisul.rb
187
207
  - lib/boleto_bancario/core/boleto.rb
188
208
  - lib/boleto_bancario/core/bradesco.rb
209
+ - lib/boleto_bancario/core/c6_bank.rb
189
210
  - lib/boleto_bancario/core/caixa.rb
190
- - lib/boleto_bancario/core/hsbc.rb
211
+ - lib/boleto_bancario/core/inter.rb
191
212
  - lib/boleto_bancario/core/itau.rb
192
- - lib/boleto_bancario/core/real.rb
213
+ - lib/boleto_bancario/core/nubank.rb
193
214
  - lib/boleto_bancario/core/santander.rb
194
215
  - lib/boleto_bancario/core/sicoob.rb
195
216
  - lib/boleto_bancario/core/sicredi.rb
217
+ - lib/boleto_bancario/locales/pt-BR.yml
218
+ - lib/boleto_bancario/renderers/base.rb
219
+ - lib/boleto_bancario/renderers/html_renderer.rb
220
+ - lib/boleto_bancario/renderers/pdf_renderer.rb
221
+ - lib/boleto_bancario/renderers/png_renderer.rb
222
+ - lib/boleto_bancario/templates/_barcode.html.erb
223
+ - lib/boleto_bancario/templates/_cedente.html.erb
224
+ - lib/boleto_bancario/templates/_header.html.erb
225
+ - lib/boleto_bancario/templates/_instructions.html.erb
226
+ - lib/boleto_bancario/templates/_payment.html.erb
227
+ - lib/boleto_bancario/templates/_sacado.html.erb
228
+ - lib/boleto_bancario/templates/boleto.html.erb
229
+ - lib/boleto_bancario/templates/boleto_styles.css
196
230
  - lib/boleto_bancario/version.rb
197
- - spec/boleto_bancario/calculos/digitos_spec.rb
198
- - spec/boleto_bancario/calculos/fator_vencimento_spec.rb
199
- - spec/boleto_bancario/calculos/fatores_de_multiplicacao_spec.rb
200
- - spec/boleto_bancario/calculos/linha_digitavel_spec.rb
201
- - spec/boleto_bancario/calculos/modulo10_spec.rb
202
- - spec/boleto_bancario/calculos/modulo11_fator_de2a7_spec.rb
203
- - spec/boleto_bancario/calculos/modulo11_fator_de2a9_resto_zero_spec.rb
204
- - spec/boleto_bancario/calculos/modulo11_fator_de2a9_spec.rb
205
- - spec/boleto_bancario/calculos/modulo11_fator_de9a2_resto_x_spec.rb
206
- - spec/boleto_bancario/calculos/modulo11_fator_de9a2_spec.rb
207
- - spec/boleto_bancario/calculos/modulo11_spec.rb
208
- - spec/boleto_bancario/calculos/modulo_numero_de_controle_spec.rb
209
- - spec/boleto_bancario/core/banco_brasil_spec.rb
210
- - spec/boleto_bancario/core/banrisul_spec.rb
211
- - spec/boleto_bancario/core/boleto_spec.rb
212
- - spec/boleto_bancario/core/bradesco_spec.rb
213
- - spec/boleto_bancario/core/caixa_spec.rb
214
- - spec/boleto_bancario/core/hsbc_spec.rb
215
- - spec/boleto_bancario/core/itau_spec.rb
216
- - spec/boleto_bancario/core/real_spec.rb
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
231
- - spec/shared_examples/boleto_bancario_shared_example.rb
232
- - spec/spec_helper.rb
231
+ - lib/generators/boleto_bancario/views_generator.rb
233
232
  homepage: https://github.com/tomas-stefano/boleto_bancario
234
- licenses: []
233
+ licenses:
234
+ - MIT
235
235
  metadata: {}
236
- post_install_message:
236
+ post_install_message:
237
237
  rdoc_options: []
238
238
  require_paths:
239
239
  - lib
@@ -241,53 +241,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
241
241
  requirements:
242
242
  - - ">="
243
243
  - !ruby/object:Gem::Version
244
- version: '0'
244
+ version: 3.1.0
245
245
  required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  requirements:
247
247
  - - ">="
248
248
  - !ruby/object:Gem::Version
249
249
  version: '0'
250
250
  requirements: []
251
- rubyforge_project:
252
- rubygems_version: 2.4.5
253
- signing_key:
251
+ rubygems_version: 3.3.7
252
+ signing_key:
254
253
  specification_version: 4
255
254
  summary: Emissão de Boletos Bancários em Ruby
256
- test_files:
257
- - spec/boleto_bancario/calculos/digitos_spec.rb
258
- - spec/boleto_bancario/calculos/fator_vencimento_spec.rb
259
- - spec/boleto_bancario/calculos/fatores_de_multiplicacao_spec.rb
260
- - spec/boleto_bancario/calculos/linha_digitavel_spec.rb
261
- - spec/boleto_bancario/calculos/modulo10_spec.rb
262
- - spec/boleto_bancario/calculos/modulo11_fator_de2a7_spec.rb
263
- - spec/boleto_bancario/calculos/modulo11_fator_de2a9_resto_zero_spec.rb
264
- - spec/boleto_bancario/calculos/modulo11_fator_de2a9_spec.rb
265
- - spec/boleto_bancario/calculos/modulo11_fator_de9a2_resto_x_spec.rb
266
- - spec/boleto_bancario/calculos/modulo11_fator_de9a2_spec.rb
267
- - spec/boleto_bancario/calculos/modulo11_spec.rb
268
- - spec/boleto_bancario/calculos/modulo_numero_de_controle_spec.rb
269
- - spec/boleto_bancario/core/banco_brasil_spec.rb
270
- - spec/boleto_bancario/core/banrisul_spec.rb
271
- - spec/boleto_bancario/core/boleto_spec.rb
272
- - spec/boleto_bancario/core/bradesco_spec.rb
273
- - spec/boleto_bancario/core/caixa_spec.rb
274
- - spec/boleto_bancario/core/hsbc_spec.rb
275
- - spec/boleto_bancario/core/itau_spec.rb
276
- - spec/boleto_bancario/core/real_spec.rb
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
291
- - spec/shared_examples/boleto_bancario_shared_example.rb
292
- - spec/spec_helper.rb
293
- has_rdoc:
255
+ test_files: []
data/.gitignore DELETED
@@ -1,19 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- InstalledFiles
7
- _yardoc
8
- coverage
9
- doc/
10
- lib/bundler/man
11
- vendor/
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- .DS_Store
19
- Gemfile.lock
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color -f d
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - jruby
5
- - 2.0
6
- before_install:
7
- - export DISPLAY=:99.0
8
- - sh -e /etc/init.d/xvfb start
9
- script:
10
- - bundle exec rspec
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gemspec