momo 0.1.2 → 0.2.0

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: 909f4bb52b8192f0ebcc1d9c651dc4e22ae486bb
4
- data.tar.gz: 1e72616baa27c57981839f37183b3f08c2ed13dd
3
+ metadata.gz: 61d24aa3bc8b813807f31c3180fec6176ccbe55c
4
+ data.tar.gz: a3aceaa9e405a1c969c18a5b7382c6210f589d99
5
5
  SHA512:
6
- metadata.gz: 0b5f955c4028d405d118b79a63c9321f6062bad89f32338ffd730808d15c653dca91009584c67cad0a2649ba1809bb5dc33754fbc1d4fb40fc021ff1738f1981
7
- data.tar.gz: 48992dc0002007bb083bac5c68c8789fa17ad2339ec8bb6ba864daccfb7b5095ad26ce90064bfea611f55b23dc79f4e6930683d2d4e1fadb16d2cd139e3b64bf
6
+ metadata.gz: 5631dd9f8217a5a837bb51f09d76cfea9047871c993e31da9cf0ea780e099576d51a25351623d9c126f0ca40ca95089614ca0d0cc581250021550b668d7fd7a1
7
+ data.tar.gz: 87555420670fc44dc2c0f41af18fe4e02a71ae4b96a8195c1ce3c568d24b7d1e41375fb1262463e9f3d6a3ae4e05974e6af4cf01a2230f19b617e4bbb6c9dae2
data/lib/momo/stack.rb CHANGED
@@ -78,13 +78,7 @@ module Momo
78
78
  end
79
79
 
80
80
  def output(name, res)
81
- if res.is_a? Resource
82
- @outputs[name] = { "Ref" => res.name }
83
- elsif res.is_a? String
84
- @props[name] = res
85
- else
86
- raise "Invalid var: #{res}"
87
- end
81
+ @outputs[name] = Momo.resolve(res)
88
82
  end
89
83
 
90
84
  def mapping(name, &block)
data/lib/momo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Momo
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: momo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Siaw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-18 00:00:00.000000000 Z
11
+ date: 2016-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport