formatos-febraban 0.2.14 → 0.2.15
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 +5 -8
- 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: 78df8a599d0e96d912ae7d81eea8dd6dd6c440cf
|
4
|
+
data.tar.gz: ded73007a1ca4a2854ae6fa254c7c55075fc3b17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c71f150c45e75f880066ae589fa493588a6c1f2faf0ce6f0d7bab12a48b48aca23256423b2b7e19c1a3b9d7d7618060a3da14ff527fec19387f23dfb9bf812e1
|
7
|
+
data.tar.gz: 10c0db09d0c4a48ce43dc5bb1a12ca729dbb66a45b78640d267aa3b0943994a3aa0b3dedd51221a20af3a3b64dca1e038b0be768dfa0123fcaddf3d52c14ebc4
|
@@ -430,21 +430,18 @@ class Febraban150
|
|
430
430
|
#--------------------------------------------------------------------------------------
|
431
431
|
# Utilitários
|
432
432
|
public
|
433
|
-
def save (path
|
434
|
-
raise "Caminho para salvamento inválido!"
|
433
|
+
def save (path)
|
434
|
+
raise "Caminho para salvamento inválido!" if path.blank?
|
435
435
|
raise "Layout atual inválido!" unless self.is_valid?
|
436
436
|
|
437
|
-
if
|
438
|
-
path += "/" unless path.end_with?("/")
|
437
|
+
if path.end_with?("/")
|
439
438
|
header = self.get_header
|
440
439
|
codigo_remessa = header.get_codigo_remessa
|
441
440
|
|
442
|
-
path += "#{
|
441
|
+
path += "#{self.get_header.get_data_geracao}_#{self.get_header.get_codigo_remessa}_#{self.get_header.get_codigo_banco}_#{self.versao_layout}.bat"
|
443
442
|
end
|
444
443
|
|
445
|
-
File.open(path, 'w') { |f|
|
446
|
-
f.puts self.to_s
|
447
|
-
}
|
444
|
+
File.open(path, 'w') { |f| f.puts(self.to_s) }
|
448
445
|
end
|
449
446
|
|
450
447
|
protected
|