expansions 0.1.16 → 0.1.17
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 +3 -3
- data/lib/expansions/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbf8aaa068ce0c0781ebd7900dc62c82ce8e43dd
|
4
|
+
data.tar.gz: 9bd5156d8228af56d18497240fb2fdca7a1539aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d7fb2d0a8502f3c6e009aab3c0586ec3fa7aa52861781bab086b87292b308e94c87b50276910a367889f6207ebef1eea60228001ea97ae01f838ab0d7243cb2
|
7
|
+
data.tar.gz: fba8a006485f610369f7dfdff4b7958d61e97f5ffc798746655b54a4f4dcd13ff377428a819e180833530d4e71760cf80fd2ac61675892ddd974eaa8b5a8012c
|
@@ -11,7 +11,7 @@ module Expansions
|
|
11
11
|
def run_using(file_name)
|
12
12
|
processor = processors.get_processor_for(file_name)
|
13
13
|
generated_name = File.basename(file_name,File.extname(file_name))
|
14
|
-
load_settings_file(generated_name)
|
14
|
+
load_settings_file(File.dirname(file_name), generated_name)
|
15
15
|
generated_name = generated_name.gsub(/\.dotfile/,"")
|
16
16
|
generated_name = ".#{generated_name}" if (/\.dotfile/ =~ file_name)
|
17
17
|
output = File.join(File.dirname(file_name),generated_name)
|
@@ -19,8 +19,8 @@ module Expansions
|
|
19
19
|
processor.process(:input => file_name,:output => output)
|
20
20
|
end
|
21
21
|
|
22
|
-
def load_settings_file(file_name)
|
23
|
-
settings_file = "#{file_name}.settings"
|
22
|
+
def load_settings_file(folder, file_name)
|
23
|
+
settings_file = File.join(folder, "#{file_name}.settings")
|
24
24
|
if File.exist?(settings_file)
|
25
25
|
load settings_file
|
26
26
|
end
|
data/lib/expansions/version.rb
CHANGED