formatos-febraban 0.2.15 → 0.2.16

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: 78df8a599d0e96d912ae7d81eea8dd6dd6c440cf
4
- data.tar.gz: ded73007a1ca4a2854ae6fa254c7c55075fc3b17
3
+ metadata.gz: a025112d7380114f666b684779a1c8b50e5b4ad5
4
+ data.tar.gz: b9b42064d754200d745434eb2c3d83cd76ee3f89
5
5
  SHA512:
6
- metadata.gz: c71f150c45e75f880066ae589fa493588a6c1f2faf0ce6f0d7bab12a48b48aca23256423b2b7e19c1a3b9d7d7618060a3da14ff527fec19387f23dfb9bf812e1
7
- data.tar.gz: 10c0db09d0c4a48ce43dc5bb1a12ca729dbb66a45b78640d267aa3b0943994a3aa0b3dedd51221a20af3a3b64dca1e038b0be768dfa0123fcaddf3d52c14ebc4
6
+ metadata.gz: b3f7049ed3dcd5d946c555154ee40249d2e32a4da0eb8237460ae208097388f7e030ceb1c640deb8fd366106fa2d46e2a379d6b9259b6812dcbeb7925d4a13f9
7
+ data.tar.gz: 78d47d3a724fd0dcca3d897d41eafe897f490a0d287f12c83d81e500513d5b305243184249b3c57547bbd0842d42cf8832309a6f402b05cef92d7f2bf18229b5
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = "0.2.15"
3
+ VERSION = "0.2.16"
4
4
  end
5
5
  end
@@ -2,7 +2,7 @@
2
2
  class Febraban150
3
3
  require 'date'
4
4
 
5
- VERSAO = "05"
5
+ VERSAO = "05"
6
6
 
7
7
  # Carrega todas as dependências de Layout
8
8
  Dir[File.join(File.dirname(__FILE__), '../..', 'base', '**/*.rb')].sort.each do |file|
@@ -419,11 +419,11 @@ class Febraban150
419
419
  end
420
420
 
421
421
  def layout_banco?
422
- self.header.get_codigo_remessa == 2
422
+ self.get_header.get_codigo_remessa == 2
423
423
  end
424
424
 
425
425
  def layout_empresa?
426
- self.header.get_codigo_remessa == 1
426
+ self.get_header.get_codigo_remessa == 1
427
427
  end
428
428
 
429
429
  #--------------------------------------------------------------------------------------
@@ -435,10 +435,8 @@ class Febraban150
435
435
  raise "Layout atual inválido!" unless self.is_valid?
436
436
 
437
437
  if path.end_with?("/")
438
- header = self.get_header
439
- codigo_remessa = header.get_codigo_remessa
440
-
441
- path += "#{self.get_header.get_data_geracao}_#{self.get_header.get_codigo_remessa}_#{self.get_header.get_codigo_banco}_#{self.versao_layout}.bat"
438
+ header = this.get_header
439
+ path += "#{header.get_data_geracao}_#{header.get_codigo_remessa}_#{header.get_codigo_banco}_#{self.versao_layout}.bat"
442
440
  end
443
441
 
444
442
  File.open(path, 'w') { |f| f.puts(self.to_s) }
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.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - josé Ricardo Almeida