formatos-febraban 0.2.17 → 0.2.18

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: 218f26ed33811c96527d46345472741cead4c519
4
- data.tar.gz: 303cc6ec5295132518aa77c2eddf0906050552f5
3
+ metadata.gz: 1d63702d35e9e41f234a8a50cddfb196153286eb
4
+ data.tar.gz: f2f90c0a1ea691c1c1c41e6b35041a73412354f7
5
5
  SHA512:
6
- metadata.gz: f7b3b1969d620ca6a012248ce85b40fbc63a74bb247c1a7325c8f9dda69e51b237478a04f780d2eb44c6e3bfca70b52501c194734b162656b742b60b7b3849f8
7
- data.tar.gz: 4e12b3f5748fb1363e11b97eee90ffd58147c88a2f09253e5732acdf07d35428ca234ef640446269ee23433c3314076bf79bbb21048d329af167d417cdcadade
6
+ metadata.gz: 7d42773fc041c8354c02357024a4520e6329fb05e64623852fc5e308ca15d81698b571266e04a91d66330e6d13f39704166fcb96ea374ab293ab6e15049b0a3a
7
+ data.tar.gz: a113175812aaae3e5ac7640af00e691e7c36b00c3df182340f3931099aad4f9e65032561879cfd8d298661faf3e5cfb6ad28835e81ca676fb6f778ee4737217a
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = "0.2.17"
3
+ VERSION = "0.2.18"
4
4
  end
5
5
  end
@@ -427,6 +427,7 @@ class Febraban150
427
427
  end
428
428
 
429
429
  def layout_empresa?
430
+ self.finance_collection.export_file.uploaded_file.close
430
431
  self.get_header.get_codigo_remessa == 1
431
432
  end
432
433
 
@@ -443,7 +444,10 @@ class Febraban150
443
444
  path += "#{header.get_data_geracao}_#{header.get_codigo_remessa}_#{header.get_codigo_banco}_#{self.versao_layout}.bat"
444
445
  end
445
446
 
446
- File.open(path, 'w') { |f| f.puts(self.to_s) }
447
+ File.open(path, 'w') do |file|
448
+ file.truncate(0)
449
+ file.write(self.to_s)
450
+ end
447
451
  end
448
452
 
449
453
  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.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - josé Ricardo Almeida