aws-cfn-compiler 0.8.5 → 0.8.6

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODBlYTg0ZjMzZmJjZDEwOTZlOGZjYmE4Zjg1OTMzNjkwOGM5YWEyNA==
4
+ OWU1NTU4MDc4NzFlMzQ2YThiMTFiMGY1ZThhMjkwNmQwYWFlMDhhNA==
5
5
  data.tar.gz: !binary |-
6
- YWQzZDFmYmRhNDBiOWVmZDQ3MTdmNzllNGQ2MDgwMDg4Y2JmYWMwMw==
6
+ NGQ0MWFmNzk0MDNiNTNmMjA0MDBmM2MzNGUwYTVmZWY5YjdiZGE3NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTdhOGFiMDIwMDM1ZmYzMDY3NmFjM2VjYzYzOTk0ZjMwOWZlNWE4Y2JiOGM0
10
- ZGY1MDc5MjhhMGI1ZGMwMmExMTJiODBhMTkwZDA1ODhmZDdmZGMxMmEwODcw
11
- OWU1OTBlNDQ1NzM0MmFlYTA0NTE1MzZkNjYyNGZjNzc0ZWJhZGQ=
9
+ OGQxMTM1MDE1MTlmOWMzNGM5ZjIwYzkzODVmNDE3ZDJmMDgxZWIyYWI3Mjk1
10
+ ZGRlZGI5ZDNlNDFjMDcwOWNkNjUyMzM1YWE0NGY4YjYyNDEyNzk5MTZiN2I2
11
+ MTAzMWJlZmE1ODU3MDU2MWNhNTg4YjdmMGYwYjUxMTk2MjNiYzE=
12
12
  data.tar.gz: !binary |-
13
- NmFlMDQxNzJhOGE1OWFjYTNlZDE3ZmRjYTFiMTgxY2M5MDk5M2MyNDhmYzkx
14
- ZDQ4Nzg2NTg1YTFjNzdlYzljODRmNmE0NDUyZmE0YWJkODRkN2MzZjEzODI2
15
- NjZjODMyNWYyN2UwMTdiMjNmNmE3YzIxZjkwZGNhNWI1ZTNlNGY=
13
+ MzM0ZWM0MDA2ZGEyY2E3MzA1ZjVmY2M5ZDQ2ZDdiMzBjMjMxOTU3YzMwZTRh
14
+ ODZiNWRlMWIyNTA2YTUyNjcyOTc3MzhiMDIxNTFlNGNjNjNlNzgzNDQ0MzMy
15
+ ODMyNmFiZjQ3ODI1NjI2YjdkYjU0NmM2ZTI5MGNiYWI0YjBhODM=
@@ -85,8 +85,9 @@ module Aws
85
85
  Aws::Cfn::Compiler.binding[section] ||= {}
86
86
  Aws::Cfn::Compiler.binding[section][base] ||= {
87
87
  brick_path: @config[:directory],
88
- template: @dsl,
89
- logger: @logger
88
+ template: @dsl,
89
+ logger: @logger,
90
+ compiler: self
90
91
  }
91
92
  source_file = File.expand_path(filename)
92
93
  # source = IO.read(source_file)
@@ -99,18 +100,20 @@ module Aws
99
100
 
100
101
  def sym_to_s(hash)
101
102
  case hash.class.name
102
- when /Hash/
103
- item = {}
104
- hash.each { |k,v|
105
- item[k.to_s] = sym_to_s(v)
106
- }
107
- item
108
- when /Array/
109
- hash.map{|e| sym_to_s(e) }
110
- when /Fixnum|String|TrueClass|FalseClass/
111
- hash
112
- else
113
- abort! "Internal error: #{hash} is a #{hash.class.name} which our Ruby parsing is not prepared for. Fix #{__FILE__}::sym_to_s"
103
+ when /Hash/
104
+ item = {}
105
+ hash.each { |k,v|
106
+ item[k.to_s] = sym_to_s(v)
107
+ }
108
+ item
109
+ when /Array/
110
+ hash.map{|e| sym_to_s(e) }
111
+ when /Fixnum|String|TrueClass|FalseClass/
112
+ hash
113
+ when /Symbol/
114
+ hash.to_s
115
+ else
116
+ abort! "Internal error: #{hash} is a #{hash.class.name} which our Ruby parsing is not prepared for. Fix #{__FILE__}::sym_to_s"
114
117
  end
115
118
  end
116
119
 
@@ -1,7 +1,7 @@
1
1
  module Aws
2
2
  module Cfn
3
3
  module Compiler
4
- VERSION = '0.8.5'
4
+ VERSION = '0.8.6'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-cfn-compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - PKinney