formatos-febraban 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/formatos/febraban/version.rb +1 -1
- data/lib/formatos/febraban150/febraban_150.rb +12 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0da9166d98dadf6187fa6f4eb64d984d1f2bfbf
|
4
|
+
data.tar.gz: 20b13f2084caa27e17cc421afa2375cfee99e467
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 863dee7aa72412c878acea5a24e74ce59a1942ec7dbe1ec192d183f527264c696c2559b751cfe0b0dca6cc2dfaf225ab109766b2b426c2df24d8d73e0d1b14be
|
7
|
+
data.tar.gz: f51d1fdd19d904e2c69d16bbab067d48c248c49a31322f591e4c2a008a525a4ff010ebba62557007eb5d80e058e204c4923189c5a819bb789f0b69912c0daa10
|
@@ -181,8 +181,8 @@ class Febraban150
|
|
181
181
|
|
182
182
|
raise "Confirmação do processo já executada" if self.get_section("J").length > 0
|
183
183
|
|
184
|
-
header =
|
185
|
-
trailler =
|
184
|
+
header = self.get_header
|
185
|
+
trailler = self.get_trailler
|
186
186
|
|
187
187
|
section = self.get_new_section("J")
|
188
188
|
|
@@ -202,8 +202,8 @@ class Febraban150
|
|
202
202
|
self.valida_existe_trailler
|
203
203
|
self.valida_existe_confirmacao
|
204
204
|
|
205
|
-
header =
|
206
|
-
trailler =
|
205
|
+
header = self.get_header
|
206
|
+
trailler = self.get_trailler
|
207
207
|
|
208
208
|
section = self.get_confirmacao
|
209
209
|
|
@@ -439,14 +439,20 @@ class Febraban150
|
|
439
439
|
raise "Layout atual inválido!" unless self.is_valid?
|
440
440
|
|
441
441
|
if path.end_with?("/")
|
442
|
-
header =
|
442
|
+
header = self.get_header
|
443
443
|
path += "#{header.get_data_geracao}_#{header.get_codigo_remessa}_#{header.get_codigo_banco}_#{self.versao_layout}.bat"
|
444
444
|
end
|
445
445
|
|
446
|
+
puts "Salvando arquivo: '#{path}'..."
|
447
|
+
content = self.to_s
|
448
|
+
|
446
449
|
File.open(path, 'w') do |file|
|
447
450
|
file.truncate(0)
|
448
|
-
file.write(
|
451
|
+
file.write(content)
|
449
452
|
end
|
453
|
+
puts "Arquivo '#{path}' salvo!"
|
454
|
+
|
455
|
+
self
|
450
456
|
end
|
451
457
|
|
452
458
|
protected
|