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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 367de41542af8d4e384d9200f17d6dff5d336615
4
- data.tar.gz: 2423aa3663ac244d1886d1140d5a4df742081abc
3
+ metadata.gz: dbf8aaa068ce0c0781ebd7900dc62c82ce8e43dd
4
+ data.tar.gz: 9bd5156d8228af56d18497240fb2fdca7a1539aa
5
5
  SHA512:
6
- metadata.gz: 99685ac0387587b5bb55a16f86fc69edaf6a1741ee8115e4f3f80cfc57e29fe7916801fb4e538c5fb94345cb9589f2a6e21fe5d3d75c7affe5fc14368cb1130b
7
- data.tar.gz: 2df7230ed4793e742c4c45efa713189886a5eeb1db200ea3103e66cbd20098a540cb76a0e76b91708a48c8ffee11414a97cc73512d16332681e502e90b8ab5d5
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
@@ -1,3 +1,3 @@
1
1
  module Expansions
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expansions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Develop With Passion®