cfn-model 0.1.15 → 0.1.16

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
  SHA1:
3
- metadata.gz: e440f8d33518f4e5fcfae8d8938d8a39ee9ad243
4
- data.tar.gz: 06700affcb410260fec84db73b32e0091e70d2bc
3
+ metadata.gz: 865b1bcc43095fbfaad782c24d47e0e2b994bf4a
4
+ data.tar.gz: d874769713814abb3dae958edecbbb0f86326c41
5
5
  SHA512:
6
- metadata.gz: e012da8b94b5752099fd79f130537bc748f24b23a6046af72986fcbf7bab77b4f115ddc1c5fbfc428d24f9d9e69d3bda08036f14c4bb23a52daef580977aa924
7
- data.tar.gz: d028d375d78a94bd6d71b3484ff21932bccfcd431140eb1664e4002380cb3f9c338a0ef6fd981166128fcb8b85025db452213709fa74c12d9ac83e0ce01ac321
6
+ metadata.gz: afcbf9e109fa084cd7ec4cb132f0b2020e0c178e78f8183584461ee21d9738b563a0b7d276bdb6412813cb22c6a247cbc45f9a606b60bdb19fd5e9b39543e2fa
7
+ data.tar.gz: 9cbae9a0476a2f8f9cc8c9bf8d0d860597d45d8530bf4790dff3d674de6c52e03854f084715378db610e49b6e0aeff750d80e7be0b44508f942e0c12c3ee8905
@@ -118,7 +118,7 @@ class CfnParser
118
118
 
119
119
  module_names = type_name.split('::')
120
120
  if module_names.first == 'Custom'
121
- Object.const_set(module_names[1], resource_class)
121
+ Object.const_set(initial_upper(module_names[1]), resource_class)
122
122
  elsif module_names.first == 'AWS'
123
123
  begin
124
124
  module_constant = AWS.const_get(module_names[1])
@@ -132,4 +132,8 @@ class CfnParser
132
132
  end
133
133
  resource_class
134
134
  end
135
+
136
+ def initial_upper(str)
137
+ str.slice(0).upcase + str[1..(str.length)]
138
+ end
135
139
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kascic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-18 00:00:00.000000000 Z
11
+ date: 2018-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kwalify