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 +4 -4
- data/lib/cfn-model/parser/cfn_parser.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 865b1bcc43095fbfaad782c24d47e0e2b994bf4a
|
4
|
+
data.tar.gz: d874769713814abb3dae958edecbbb0f86326c41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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:
|
11
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kwalify
|