momo 0.3.2 → 0.3.3

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: d7bbc4872833bb1f0381df4ee50d650cd79c4aa9
4
- data.tar.gz: 0dc174e1c949c08f1b7d8ec86418dfa50a72a483
3
+ metadata.gz: b47ccc7d8513f09d4693cf9d55b6e968c66d19b9
4
+ data.tar.gz: b1f6d228d43e1ce90dc96b85a4ef34b051b84166
5
5
  SHA512:
6
- metadata.gz: 8a762d08e3b62acc722a3b831b1517dd0331b04b3c1e74d50a4dd5ee1330245ca56f871013b80194165a7bb149fd62eb5bbc28cf1333ddaaea37bfb4bf221df8
7
- data.tar.gz: 6058e5dc30f58e9b74dc0240ba4d5b9a96b9f3064b6a670dc0349d75661dfb121b7a06fd4d3d852d13485ad8d930ba03158852dfa7d5f894190c1116875f8de4
6
+ metadata.gz: 47181a73f254295798dadb06e608990dbf82410bd7a4d1f256e426269f8c4ffd4f40cf14ebdec202de888b057863841dabf86b84c117b3a3b25925d42caa13ec
7
+ data.tar.gz: 9f486520c8d80f48a73239f57a232360763d9282b118426b75df0e333a78da681e4b35b5fd72ddc1fae9e17ab3705ccb8230fc970edff2f65f9f3f6139080ccf
data/bin/momo CHANGED
@@ -22,7 +22,7 @@ Options:
22
22
  opt :region, "AWS region to run your template", short: "r", default: "ap-northeast-1"
23
23
  end
24
24
 
25
- template = cfl do
25
+ template = Momo::cfl do
26
26
  eval File.read(ARGV[0])
27
27
  end
28
28
 
@@ -32,7 +32,7 @@ module Momo
32
32
  elsif something.is_a? Parameter
33
33
  return { "Ref" => something.name }
34
34
  else
35
- raise "Invalid var: '#{something}' in #{options[:resource]}"
35
+ raise "Invalid var: #{something.inspect} in #{options[:resource]}"
36
36
  end
37
37
  end
38
38
 
data/lib/momo/stack.rb CHANGED
@@ -37,7 +37,10 @@ module Momo
37
37
  end
38
38
 
39
39
  def make_default_resource_name (type)
40
- match = /\:?\:?([a-zA-Z]+)$/.match(type)
40
+ match = /\:?\:?([a-zA-Z0-9]+)$/.match(type)
41
+ if match == nil
42
+ raise "Invalid resource name: #{type}"
43
+ end
41
44
  name = match.captures[0]
42
45
 
43
46
  if !@names[name]
data/lib/momo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Momo
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
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.3.2
4
+ version: 0.3.3
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-08-01 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.4.6
159
+ rubygems_version: 2.4.8
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Mobingi Deployment System