teodoro 0.15.0 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/teodoro/arquivo_data.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '015674845cf1493fa899507859c34b1cd26b3627cf753059c03428d0a5db5c01'
4
- data.tar.gz: 594294173329bb263014f8d58324af563b8bf511cb50bcd3991ae9a68be987d6
3
+ metadata.gz: 6ddbdacc1dbd483710560887957da7f6c00f35e61947eb681fbb570b67dc5912
4
+ data.tar.gz: f06f09ba02f715ad8e78d04448359c1c9febdf5fe88a47b29ba982a37dccb1b6
5
5
  SHA512:
6
- metadata.gz: 6868f635b06933ce12af64d6f155ed3d86350a458c5b3d03b46130220a0a42e6f3a8a32256765d168d08ca2507aa7bac57db1271bc63db467836606d362fad0a
7
- data.tar.gz: 3046f5c29c40b43da022af43f4557d8823086e8f5b59e602fac3706f8bc99d25fa7843243b2bf00a1a3dc196d22c68b149a6f13dabf47aebc3bc6b94ffd5e185
6
+ metadata.gz: e211db70d66a127299a10b32ae1f9cfb15c9184a782019f4daa8706cecaeafa9a18faa78d8b2d81fdd08ed7fcfd07667f5da317e324ebf3085e7c1e1c1c8ea27
7
+ data.tar.gz: b5d0d8790fa395b92f02cc42e89184221517344017dbc9e64d0a053d5d2696a08c467048bab91d3d5728ab1e44cf4effeb037fbc1544743b25399ff948c39fbf
@@ -20,7 +20,9 @@ module Teodoro
20
20
  def criar
21
21
  raise caminho if File.exist?(caminho)
22
22
 
23
- File.write(caminho, (itens_do_conteudo.map { "#{_1}=#{Valor.new(_2, formato: _3)}" } + ['']).join("\n"))
23
+ File.open(caminho, 'w') { |f| f.puts(itens_do_conteudo.map { "#{_1}=#{Valor.new(_2, formato: _3)}" }) }
24
+ # FIXME: Tales
25
+ # File.write(caminho, (itens_do_conteudo.map { "#{_1}=#{Valor.new(_2, formato: _3)}" } + ['']).join("\n"))
24
26
  end
25
27
 
26
28
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teodoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clavius Tales