cfn_camelizer 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/camelizer.yml +2 -1
- data/lib/cfn_camelizer.rb +1 -1
- data/lib/cfn_camelizer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19152ca5a8cbaf82b7e60324cedf03e65c263bbf7c14bb9935beaccbcf04ef76
|
4
|
+
data.tar.gz: 1e26f2a74bb0163c6f36e754dee457c44c1a00556fd365fa888144b05bbd0dae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9a109cc9d06d2a52b733d06127204b78e8a25d7894804a99fc7c02b118cd0ebe2d906866912750ad25398bb3f21c550185306e8f64bc2b50641bd08de2ae9d4
|
7
|
+
data.tar.gz: 16af9bded184039ee8ee14b713ee807633d98c3a14cdf658e58e920c7de3f3233dc86408bcacbeb93b658322d56e9e78876cbc0e369c4117ccfc372bb6d7b382
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.4.2]
|
7
|
+
- add AWS::CloudFormation::Init to passthrough keys
|
8
|
+
- pass through keys with period in them
|
9
|
+
|
6
10
|
## [0.4.1]
|
7
11
|
- respect resource_keys special handling with Type string as well as :type symbol
|
8
12
|
|
data/lib/camelizer.yml
CHANGED
@@ -32,6 +32,7 @@ resource_keys: # specific to resource types
|
|
32
32
|
ClassicLinkVpcId: ClassicLinkVPCId
|
33
33
|
ClassicLinkVpcSecurityGroups: ClassicLinkVPCSecurityGroups
|
34
34
|
passthrough_parent_keys:
|
35
|
+
- AWS::CloudFormation::Init # configSets https://amzn.to/33iPI2Y
|
35
36
|
- Fn::Sub # https://amzn.to/2HKwxri
|
36
37
|
- ResponseParameters # API Gateway MethodResponse https://amzn.to/2HKw0Wk
|
37
|
-
- Variables # Lambda Environment Variables https://amzn.to/2HLlttV
|
38
|
+
- Variables # Lambda Environment Variables https://amzn.to/2HLlttV
|
data/lib/cfn_camelizer.rb
CHANGED
@@ -49,7 +49,7 @@ class CfnCamelizer
|
|
49
49
|
# Do not transform keys under certain parent keys or keys that contain - or /
|
50
50
|
passthrough = camelizer_yaml["passthrough_parent_keys"]
|
51
51
|
intersection = parent_keys & passthrough
|
52
|
-
!intersection.empty? || k.include?('-') || k.include?('/')
|
52
|
+
!intersection.empty? || k.include?('-') || k.include?('/') || k.include?('.')
|
53
53
|
end
|
54
54
|
|
55
55
|
def camelize(value, resource_type=nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfn_camelizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|