teodoro 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teodoro/arquivo_data.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ddbdacc1dbd483710560887957da7f6c00f35e61947eb681fbb570b67dc5912
|
4
|
+
data.tar.gz: f06f09ba02f715ad8e78d04448359c1c9febdf5fe88a47b29ba982a37dccb1b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e211db70d66a127299a10b32ae1f9cfb15c9184a782019f4daa8706cecaeafa9a18faa78d8b2d81fdd08ed7fcfd07667f5da317e324ebf3085e7c1e1c1c8ea27
|
7
|
+
data.tar.gz: b5d0d8790fa395b92f02cc42e89184221517344017dbc9e64d0a053d5d2696a08c467048bab91d3d5728ab1e44cf4effeb037fbc1544743b25399ff948c39fbf
|
data/lib/teodoro/arquivo_data.rb
CHANGED
@@ -20,7 +20,9 @@ module Teodoro
|
|
20
20
|
def criar
|
21
21
|
raise caminho if File.exist?(caminho)
|
22
22
|
|
23
|
-
File.
|
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
|