gaston 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gaston/parse.rb +3 -1
- data/lib/gaston/version.rb +1 -1
- metadata +2 -2
data/lib/gaston/parse.rb
CHANGED
@@ -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.
|
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
|
data/lib/gaston/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2012-10-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|