cnab240 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -2
  3. data/cnab240.gemspec +10 -12
  4. data/lib/cnab240.rb +108 -91
  5. data/lib/cnab240/arquivo/arquivo.rb +6 -9
  6. data/lib/cnab240/arquivo/builder.rb +111 -90
  7. data/lib/cnab240/arquivo/estrutura.rb +161 -99
  8. data/lib/cnab240/arquivo/v40/header.rb +27 -29
  9. data/lib/cnab240/arquivo/v40/trailer.rb +8 -10
  10. data/lib/cnab240/arquivo/v60/header.rb +38 -0
  11. data/lib/cnab240/arquivo/v60/trailer.rb +17 -0
  12. data/lib/cnab240/arquivo/v80/header.rb +23 -26
  13. data/lib/cnab240/arquivo/v80/trailer.rb +8 -9
  14. data/lib/cnab240/arquivo/v81/header.rb +37 -0
  15. data/lib/cnab240/arquivo/v81/trailer.rb +17 -0
  16. data/lib/cnab240/arquivo/v83/header.rb +25 -26
  17. data/lib/cnab240/arquivo/v83/trailer.rb +9 -9
  18. data/lib/cnab240/arquivo/v86/header.rb +25 -26
  19. data/lib/cnab240/arquivo/v86/trailer.rb +9 -10
  20. data/lib/cnab240/arquivo/v87/header.rb +25 -26
  21. data/lib/cnab240/arquivo/v87/trailer.rb +9 -10
  22. data/lib/cnab240/ext/attribute_accessors.rb +4 -4
  23. data/lib/cnab240/ext/bindata.rb +4 -4
  24. data/lib/cnab240/ext/default_mixin.rb +2 -4
  25. data/lib/cnab240/ext/filler.rb +1 -3
  26. data/lib/cnab240/ext/lstring.rb +9 -10
  27. data/lib/cnab240/ext/segmento_mixin.rb +1 -3
  28. data/lib/cnab240/helper/boleto_bancoob.rb +60 -0
  29. data/lib/cnab240/helper/helper.rb +1 -1
  30. data/lib/cnab240/helper/pagamento_bb.rb +7 -9
  31. data/lib/cnab240/helper/pagamento_bradesco.rb +6 -8
  32. data/lib/cnab240/helper/pagamento_itau.rb +6 -8
  33. data/lib/cnab240/helper/transferencia_citibank.rb +56 -0
  34. data/lib/cnab240/helper/{pagamento_sicoob.rb → transferencia_sicoob.rb} +8 -15
  35. data/lib/cnab240/{arquivo/lote.rb → lote.rb} +29 -14
  36. data/lib/cnab240/lote/v40/boletos/header.rb +46 -0
  37. data/lib/cnab240/lote/v40/boletos/trailer.rb +29 -0
  38. data/lib/cnab240/pagamentos/v40/header.rb +30 -32
  39. data/lib/cnab240/pagamentos/v40/trailer.rb +10 -11
  40. data/lib/cnab240/pagamentos/v60/header.rb +43 -0
  41. data/lib/cnab240/pagamentos/v60/trailer.rb +17 -0
  42. data/lib/cnab240/pagamentos/v80/header.rb +35 -37
  43. data/lib/cnab240/pagamentos/v80/trailer.rb +10 -11
  44. data/lib/cnab240/pagamentos/v83/header.rb +33 -35
  45. data/lib/cnab240/pagamentos/v83/trailer.rb +11 -12
  46. data/lib/cnab240/pagamentos/v86/header.rb +34 -36
  47. data/lib/cnab240/pagamentos/v86/titulos/header.rb +28 -30
  48. data/lib/cnab240/pagamentos/v86/titulos/trailer.rb +11 -12
  49. data/lib/cnab240/pagamentos/v86/trailer.rb +11 -12
  50. data/lib/cnab240/pagamentos/v86/tributos/header.rb +35 -37
  51. data/lib/cnab240/pagamentos/v86/tributos/trailer.rb +9 -10
  52. data/lib/cnab240/pagamentos/v87/header.rb +34 -36
  53. data/lib/cnab240/pagamentos/v87/titulos/header.rb +28 -30
  54. data/lib/cnab240/pagamentos/v87/titulos/trailer.rb +11 -12
  55. data/lib/cnab240/pagamentos/v87/trailer.rb +11 -12
  56. data/lib/cnab240/pagamentos/v87/tributos/header.rb +35 -37
  57. data/lib/cnab240/pagamentos/v87/tributos/trailer.rb +9 -10
  58. data/lib/cnab240/segmentos/v40/segmento_a.rb +40 -41
  59. data/lib/cnab240/segmentos/v60/segmento_a.rb +43 -0
  60. data/lib/cnab240/segmentos/v60/segmento_b.rb +38 -0
  61. data/lib/cnab240/segmentos/v60/segmento_j.rb +32 -0
  62. data/lib/cnab240/segmentos/v80/agencia_itau.rb +8 -9
  63. data/lib/cnab240/segmentos/v80/agencia_outros.rb +6 -7
  64. data/lib/cnab240/segmentos/v80/segmento_a.rb +30 -32
  65. data/lib/cnab240/segmentos/v81/segmento_p.rb +79 -0
  66. data/lib/cnab240/segmentos/v81/segmento_q.rb +36 -0
  67. data/lib/cnab240/segmentos/v81/segmento_r.rb +49 -0
  68. data/lib/cnab240/segmentos/v81/segmento_s.rb +37 -0
  69. data/lib/cnab240/segmentos/v83/segmento_a.rb +35 -36
  70. data/lib/cnab240/segmentos/v83/segmento_b.rb +33 -34
  71. data/lib/cnab240/segmentos/v83/segmento_j.rb +22 -23
  72. data/lib/cnab240/segmentos/v83/segmento_z.rb +10 -11
  73. data/lib/cnab240/segmentos/v86/segmento_a.rb +37 -38
  74. data/lib/cnab240/segmentos/v86/segmento_b.rb +33 -34
  75. data/lib/cnab240/segmentos/v86/segmento_c.rb +19 -20
  76. data/lib/cnab240/segmentos/v86/segmento_j.rb +22 -23
  77. data/lib/cnab240/segmentos/v86/segmento_j52.rb +19 -20
  78. data/lib/cnab240/segmentos/v86/segmento_n.rb +17 -18
  79. data/lib/cnab240/segmentos/v86/segmento_n1.rb +10 -11
  80. data/lib/cnab240/segmentos/v86/segmento_n2.rb +12 -13
  81. data/lib/cnab240/segmentos/v86/segmento_n3.rb +12 -13
  82. data/lib/cnab240/segmentos/v86/segmento_n4.rb +14 -15
  83. data/lib/cnab240/segmentos/v86/segmento_n5.rb +12 -13
  84. data/lib/cnab240/segmentos/v86/segmento_n6.rb +12 -13
  85. data/lib/cnab240/segmentos/v86/segmento_n7.rb +13 -14
  86. data/lib/cnab240/segmentos/v86/segmento_n8.rb +12 -14
  87. data/lib/cnab240/segmentos/v86/segmento_o.rb +17 -18
  88. data/lib/cnab240/segmentos/v86/segmento_w.rb +12 -13
  89. data/lib/cnab240/segmentos/v86/segmento_w1.rb +9 -10
  90. data/lib/cnab240/segmentos/v86/segmento_z.rb +10 -11
  91. data/lib/cnab240/segmentos/v87/segmento_a.rb +37 -38
  92. data/lib/cnab240/segmentos/v87/segmento_b.rb +33 -34
  93. data/lib/cnab240/segmentos/v87/segmento_c.rb +19 -20
  94. data/lib/cnab240/segmentos/v87/segmento_j.rb +22 -23
  95. data/lib/cnab240/segmentos/v87/segmento_j52.rb +19 -20
  96. data/lib/cnab240/segmentos/v87/segmento_n.rb +17 -18
  97. data/lib/cnab240/segmentos/v87/segmento_n1.rb +10 -11
  98. data/lib/cnab240/segmentos/v87/segmento_n2.rb +12 -13
  99. data/lib/cnab240/segmentos/v87/segmento_n3.rb +12 -13
  100. data/lib/cnab240/segmentos/v87/segmento_n4.rb +14 -15
  101. data/lib/cnab240/segmentos/v87/segmento_n5.rb +12 -13
  102. data/lib/cnab240/segmentos/v87/segmento_n6.rb +12 -13
  103. data/lib/cnab240/segmentos/v87/segmento_n7.rb +13 -14
  104. data/lib/cnab240/segmentos/v87/segmento_n8.rb +12 -14
  105. data/lib/cnab240/segmentos/v87/segmento_o.rb +17 -18
  106. data/lib/cnab240/segmentos/v87/segmento_w.rb +12 -13
  107. data/lib/cnab240/segmentos/v87/segmento_w1.rb +9 -10
  108. data/lib/cnab240/segmentos/v87/segmento_z.rb +10 -11
  109. data/lib/cnab240/version.rb +1 -1
  110. metadata +30 -40
@@ -1,21 +1,20 @@
1
1
  module Cnab240::V87
2
2
  class SegmentoN6 < BinData::Record
3
-
4
3
  include Cnab240::DefaultMixin
5
4
  include Cnab240::SegmentoMixin
6
5
 
7
- string :receita, :length => 6, :pad_byte => ' '
8
- lstring :tipo_identificacao_contribuinte, :length => 2, :pad_byte => '0'
9
- lstring :identificacao_contribuinte, :length => 14, :pad_byte => '0'
10
- string :identificacao_tributo, :length => 2, :pad_byte => ' '
6
+ string :receita, length: 6, pad_byte: ' '
7
+ lstring :tipo_identificacao_contribuinte, length: 2, pad_byte: '0'
8
+ lstring :identificacao_contribuinte, length: 14, pad_byte: '0'
9
+ string :identificacao_tributo, length: 2, pad_byte: ' '
11
10
 
12
- lstring :exercicio, :length => 4, :pad_byte => '0'
13
- lstring :renavam, :length => 9, :pad_byte => '0'
14
- string :uf, :length => 2, :pad_byte => ' '
15
- lstring :municipio, :length => 5, :pad_byte => '0'
16
- string :placa, :length => 7, :pad_byte => ' '
17
- string :opcao_pagamento, :length => 1, :pad_byte => ' '
11
+ lstring :exercicio, length: 4, pad_byte: '0'
12
+ lstring :renavam, length: 9, pad_byte: '0'
13
+ string :uf, length: 2, pad_byte: ' '
14
+ lstring :municipio, length: 5, pad_byte: '0'
15
+ string :placa, length: 7, pad_byte: ' '
16
+ string :opcao_pagamento, length: 1, pad_byte: ' '
18
17
 
19
- string :cnab, :length => 68, :pad_byte => ' '
18
+ string :cnab, length: 68, pad_byte: ' '
20
19
  end
21
- end
20
+ end
@@ -1,21 +1,20 @@
1
1
  module Cnab240::V87
2
2
  class SegmentoN7 < BinData::Record
3
-
4
3
  include Cnab240::DefaultMixin
5
4
  include Cnab240::SegmentoMixin
6
5
 
7
- string :receita, :length => 6, :pad_byte => ' '
8
- lstring :tipo_identificacao_contribuinte, :length => 2, :pad_byte => '0'
9
- lstring :identificacao_contribuinte, :length => 14, :pad_byte => '0'
10
- string :identificacao_tributo, :length => 2, :pad_byte => ' '
6
+ string :receita, length: 6, pad_byte: ' '
7
+ lstring :tipo_identificacao_contribuinte, length: 2, pad_byte: '0'
8
+ lstring :identificacao_contribuinte, length: 14, pad_byte: '0'
9
+ string :identificacao_tributo, length: 2, pad_byte: ' '
11
10
 
12
- lstring :exercicio, :length => 4, :pad_byte => '0'
13
- lstring :renavam, :length => 9, :pad_byte => '0'
14
- string :uf, :length => 2, :pad_byte => ' '
15
- lstring :municipio, :length => 5, :pad_byte => '0'
16
- string :placa, :length => 7, :pad_byte => ' '
17
- string :opcao_pagamento, :length => 1, :pad_byte => ' '
18
- string :opcao_retirada, :length => 1, :pad_byte => ' '
19
- string :cnab, :length => 67, :pad_byte => ' '
11
+ lstring :exercicio, length: 4, pad_byte: '0'
12
+ lstring :renavam, length: 9, pad_byte: '0'
13
+ string :uf, length: 2, pad_byte: ' '
14
+ lstring :municipio, length: 5, pad_byte: '0'
15
+ string :placa, length: 7, pad_byte: ' '
16
+ string :opcao_pagamento, length: 1, pad_byte: ' '
17
+ string :opcao_retirada, length: 1, pad_byte: ' '
18
+ string :cnab, length: 67, pad_byte: ' '
20
19
  end
21
- end
20
+ end
@@ -1,22 +1,20 @@
1
1
  module Cnab240::V87
2
2
  class SegmentoN8 < BinData::Record
3
-
4
3
  include Cnab240::DefaultMixin
5
4
  include Cnab240::SegmentoMixin
6
5
 
7
- string :receita, :length => 6, :pad_byte => ' '
8
- lstring :tipo_identificacao_contribuinte, :length => 2, :pad_byte => '0'
9
- lstring :identificacao_contribuinte, :length => 14, :pad_byte => '0'
10
-
6
+ string :receita, length: 6, pad_byte: ' '
7
+ lstring :tipo_identificacao_contribuinte, length: 2, pad_byte: '0'
8
+ lstring :identificacao_contribuinte, length: 14, pad_byte: '0'
11
9
 
12
- string :ie_munic_declar, :length => 8, :pad_byte => ' '
10
+ string :ie_munic_declar, length: 8, pad_byte: ' '
13
11
 
14
- lstring :origem, :length => 16, :pad_byte => '0'
15
- lstring :valor_principal, :length => 15, :pad_byte => '0'
16
- string :atualizacao_monetaria, :length => 15, :pad_byte => ' '
17
- lstring :valor_mora, :length => 15, :pad_byte => '0'
18
- string :valor_multa, :length => 15, :pad_byte => ' '
19
- string :data_vencimento, :length => 8, :pad_byte => ' '
20
- string :periodo_parcela, :length => 6, :pad_byte => ' '
12
+ lstring :origem, length: 16, pad_byte: '0'
13
+ lstring :valor_principal, length: 15, pad_byte: '0'
14
+ string :atualizacao_monetaria, length: 15, pad_byte: ' '
15
+ lstring :valor_mora, length: 15, pad_byte: '0'
16
+ string :valor_multa, length: 15, pad_byte: ' '
17
+ string :data_vencimento, length: 8, pad_byte: ' '
18
+ string :periodo_parcela, length: 6, pad_byte: ' '
21
19
  end
22
- end
20
+ end
@@ -1,27 +1,26 @@
1
1
  module Cnab240::V87
2
2
  class SegmentoO < BinData::Record
3
-
4
3
  include Cnab240::DefaultMixin
5
4
  include Cnab240::SegmentoMixin
6
5
 
7
- lstring :controle_banco, :length => 3, :pad_byte => '0'
8
- lstring :controle_lote, :length => 4, :pad_byte => '0'
9
- string :controle_registro, :length => 1, :initial_value => '3', :pad_byte => '0'
6
+ lstring :controle_banco, length: 3, pad_byte: '0'
7
+ lstring :controle_lote, length: 4, pad_byte: '0'
8
+ string :controle_registro, length: 1, initial_value: '3', pad_byte: '0'
10
9
 
11
- lstring :servico_numero_registro, :length => 5, :pad_byte => '0'
12
- lstring :servico_codigo_segmento, :length => 1, :initial_value => 'O', :pad_byte => ' '
13
- lstring :servico_tipo_movimento, :length => 1, :pad_byte => '0'
14
- lstring :servico_codigo_movimento, :length => 2, :pad_byte => '0'
10
+ lstring :servico_numero_registro, length: 5, pad_byte: '0'
11
+ lstring :servico_codigo_segmento, length: 1, initial_value: 'O', pad_byte: ' '
12
+ lstring :servico_tipo_movimento, length: 1, pad_byte: '0'
13
+ lstring :servico_codigo_movimento, length: 2, pad_byte: '0'
15
14
 
16
- string :codigo_barras, :length => 44, :pad_byte => ' '
17
- string :nome_concessionaria, :length => 30, :pad_byte => ' '
18
- lstring :data_vencimento, :length => 8, :pad_byte => '0'
19
- lstring :data_pagamento, :length => 8, :pad_byte => '0'
20
- lstring :valor_pagamento, :length => 15, :pad_byte => '0'
21
- string :seu_numero, :length => 20, :pad_byte => ' '
22
- string :nosso_numero, :length => 20, :pad_byte => ' '
15
+ string :codigo_barras, length: 44, pad_byte: ' '
16
+ string :nome_concessionaria, length: 30, pad_byte: ' '
17
+ lstring :data_vencimento, length: 8, pad_byte: '0'
18
+ lstring :data_pagamento, length: 8, pad_byte: '0'
19
+ lstring :valor_pagamento, length: 15, pad_byte: '0'
20
+ string :seu_numero, length: 20, pad_byte: ' '
21
+ string :nosso_numero, length: 20, pad_byte: ' '
23
22
 
24
- string :cnab_g004_1, :length => 68, :pad_byte => ' '
25
- string :ocorrencias, :length => 10, :pad_byte => ' '
23
+ string :cnab_g004_1, length: 68, pad_byte: ' '
24
+ string :ocorrencias, length: 10, pad_byte: ' '
26
25
  end
27
- end
26
+ end
@@ -1,24 +1,23 @@
1
1
  module Cnab240::V87
2
2
  class SegmentoW < BinData::Record
3
-
4
3
  include Cnab240::DefaultMixin
5
4
  include Cnab240::SegmentoMixin
6
5
 
7
- lstring :controle_banco, :length => 3, :pad_byte => '0'
8
- lstring :controle_lote, :length => 4, :pad_byte => '0'
9
- string :controle_registro, :length => 1, :initial_value => '3', :pad_byte => '0'
6
+ lstring :controle_banco, length: 3, pad_byte: '0'
7
+ lstring :controle_lote, length: 4, pad_byte: '0'
8
+ string :controle_registro, length: 1, initial_value: '3', pad_byte: '0'
10
9
 
11
- lstring :servico_numero_registro, :length => 5, :pad_byte => '0'
12
- string :servico_codigo_segmento, :length => 1, :initial_value => 'W', :pad_byte => ' '
13
- lstring :complemento, :length => 1, :pad_byte => '0'
10
+ lstring :servico_numero_registro, length: 5, pad_byte: '0'
11
+ string :servico_codigo_segmento, length: 1, initial_value: 'W', pad_byte: ' '
12
+ lstring :complemento, length: 1, pad_byte: '0'
14
13
 
15
- string :uso_informacoes_1_e_2, :length => 1, :pad_byte => ' '
16
- string :informacao_1, :length => 80, :pad_byte => ' '
17
- string :informacao_2, :length => 80, :pad_byte => ' '
14
+ string :uso_informacoes_1_e_2, length: 1, pad_byte: ' '
15
+ string :informacao_1, length: 80, pad_byte: ' '
16
+ string :informacao_2, length: 80, pad_byte: ' '
18
17
 
19
18
  segmento_w1 :w1
20
19
 
21
- string :reservado, :length => 2, :pad_byte => ' '
22
- string :ocorrencias, :length => 10, :pad_byte => ' '
20
+ string :reservado, length: 2, pad_byte: ' '
21
+ string :ocorrencias, length: 10, pad_byte: ' '
23
22
  end
24
- end
23
+ end
@@ -1,16 +1,15 @@
1
1
  module Cnab240::V87
2
2
  class SegmentoW1 < BinData::Record
3
-
4
3
  include Cnab240::DefaultMixin
5
4
  include Cnab240::SegmentoMixin
6
5
 
7
- string :identificador_tributo, :length => 2, :pad_byte => ' '
8
- string :receita, :length => 6, :pad_byte => ' '
9
- string :tipo_identificacao_contribuinte, :length => 2, :pad_byte => ' '
10
- string :identificacao_contribuinte, :length => 14, :pad_byte => ' '
11
- string :identificador_fgts, :length => 16, :pad_byte => ' '
12
- string :lacre_conectividade, :length => 9, :pad_byte => ' '
13
- string :digito_lacre_conectividade, :length => 2, :pad_byte => ' '
14
- string :cnab_g004_1, :length => 1, :pad_byte => ' '
6
+ string :identificador_tributo, length: 2, pad_byte: ' '
7
+ string :receita, length: 6, pad_byte: ' '
8
+ string :tipo_identificacao_contribuinte, length: 2, pad_byte: ' '
9
+ string :identificacao_contribuinte, length: 14, pad_byte: ' '
10
+ string :identificador_fgts, length: 16, pad_byte: ' '
11
+ string :lacre_conectividade, length: 9, pad_byte: ' '
12
+ string :digito_lacre_conectividade, length: 2, pad_byte: ' '
13
+ string :cnab_g004_1, length: 1, pad_byte: ' '
15
14
  end
16
- end
15
+ end
@@ -1,19 +1,18 @@
1
1
  module Cnab240::V87
2
2
  class SegmentoZ < BinData::Record
3
-
4
3
  include Cnab240::DefaultMixin
5
4
  include Cnab240::SegmentoMixin
6
5
 
7
- lstring :controle_banco, :length => 3, :pad_byte => '0'
8
- lstring :controle_lote, :length => 4, :pad_byte => '0'
9
- string :controle_registro, :length => 1, :initial_value => '3', :pad_byte => '0'
6
+ lstring :controle_banco, length: 3, pad_byte: '0'
7
+ lstring :controle_lote, length: 4, pad_byte: '0'
8
+ string :controle_registro, length: 1, initial_value: '3', pad_byte: '0'
10
9
 
11
- lstring :servico_numero_registro, :length => 5, :pad_byte => '0'
12
- string :servico_codigo_segmento, :length => 1, :initial_value => 'Z', :pad_byte => ' '
10
+ lstring :servico_numero_registro, length: 5, pad_byte: '0'
11
+ string :servico_codigo_segmento, length: 1, initial_value: 'Z', pad_byte: ' '
13
12
 
14
- string :autenticacao, :length => 64, :pad_byte => ' '
15
- string :controle_bancario, :length => 25, :pad_byte => ' '
16
- string :cnab_g004_1, :length => 127, :pad_byte => ' '
17
- string :ocorrencias, :length => 10, :pad_byte => ' '
13
+ string :autenticacao, length: 64, pad_byte: ' '
14
+ string :controle_bancario, length: 25, pad_byte: ' '
15
+ string :cnab_g004_1, length: 127, pad_byte: ' '
16
+ string :ocorrencias, length: 10, pad_byte: ' '
18
17
  end
19
- end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module Cnab240
2
- VERSION = "0.1.0"
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,60 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cnab240
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Eduardo Mourao
7
+ - Eduardo Mourao (RIP)
8
+ - Kivanio Barbosa
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-10-03 00:00:00.000000000 Z
12
+ date: 2016-02-24 00:00:00.000000000 Z
12
13
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rspec
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: debugger
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
14
  - !ruby/object:Gem::Dependency
42
15
  name: bindata
43
16
  requirement: !ruby/object:Gem::Requirement
44
17
  requirements:
45
- - - ">="
18
+ - - "~>"
46
19
  - !ruby/object:Gem::Version
47
- version: '0'
20
+ version: 2.2.0
48
21
  type: :runtime
49
22
  prerelease: false
50
23
  version_requirements: !ruby/object:Gem::Requirement
51
24
  requirements:
52
- - - ">="
25
+ - - "~>"
53
26
  - !ruby/object:Gem::Version
54
- version: '0'
27
+ version: 2.2.0
55
28
  description: Formato CNAB 240.
56
29
  email:
57
- - eduardo.a20@gmail.com
30
+ - kivanio@gmail.com
58
31
  executables: []
59
32
  extensions: []
60
33
  extra_rdoc_files: []
@@ -65,11 +38,14 @@ files:
65
38
  - lib/cnab240/arquivo/arquivo.rb
66
39
  - lib/cnab240/arquivo/builder.rb
67
40
  - lib/cnab240/arquivo/estrutura.rb
68
- - lib/cnab240/arquivo/lote.rb
69
41
  - lib/cnab240/arquivo/v40/header.rb
70
42
  - lib/cnab240/arquivo/v40/trailer.rb
43
+ - lib/cnab240/arquivo/v60/header.rb
44
+ - lib/cnab240/arquivo/v60/trailer.rb
71
45
  - lib/cnab240/arquivo/v80/header.rb
72
46
  - lib/cnab240/arquivo/v80/trailer.rb
47
+ - lib/cnab240/arquivo/v81/header.rb
48
+ - lib/cnab240/arquivo/v81/trailer.rb
73
49
  - lib/cnab240/arquivo/v83/header.rb
74
50
  - lib/cnab240/arquivo/v83/trailer.rb
75
51
  - lib/cnab240/arquivo/v86/header.rb
@@ -82,13 +58,20 @@ files:
82
58
  - lib/cnab240/ext/filler.rb
83
59
  - lib/cnab240/ext/lstring.rb
84
60
  - lib/cnab240/ext/segmento_mixin.rb
61
+ - lib/cnab240/helper/boleto_bancoob.rb
85
62
  - lib/cnab240/helper/helper.rb
86
63
  - lib/cnab240/helper/pagamento_bb.rb
87
64
  - lib/cnab240/helper/pagamento_bradesco.rb
88
65
  - lib/cnab240/helper/pagamento_itau.rb
89
- - lib/cnab240/helper/pagamento_sicoob.rb
66
+ - lib/cnab240/helper/transferencia_citibank.rb
67
+ - lib/cnab240/helper/transferencia_sicoob.rb
68
+ - lib/cnab240/lote.rb
69
+ - lib/cnab240/lote/v40/boletos/header.rb
70
+ - lib/cnab240/lote/v40/boletos/trailer.rb
90
71
  - lib/cnab240/pagamentos/v40/header.rb
91
72
  - lib/cnab240/pagamentos/v40/trailer.rb
73
+ - lib/cnab240/pagamentos/v60/header.rb
74
+ - lib/cnab240/pagamentos/v60/trailer.rb
92
75
  - lib/cnab240/pagamentos/v80/header.rb
93
76
  - lib/cnab240/pagamentos/v80/trailer.rb
94
77
  - lib/cnab240/pagamentos/v83/header.rb
@@ -106,9 +89,16 @@ files:
106
89
  - lib/cnab240/pagamentos/v87/tributos/header.rb
107
90
  - lib/cnab240/pagamentos/v87/tributos/trailer.rb
108
91
  - lib/cnab240/segmentos/v40/segmento_a.rb
92
+ - lib/cnab240/segmentos/v60/segmento_a.rb
93
+ - lib/cnab240/segmentos/v60/segmento_b.rb
94
+ - lib/cnab240/segmentos/v60/segmento_j.rb
109
95
  - lib/cnab240/segmentos/v80/agencia_itau.rb
110
96
  - lib/cnab240/segmentos/v80/agencia_outros.rb
111
97
  - lib/cnab240/segmentos/v80/segmento_a.rb
98
+ - lib/cnab240/segmentos/v81/segmento_p.rb
99
+ - lib/cnab240/segmentos/v81/segmento_q.rb
100
+ - lib/cnab240/segmentos/v81/segmento_r.rb
101
+ - lib/cnab240/segmentos/v81/segmento_s.rb
112
102
  - lib/cnab240/segmentos/v83/segmento_a.rb
113
103
  - lib/cnab240/segmentos/v83/segmento_b.rb
114
104
  - lib/cnab240/segmentos/v83/segmento_j.rb
@@ -150,7 +140,7 @@ files:
150
140
  - lib/cnab240/segmentos/v87/segmento_w1.rb
151
141
  - lib/cnab240/segmentos/v87/segmento_z.rb
152
142
  - lib/cnab240/version.rb
153
- homepage: ''
143
+ homepage: https://github.com/eduardordm/cnab240
154
144
  licenses: []
155
145
  metadata: {}
156
146
  post_install_message:
@@ -169,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
159
  version: '0'
170
160
  requirements: []
171
161
  rubyforge_project: cnab240
172
- rubygems_version: 2.2.2
162
+ rubygems_version: 2.4.5.1
173
163
  signing_key:
174
164
  specification_version: 4
175
165
  summary: Formato CNAB 240.