cfhighlander 0.12.3.alpha.1612330154 → 0.12.3.alpha.1616763759

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
  SHA256:
3
- metadata.gz: 6f830c93191f6ab94ed93d377d799a71c9235923356f8f33d8f36a156f1a068d
4
- data.tar.gz: '018d47f8b79634d1bc9b49d62365828363aff9f8c5cebea974dc7b8851cabd9c'
3
+ metadata.gz: 05fe31ed9c6e37265bcea110b6722160922d9a499c8e6d7895e7d6ca74643e50
4
+ data.tar.gz: 365024110ee40f76afe96eb337f53111866b58cb9eb7d9e524615c70d9d4686f
5
5
  SHA512:
6
- metadata.gz: 01aa809ce84be77d25a355b705afd1d4071caadaee947ac6e6e7c4265c306ddd2017bc9e0db20c5c15439f3031f00154e9180eafb09295ec487092afa93e5192
7
- data.tar.gz: 7bb5d9e5b5f7d579ec8283a77ae512d6c2701f665b7b1e3c9668e192e3c06bd72b20878d367f3c9386f0a8a859b1a11d9091761a858de3a3447a92a25a3700ff
6
+ metadata.gz: c20826deb51168c566c70a09205f38775fdfe01e937917ebfc56653346ce5dfd4df0eff4717847e7afe558528010f00d49c9e039016bd43bfc1e0faefa8c278b
7
+ data.tar.gz: 9ea39ee3a9c9ad3ab88c62d4a89e10de4c59248ac9bac6cb544ed6b80194d8502be6c80683a4c803591cba09c705ce124c01c096b9b3fb84eece618d5a326c96
@@ -110,8 +110,13 @@ module Cfhighlander
110
110
  model = sub_component.component_loaded.cfn_model_raw
111
111
  model[element_name].each do |resource, value|
112
112
  # effective extraction of child resource into parent
113
- parent_model[element_name] = {} unless parent_model.key? element_name
114
- parent_model[element_name][resource] = value
113
+ # allows for line components to use - or _ in the component name
114
+ # and still generate valid references
115
+ safe_resource_name = resource.gsub('-','').gsub('_','')
116
+ unless element_name == 'Outputs' && resource.end_with?('CfTemplateUrl')
117
+ parent_model[element_name] = {} unless parent_model.key? element_name
118
+ parent_model[element_name][safe_resource_name] = value
119
+ end
115
120
  end if model.key? element_name
116
121
  end
117
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfhighlander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3.alpha.1612330154
4
+ version: 0.12.3.alpha.1616763759
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Tosic
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-02-03 00:00:00.000000000 Z
13
+ date: 2021-03-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline