cfn_camelizer 0.4.0 → 0.4.1
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/cfn_camelizer.rb +2 -2
- 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: '0850db557549a4dcc81ed90fbbf2cb9fea7d416bb51c360aebb7b4acf99971f3'
|
4
|
+
data.tar.gz: 81b1fe1fa2f7728e5352fd3ea5e8a58acc462180935d37555b0cd7a282bfb582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: defe2500f8cda15030bcfa79dcebea918d175cd163495484031d1a76879cdd3d3237ebc4a486bb1876bd889f3fb99af7d4e2069e2cb91addc1d89cd319172b00
|
7
|
+
data.tar.gz: 65a45fa90dad52ef1a17dbf600c37e00a82eb2e72c692522da5ac63be2487807273d9511cb330ca0f74097f7e9e593b098733385ef42d9cf34b72e92641593af
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
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.1]
|
7
|
+
- respect resource_keys special handling with Type string as well as :type symbol
|
8
|
+
|
6
9
|
## [0.4.0]
|
7
10
|
- add AWS::ApiGateway::Authorizer cases
|
8
11
|
|
data/lib/cfn_camelizer.rb
CHANGED
@@ -16,8 +16,8 @@ class CfnCamelizer
|
|
16
16
|
when Array
|
17
17
|
value.map { |v| transform(v, parent_keys, resource_type) }
|
18
18
|
when Hash
|
19
|
-
if value.keys.include?(:type)
|
20
|
-
resource_type ||= value[:type]
|
19
|
+
if value.keys.include?(:type) || value.keys.include?("Type")
|
20
|
+
resource_type ||= value[:type] || value["Type"]
|
21
21
|
end
|
22
22
|
|
23
23
|
initializer = value.map do |k, v|
|
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.1
|
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-09
|
11
|
+
date: 2019-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|