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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8c9544de97d0670018fb8a83e9bb8ca83f617b1
4
- data.tar.gz: 7adf1fad3917cd7d961a1119f54301208e9cf435
3
+ metadata.gz: c0da9166d98dadf6187fa6f4eb64d984d1f2bfbf
4
+ data.tar.gz: 20b13f2084caa27e17cc421afa2375cfee99e467
5
5
  SHA512:
6
- metadata.gz: 67377fcb7fe0fe8df17ec7ea5e96c2a8be0b32beafad38b3d949eeb0fe893413d6f446516d05c0dff6f0eb90793f8c85e0190e69d43d78fe2149b69a45c25f5c
7
- data.tar.gz: 0c567c04ee14af8766f1050aeebf139ad564c3c37e2ef3bb2c7c3ff9c93d6d5d1f2d374ecb20cb96b7519b0bce914bea96ec97ee32210f8ec24fe088cdc611f1
6
+ metadata.gz: 863dee7aa72412c878acea5a24e74ce59a1942ec7dbe1ec192d183f527264c696c2559b751cfe0b0dca6cc2dfaf225ab109766b2b426c2df24d8d73e0d1b14be
7
+ data.tar.gz: f51d1fdd19d904e2c69d16bbab067d48c248c49a31322f591e4c2a008a525a4ff010ebba62557007eb5d80e058e204c4923189c5a819bb789f0b69912c0daa10
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = "0.2.19"
3
+ VERSION = "0.2.20"
4
4
  end
5
5
  end
@@ -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 = this.get_header
185
- trailler = this.get_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 = this.get_header
206
- trailler = this.get_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 = this.get_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(self.to_s)
451
+ file.write(content)
449
452
  end
453
+ puts "Arquivo '#{path}' salvo!"
454
+
455
+ self
450
456
  end
451
457
 
452
458
  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.19
4
+ version: 0.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - josé Ricardo Almeida