gaston 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
1
1
  # encoding: utf-8
2
+ require 'erb'
3
+
2
4
  class Gaston
3
5
  class Parse
4
6
 
@@ -12,7 +14,7 @@ class Gaston
12
14
  def initialize(files, env)
13
15
  @env = env
14
16
  @hash = files.inject({}) do |hash, file|
15
- @parse = YAML.load_file(file) || {}
17
+ @parse = YAML.load(ERB.new(File.read(file)).result) || {}
16
18
  hash.merge(deep_merge_hash(default_values, env_values))
17
19
  end
18
20
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  class Gaston
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaston
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-05 00:00:00.000000000 Z
12
+ date: 2012-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec