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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aab4122d7c25744d2d355ad9a126f848c8bad558
4
- data.tar.gz: 9fc7e70371fd6f3f43dfc9fa9c8042e85f7acea4
3
+ metadata.gz: 503ab415bb2c1308114db87a96941bf6eaa4f5c0
4
+ data.tar.gz: 1c0d30f54334b0500f727350e41ee71232003204
5
5
  SHA512:
6
- metadata.gz: 47a9f282d4fe4a1aaff3c92468cd98285e0d605e9bebf7af3aaf012f14516370b863903c5e2f1054f29c78532c219ccae31714b76e9919720bf7dfb76f57b914
7
- data.tar.gz: 1d2090713bf063dc03371a0c3178e931929bb8cafc0589fe39b52bdb41a572b134e6fd92da9fccb96f983665c18ea170c273fab534766d35d832a1aac6574213
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.load_file(source_path)
34
+ @source ||= YAML.load(ERB.new(File.read(source_path)).result(binding))
26
35
  end
27
36
  end
28
37
  end
@@ -1,3 +1,3 @@
1
1
  module AppBuilder
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - i2bskn