cfhighlander 0.12.1 → 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: c6f2a474754f86155edd6a16c4fe94900d7cc33c1b38f339a409b73c18c5eb3b
4
- data.tar.gz: fdba45406b6ebba85846ec5000845f21e5e3e0d098307ecccf8ea850b5730524
3
+ metadata.gz: 05fe31ed9c6e37265bcea110b6722160922d9a499c8e6d7895e7d6ca74643e50
4
+ data.tar.gz: 365024110ee40f76afe96eb337f53111866b58cb9eb7d9e524615c70d9d4686f
5
5
  SHA512:
6
- metadata.gz: 8b22f33ba15d51b73eecc54632de3c3b2149d20624ef9657cf05a891d74622eb3523b1d01d1842adc3d1c49639d2f6a5d757a6e31a00cfb625f3c5cfcd2bd61f
7
- data.tar.gz: 3c394dc8e5694ef55218c708cbe2f53ad4372bac9e8bb0a6af544ab5cc38b07ebbe7f8f508337c7d6c91c358393735c3f7c0b4357876e19c3da379528872367d
6
+ metadata.gz: c20826deb51168c566c70a09205f38775fdfe01e937917ebfc56653346ce5dfd4df0eff4717847e7afe558528010f00d49c9e039016bd43bfc1e0faefa8c278b
7
+ data.tar.gz: 9ea39ee3a9c9ad3ab88c62d4a89e10de4c59248ac9bac6cb544ed6b80194d8502be6c80683a4c803591cba09c705ce124c01c096b9b3fb84eece618d5a326c96
@@ -154,13 +154,12 @@ module Cfhighlander
154
154
  param_ovr[:maxValue] = maxValue unless maxValue.nil?
155
155
  param_ovr[:minLength] = minLength unless minLength.nil?
156
156
  param_ovr[:minValue] = minValue unless minValue.nil?
157
-
158
157
  @component_loaded.highlander_dsl.Parameters do
159
158
  ComponentParam name, value, param_ovr
160
159
  end
161
160
  else
162
161
  parameter.default_value = defaultValue unless defaultValue.nil?
163
- parameter.type unless type.nil?
162
+ parameter.type = type unless type.nil?
164
163
  parameter.no_echo = noEcho unless noEcho.nil?
165
164
  parameter.allowed_values = allowedValues unless allowedValues.nil?
166
165
  parameter.allowed_pattern = allowedPattern unless allowedPattern.nil?
@@ -133,6 +133,8 @@ module Cfhighlander
133
133
  @config['template_name'] = @template.template_name
134
134
  @config['template_version'] = @template.template_version
135
135
  @config['template_dir'] = @template.template_location
136
+ @config['distribution_bucket'] = @distribution_bucket
137
+ @config['distribution_prefix'] = @distribution_prefix
136
138
 
137
139
  Dir[candidate_mappings_path].each do |mapping_file|
138
140
  mappings = YAML.load(File.read(mapping_file))
@@ -1,3 +1,3 @@
1
1
  module Cfhighlander
2
- VERSION="0.12.1".freeze
2
+ VERSION="0.12.3".freeze
3
3
  end
@@ -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.1
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: 2020-05-12 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
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1'
61
+ version: '1.3'
62
62
  - - "<"
63
63
  - !ruby/object:Gem::Version
64
64
  version: '2'
@@ -68,7 +68,7 @@ dependencies:
68
68
  requirements:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: '1'
71
+ version: '1.3'
72
72
  - - "<"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '2'
@@ -274,15 +274,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
274
274
  requirements:
275
275
  - - ">="
276
276
  - !ruby/object:Gem::Version
277
- version: '0'
277
+ version: '2.7'
278
278
  required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  requirements:
280
- - - ">="
280
+ - - ">"
281
281
  - !ruby/object:Gem::Version
282
- version: '0'
282
+ version: 1.3.1
283
283
  requirements: []
284
- rubyforge_project:
285
- rubygems_version: 2.7.7
284
+ rubygems_version: 3.0.8
286
285
  signing_key:
287
286
  specification_version: 4
288
287
  summary: DSL on top of cfndsl. Manage libraries of cloudformation components