cfn_camelizer 0.4.7 → 0.4.8
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 +4 -0
- data/lib/cfn_camelizer.rb +3 -2
- data/lib/cfn_camelizer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f386dff9e148875e8f219ca63d6c9a815a4088fdf4456a4570713e2c5b3a933
|
4
|
+
data.tar.gz: a89342ceadb4a7fcd7494f3582fc18b00a27cb0ad05cb0bd5894d63e15c51d79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a8c5ed1b5a347bf3c88a8a1528258a892bee78c33347e7fc1b3766a06ba522c2b0b1b562dd3f26c5fea23e4d00169e07967089cc2788016697cffa7737929b0
|
7
|
+
data.tar.gz: ed407c7a6151b77474b3d541894ae6eb63a4581444fc2ac4213f8c5d69c8bb9a6c7e2f9f565f009db78596f9b966e8ebae4b83304e4c0f342d1254418698cff6
|
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.8]
|
7
|
+
- add DBClusterIdentifier spec
|
8
|
+
- resource_keys: allow resource to work with type or Type
|
9
|
+
|
6
10
|
## [0.4.7]
|
7
11
|
- fix for parameters
|
8
12
|
|
data/lib/cfn_camelizer.rb
CHANGED
@@ -16,8 +16,9 @@ class CfnCamelizer
|
|
16
16
|
when Array
|
17
17
|
value.map { |v| transform(v, parent_keys, resource_type) }
|
18
18
|
when Hash
|
19
|
-
|
20
|
-
|
19
|
+
camelized_copy = value.dup.deep_transform_keys { |k| k.to_s.camelize }
|
20
|
+
if camelized_copy.keys.include?("Type")
|
21
|
+
resource_type ||= camelized_copy["Type"]
|
21
22
|
end
|
22
23
|
|
23
24
|
initializer = value.map do |k, v|
|