app_builder 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app_builder/environment.rb +10 -1
- data/lib/app_builder/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: 503ab415bb2c1308114db87a96941bf6eaa4f5c0
|
4
|
+
data.tar.gz: 1c0d30f54334b0500f727350e41ee71232003204
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 363d434dd3477d8f9635883b50c28d9143df3b9ead883b5afa23b506411d38a8c80ea676df7ff4f11815fb8c24eb096ce5b2156bd7876d587f4c2c3281cc52e1
|
7
|
+
data.tar.gz: a0ba645272b055acccbfc2ac72c6c3a049a1617b25d2ec72037ea8a5113d2cdf55e162c187586ddf8bfe19c92659fed32bd0cb1d3c876b6e95f092388a3fe82b
|
@@ -21,8 +21,17 @@ module AppBuilder
|
|
21
21
|
}.instance_eval { binding }
|
22
22
|
end
|
23
23
|
|
24
|
+
def [](key)
|
25
|
+
hash.fetch(key.to_s, nil)
|
26
|
+
end
|
27
|
+
|
28
|
+
def to_hash
|
29
|
+
source.fetch(name.to_s)
|
30
|
+
end
|
31
|
+
alias :hash :to_hash
|
32
|
+
|
24
33
|
def source
|
25
|
-
@source ||= YAML.
|
34
|
+
@source ||= YAML.load(ERB.new(File.read(source_path)).result(binding))
|
26
35
|
end
|
27
36
|
end
|
28
37
|
end
|
data/lib/app_builder/version.rb
CHANGED