cnab240 0.0.16 → 0.0.17
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.
@@ -46,7 +46,7 @@ module Cnab240
|
|
46
46
|
arquivos.last.lotes.last.trailer.read(line)
|
47
47
|
|
48
48
|
when TRAILER_ARQUIVO
|
49
|
-
|
49
|
+
arquivos.last.trailer = Trailer.read(line)
|
50
50
|
|
51
51
|
else
|
52
52
|
raise "Invalid tipo de registro: #{line[RANGE_TIPO_REGISTRO]} at line #{line_number} \n\t Line: [#{line}]"
|
@@ -7,7 +7,7 @@ module Cnab240::V80
|
|
7
7
|
lstring :favorecido_agencia, :length => 5, :pad_byte => '0'
|
8
8
|
string :brancos_1, :length => 1, :pad_byte => ' '
|
9
9
|
lstring :favorecido_conta, :length => 12, :pad_byte => '0'
|
10
|
-
string :
|
10
|
+
string :agencia_conta_complemento, :length => 1, :pad_byte => ' '
|
11
11
|
lstring :favorecido_agencia_conta_dv, :length => 1, :pad_byte => '0'
|
12
12
|
|
13
13
|
end
|
data/lib/cnab240/version.rb
CHANGED
@@ -42,9 +42,9 @@ describe Arquivo do
|
|
42
42
|
(1..10).each do |n|
|
43
43
|
arquivo << Cnab240::Lote.new(:operacao => :pagamento, :tipo => :remessa)
|
44
44
|
end
|
45
|
-
arquivo.save_to_file("spec/tmp/arquivo.test")
|
45
|
+
arquivo.save_to_file("./spec/tmp/arquivo.test")
|
46
46
|
|
47
|
-
arquivo_read = Cnab240::Arquivo::Arquivo.load_from_file("spec/tmp/arquivo.test")[0]
|
47
|
+
arquivo_read = Cnab240::Arquivo::Arquivo.load_from_file("./spec/tmp/arquivo.test")[0]
|
48
48
|
|
49
49
|
arquivo_read.lotes.length.should be 10
|
50
50
|
|
@@ -60,9 +60,9 @@ describe Arquivo do
|
|
60
60
|
(1..10).each do |n|
|
61
61
|
arquivo << Cnab240::Lote.new(:operacao => :pagamento, :tipo => :remessa)
|
62
62
|
end
|
63
|
-
arquivo.save_to_file("spec/tmp/arquivo.test")
|
63
|
+
arquivo.save_to_file("./spec/tmp/arquivo.test")
|
64
64
|
|
65
|
-
arquivo_read = Cnab240::Arquivo::Arquivo.load_from_file("spec/tmp/arquivo.test")[0]
|
65
|
+
arquivo_read = Cnab240::Arquivo::Arquivo.load_from_file("./spec/tmp/arquivo.test")[0]
|
66
66
|
|
67
67
|
header_r = arquivo_read.header
|
68
68
|
header = arquivo.header
|
data/spec/hom/hom_spec.rb
CHANGED
@@ -39,11 +39,11 @@ describe "HomSpec" do
|
|
39
39
|
:favorecido_nome => 'JOSE EDUARDO MOURAO'
|
40
40
|
}
|
41
41
|
|
42
|
-
pagamento.save_to_file("spec/tmp/itau46.rem")
|
42
|
+
pagamento.save_to_file("./spec/tmp/itau46.rem")
|
43
43
|
end
|
44
44
|
|
45
45
|
it "deve carregar arquivo de retorno" do
|
46
|
-
arquivo_read = Cnab240::Arquivo::Arquivo.load_from_file("spec/hom/retorno/SB22112AIT.
|
46
|
+
arquivo_read = Cnab240::Arquivo::Arquivo.load_from_file("./spec/hom/retorno/SB22112AIT.RET")[0]
|
47
47
|
|
48
48
|
arquivo_read.lotes.length.should be 1
|
49
49
|
|
@@ -52,7 +52,7 @@ describe "HomSpec" do
|
|
52
52
|
end
|
53
53
|
|
54
54
|
|
55
|
-
arquivo_read = Cnab240::Arquivo::Arquivo.load_from_file("spec/hom/retorno/SB23112AIT.
|
55
|
+
arquivo_read = Cnab240::Arquivo::Arquivo.load_from_file("./spec/hom/retorno/SB23112AIT.RET")[0]
|
56
56
|
|
57
57
|
arquivo_read.lotes.length.should be 1
|
58
58
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cnab240
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -176,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
176
|
version: '0'
|
177
177
|
segments:
|
178
178
|
- 0
|
179
|
-
hash:
|
179
|
+
hash: -3521898211230921617
|
180
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
181
|
none: false
|
182
182
|
requirements:
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
segments:
|
187
187
|
- 0
|
188
|
-
hash:
|
188
|
+
hash: -3521898211230921617
|
189
189
|
requirements: []
|
190
190
|
rubyforge_project: cnab240
|
191
191
|
rubygems_version: 1.8.24
|