cfndsl 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/cfndsl.rb +7 -2
  2. metadata +2 -2
data/lib/cfndsl.rb CHANGED
@@ -175,7 +175,7 @@ module CfnDsl
175
175
  # The actual Fn::Join call corresponding to the above FnFormat call would be
176
176
  # {"Fn::Join": ["",["This is a ","test",". It is 100","%"," ","effective"]]}
177
177
  array = [];
178
- string.scan( /(.*?)(%(%|\d+)|\Z)/m ) do |x,y|
178
+ string.scan( /(.*?)(%(%|\d+)|\z)/m ) do |x,y|
179
179
  array.push $1 if $1 && $1 != ""
180
180
  if( $3 == '%' ) then
181
181
  array.push '%'
@@ -392,7 +392,12 @@ module CfnDsl
392
392
  puts self.to_json # uncomment for pretty printing # {:space => ' ', :indent => ' ', :object_nl => "\n", :array_nl => "\n" }
393
393
  end
394
394
 
395
- @@globalRefs = { "AWS::Region" => 1 }
395
+ @@globalRefs = {
396
+ "AWS::NotificationARNs" => 1,
397
+ "AWS::Region" => 1,
398
+ "AWS::StackId" => 1,
399
+ "AWS::StackName" => 1
400
+ }
396
401
 
397
402
  def isValidRef( ref, origin=nil)
398
403
  ref = ref.to_s
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.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  version: '0'
41
41
  requirements: []
42
42
  rubyforge_project:
43
- rubygems_version: 1.8.23
43
+ rubygems_version: 1.8.11
44
44
  signing_key:
45
45
  specification_version: 3
46
46
  summary: AWS Cloudformation DSL