expansions 0.4.35 → 0.4.37
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 785c760f54d3e6324bb06487bead361c7341227d123012831f751b1143bb5b60
|
4
|
+
data.tar.gz: c3d53a3ffaed2897aa5e387d9794d7bb672f652055dca75652ab8aafb0c22392
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60be73d08602de69e31ec8cc6d567a8213358cc9bfd35e96a8eeb18e0f4a19c4296c56e573cb9aa0c66e92b4c177e686b1a50662af710223b5dd4e3c72423da7
|
7
|
+
data.tar.gz: dc5792aa1bd67ba4c83f67b1bf5798465c74e305334a183f19c762438f7e1d67348dbe39c3a176e2d12df6975fdb79ecdff2654ae3582a86ce7677de95a7c420
|
@@ -14,7 +14,7 @@ module Expansions
|
|
14
14
|
names = get_file_names(file_name)
|
15
15
|
load_settings_file(names[:settings_file])
|
16
16
|
output = names[:output_file_name]
|
17
|
-
file.delete(output) if file.
|
17
|
+
file.delete(output) if file.exist?(output)
|
18
18
|
|
19
19
|
begin
|
20
20
|
processor.process(:input => file_name,:output => output)
|
data/lib/expansions/version.rb
CHANGED
@@ -20,7 +20,7 @@ module Expansions
|
|
20
20
|
context "and the generated file already exists" do
|
21
21
|
let(:file_name){"some.file"}
|
22
22
|
before (:each) do
|
23
|
-
file.stub(:
|
23
|
+
file.stub(:exist?).with("./some.file").and_return(true)
|
24
24
|
end
|
25
25
|
|
26
26
|
before (:each) do
|