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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e45be64b0a7496a7495c4239878886665dc3abc
4
- data.tar.gz: 3be499957a5430da2570b5df524c6f9e0ced1759
3
+ metadata.gz: 78df8a599d0e96d912ae7d81eea8dd6dd6c440cf
4
+ data.tar.gz: ded73007a1ca4a2854ae6fa254c7c55075fc3b17
5
5
  SHA512:
6
- metadata.gz: cd8ba1ff4851666ec717f773a13804110fbc8b1d613789c9198815d04bc22db96c5f11d3a96db008b1628ccffb144eee6f7e336c2e4520dcd6411b08521d2d17
7
- data.tar.gz: ba8a9b19b958eb46debba466bc90223b1dac54c6a9042951049ab11423908e0a779c8d5cb74c2506bb880abb6d5640e3752336e3f8ce386a4011b2c386d2aece
6
+ metadata.gz: c71f150c45e75f880066ae589fa493588a6c1f2faf0ce6f0d7bab12a48b48aca23256423b2b7e19c1a3b9d7d7618060a3da14ff527fec19387f23dfb9bf812e1
7
+ data.tar.gz: 10c0db09d0c4a48ce43dc5bb1a12ca729dbb66a45b78640d267aa3b0943994a3aa0b3dedd51221a20af3a3b64dca1e038b0be768dfa0123fcaddf3d52c14ebc4
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = "0.2.14"
3
+ VERSION = "0.2.15"
4
4
  end
5
5
  end
@@ -430,21 +430,18 @@ class Febraban150
430
430
  #--------------------------------------------------------------------------------------
431
431
  # Utilitários
432
432
  public
433
- def save (path, generate_name = true)
434
- raise "Caminho para salvamento inválido!" unless path.length > 0
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 generate_name
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 += "#{header.get_data_geracao}_#{codigo_remessa}_#{header.get_codigo_banco}_#{self.versao_layout}.bat"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formatos-febraban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - josé Ricardo Almeida