expansions 0.4.35 → 0.4.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/expansions/template_visitor.rb +1 -1
- data/lib/expansions/version.rb +1 -1
- data/spec/specs/template_visitor_spec.rb +1 -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: 858e96c231453c8b321a691e6576517759641719f47670c24e5dd6c7bfb09923
|
4
|
+
data.tar.gz: cd1f72ae1a4f5d9ec02079992238f02f5066ae3656666f245506e15b9ca73a5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e5998712c036978c49629f3dc78d5654b8b8a2a3c994662802c9797941d5837e12a983b4c3aa4b3ab8a690112581ff418d23d482734862e9b4fb868c1e438ff
|
7
|
+
data.tar.gz: 9fd541e7648d9d05f5e807ff0571ab18d7b6e6fb13989241f36504ba98cf2011de4ede39927b6f36b6d1483e5283acdac6e4450b4e4867dafec596390417dd12
|
@@ -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
|