cfndsl 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -68,7 +68,7 @@ module CfnDsl
68
68
  if(arguments.length == 0 ||
69
69
  (arguments.length == 1 && arguments[0].instance_of?(Hash)) ) then
70
70
  hash = arguments[0] || {}
71
- string.scan( /(.*?)(%(%|\{(\w+)\})|\z)/m ) do |x,y|
71
+ string.scan( /(.*?)(%(%|\{([\w:]+)\})|\z)/m ) do |x,y|
72
72
  array.push $1 if $1 && $1 != ""
73
73
  if( $3 == '%' ) then
74
74
  array.push '%'
@@ -5,6 +5,18 @@ module CfnDsl
5
5
  class MetadataDefinition < JSONable
6
6
  ##
7
7
  # Handles Metadata objects
8
+ def initialize(value)
9
+ @value = value;
10
+ end
11
+
12
+ def value
13
+ return @value
14
+ end
15
+
16
+ def to_json(*a)
17
+ @value.to_json(*a)
18
+ end
19
+
8
20
  end
9
21
 
10
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfndsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: