formatos-febraban 0.2.13 → 0.2.14
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 +7 -2
- 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: 6e45be64b0a7496a7495c4239878886665dc3abc
|
4
|
+
data.tar.gz: 3be499957a5430da2570b5df524c6f9e0ced1759
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd8ba1ff4851666ec717f773a13804110fbc8b1d613789c9198815d04bc22db96c5f11d3a96db008b1628ccffb144eee6f7e336c2e4520dcd6411b08521d2d17
|
7
|
+
data.tar.gz: ba8a9b19b958eb46debba466bc90223b1dac54c6a9042951049ab11423908e0a779c8d5cb74c2506bb880abb6d5640e3752336e3f8ce386a4011b2c386d2aece
|
@@ -435,11 +435,16 @@ class Febraban150
|
|
435
435
|
raise "Layout atual inválido!" unless self.is_valid?
|
436
436
|
|
437
437
|
if generate_name
|
438
|
-
path += "/"
|
438
|
+
path += "/" unless path.end_with?("/")
|
439
|
+
header = self.get_header
|
440
|
+
codigo_remessa = header.get_codigo_remessa
|
441
|
+
|
439
442
|
path += "#{header.get_data_geracao}_#{codigo_remessa}_#{header.get_codigo_banco}_#{self.versao_layout}.bat"
|
440
443
|
end
|
441
444
|
|
442
|
-
File.
|
445
|
+
File.open(path, 'w') { |f|
|
446
|
+
f.puts self.to_s
|
447
|
+
}
|
443
448
|
end
|
444
449
|
|
445
450
|
protected
|