cfn_camelizer 0.4.7 → 0.4.8

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: 7baf498f2c9098d71eaf01cefefec11b143c5cde3bdce0824597f75ca9a16327
4
- data.tar.gz: a942e089f943e619574b7f36e07a608620ffac167f6a5d4d296610172c1b9b7f
3
+ metadata.gz: 8f386dff9e148875e8f219ca63d6c9a815a4088fdf4456a4570713e2c5b3a933
4
+ data.tar.gz: a89342ceadb4a7fcd7494f3582fc18b00a27cb0ad05cb0bd5894d63e15c51d79
5
5
  SHA512:
6
- metadata.gz: 83ec32f84c98187ce081571ee78920ebe86024c36030b6d023cfdc186bc6d9f3d328c8151cfd4230f0c86ffac2761818394282443ef8618832a99eb424d46993
7
- data.tar.gz: 28ef6525ddedfbe462be66228bc450d89789e1dbd9b34d00f4aef3eb6fe8ad66257e8aba08d53fe89d41a008b90c0d88a07e275b906c185ca5fb743886418ef5
6
+ metadata.gz: 6a8c5ed1b5a347bf3c88a8a1528258a892bee78c33347e7fc1b3766a06ba522c2b0b1b562dd3f26c5fea23e4d00169e07967089cc2788016697cffa7737929b0
7
+ data.tar.gz: ed407c7a6151b77474b3d541894ae6eb63a4581444fc2ac4213f8c5d69c8bb9a6c7e2f9f565f009db78596f9b966e8ebae4b83304e4c0f342d1254418698cff6
@@ -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
 
@@ -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
- if value.keys.include?(:type) || value.keys.include?("Type")
20
- resource_type ||= value[:type] || value["Type"]
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|
@@ -1,3 +1,3 @@
1
1
  class CfnCamelizer
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn_camelizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen