cfndsl 1.4.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/cfndsl/module.rb CHANGED
@@ -79,7 +79,7 @@ class Module
79
79
  raise ArgumentError, "wrong number of arguments (given #{values.size + 1}, expected 1) as #{method}(#{name}) already exists"
80
80
  end
81
81
  instance.instance_eval(&block) if block
82
- return instance
82
+ instance
83
83
  end
84
84
  end
85
85
  end
data/lib/cfndsl/types.rb CHANGED
@@ -112,8 +112,7 @@ module CfnDsl
112
112
  elsif nested_prop_info['Type']
113
113
  root_resource_name + nested_prop_info['Type']
114
114
  else
115
- warn "could not extract property type for #{nested_prop_name} from #{property_name}, assuming Json"
116
- p nested_prop_info
115
+ warn "could not extract property type for #{nested_prop_name} from #{property_name}, assuming Json\n#{nested_prop_info}"
117
116
  'Json'
118
117
  end
119
118
  extracted[nested_prop_name] = nested_prop_type
@@ -275,7 +274,7 @@ module CfnDsl
275
274
  existing.push v
276
275
  end
277
276
  end
278
- return existing
277
+ existing
279
278
  end
280
279
  end
281
280
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CfnDsl
4
- VERSION = '1.4.0'
4
+ VERSION = '1.6.0'
5
5
  end
@@ -8,11 +8,13 @@ describe Cfnlego do
8
8
  context '#Export' do
9
9
  it 'formats correctly' do
10
10
  output = "require 'cfndsl'\nCloudFormation do\n Description 'auto generated cloudformation cfndsl template'\n\n "
11
- output << " EC2_EIP('EIP') do\n Domain String "
12
- output << '# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html#cfn-ec2-eip-domain'
13
- output << "\n InstanceId String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html#cfn-ec2-eip-instanceid"
14
- output << "\n PublicIpv4Pool String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html#cfn-ec2-eip-publicipv4pool"
15
- output << "\n Tags [List] # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html#cfn-ec2-eip-tags"
11
+ output << " EC2_EIP('EIP') do"
12
+ output << "\n InstanceId String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-instanceid"
13
+ output << "\n PublicIpv4Pool String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-publicipv4pool"
14
+ output << "\n TransferAddress String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-transferaddress"
15
+ output << "\n Domain String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-domain"
16
+ output << "\n Tags [List] # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-tags"
17
+ output << "\n NetworkBorderGroup String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-networkbordergroup"
16
18
  output << "\n end\nend\n"
17
19
  expect(template).to eq output
18
20
  end
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: 1.4.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2022-08-28 00:00:00.000000000 Z
14
+ date: 2023-01-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -78,7 +78,6 @@ files:
78
78
  - lib/cfndsl/aws/patches/500_NetworkAclEntry_patch.json
79
79
  - lib/cfndsl/aws/patches/500_SAM_Serverless_Function_S3Event_Events_patch.json
80
80
  - lib/cfndsl/aws/patches/500_SAM_Serverless_Function_S3Location_Version_patch.json
81
- - lib/cfndsl/aws/patches/500_SSM_AssociationName_patch.json
82
81
  - lib/cfndsl/aws/patches/500_VPCEndpoint_patch.json
83
82
  - lib/cfndsl/aws/patches/510_ElasticSearch_Domain_patches.json
84
83
  - lib/cfndsl/aws/patches/520_ServiceDiscovery_InstanceAttributes_patch.json
@@ -187,14 +186,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
186
  requirements:
188
187
  - - ">="
189
188
  - !ruby/object:Gem::Version
190
- version: '2.6'
189
+ version: '2.7'
191
190
  required_rubygems_version: !ruby/object:Gem::Requirement
192
191
  requirements:
193
192
  - - ">="
194
193
  - !ruby/object:Gem::Version
195
194
  version: '0'
196
195
  requirements: []
197
- rubygems_version: 3.3.7
196
+ rubygems_version: 3.4.1
198
197
  signing_key:
199
198
  specification_version: 4
200
199
  summary: AWS Cloudformation DSL
@@ -1,16 +0,0 @@
1
- {
2
- "ResourceTypes": {
3
- "AWS::SSM::Association": {
4
- "patch": {
5
- "description": "rename +Name+ to +DocumentName+ to clearly indicate what the attribute is for",
6
- "operations": [
7
- {
8
- "from": "/Properties/Name",
9
- "op": "move",
10
- "path": "/Properties/DocumentName"
11
- }
12
- ]
13
- }
14
- }
15
- }
16
- }