aws-cfn-dsl 0.9.5 → 0.9.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9733b6a0b44c11d981b3b91cd99bc10f444720c5
4
- data.tar.gz: dbcacef7617a07e4cf9bf82620384b8693fda7fe
3
+ metadata.gz: 7810c400379c78b9a454e7f150a556ad80c4d3d2
4
+ data.tar.gz: b763d5db2f44952a959c99d7d53b7b618c9c7fa7
5
5
  SHA512:
6
- metadata.gz: 26ec9f42d0fb67c799ecf0e3d6d04ad4d77a2b868c139b1226c914aea7850d2335d0d0e393a10f89e84249061f953acdd6e54e1ebd4016a37ef260dfc012aa1a
7
- data.tar.gz: 2dbabae2ffeafdb2c0d21cdd9937c77dac572818990a211be26c9c19ec2fed9de73d903e6fd286be76d4cd2c7dbaeb34d49bc94adbe4a115cd31940ce8498806
6
+ metadata.gz: 127fa60ebf91a9b3abf30f4046f4d1143cdc0b84416bb928a05e152d991f721bbc19db2f08a6024f6c6719883b6a99deba6d3cc6637aea5088e12e21e40b1511
7
+ data.tar.gz: ecb404de2ca86629bb086dc2645149834114fc698faaadd106d766db7018971e27c2e8a4bb492bd4d82d86bfec28a3812e8e6a0e121a8bf582b4fb34d3a37328
@@ -70,15 +70,16 @@ module Aws
70
70
 
71
71
  def hash_refs(line,scope)
72
72
  block_regex = %r/\{\s*:\S+\s*=>.*?\}|\{\s*\S+:\s*.*?\}/
73
- match = line.match %r/^([^#]*?)(#{block_regex})(.*)$/
73
+ match = line.match %r/^(\s*[^#].*?)(#{block_regex})(.*)$/
74
74
  if match
75
75
  left = match[1]
76
76
  code = match[2]
77
77
  tail = match[3]
78
78
  while true
79
- braces = code.gsub(%r/[^{}]+/, '')
80
- len = braces.size
81
- if len % 2 != 0
79
+ lbraces = code.gsub(%r/[^{]+/, '')
80
+ rbraces = code.gsub(%r/[^}]+/, '')
81
+
82
+ if lbraces.size != rbraces.size
82
83
  nest = tail.match %r/^(.*?\})(.*)$/
83
84
  if nest
84
85
  code += nest[1]
@@ -1,7 +1,7 @@
1
1
  module Aws
2
2
  module Cfn
3
3
  module Dsl
4
- VERSION = '0.9.5'
4
+ VERSION = '0.9.6'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-cfn-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christo DeLange
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
11
+ date: 2014-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print