cfn-model 0.6.8 → 0.6.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58d4ab0957a1e2ce81106501a32097f6a9dd3a4dba312aa1778437175432ad4c
|
4
|
+
data.tar.gz: 0f0150cfeffa848f54692db4f52e4d00375247988ea1d3b0c528846fb93c8db3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79e5af6430d20ed12a72280ffa5eaacde89756aaf0c43109731025e6864d76e48fb50f476b0fb6e9b95f180086fd86f1ba36e79e07a6f93fc656eb4274f05e15
|
7
|
+
data.tar.gz: 226e8296ea5706ac110a7def4bf7ff1e6db6ba1bba916ba0308736830b107244e457b66d76baf79ed56e9f7ebe2a905448fec7df849f61a1d06c224293efc339
|
@@ -65,7 +65,7 @@ class CfnParser
|
|
65
65
|
if with_line_numbers
|
66
66
|
parse_with_line_numbers(cloudformation_yml)
|
67
67
|
else
|
68
|
-
YAML.safe_load cloudformation_yml, permitted_classes: [Date]
|
68
|
+
YAML.safe_load cloudformation_yml, permitted_classes: [Date, Symbol]
|
69
69
|
end
|
70
70
|
|
71
71
|
# Transform raw resources in template as performed by
|
@@ -12,7 +12,7 @@ class CloudFormationValidator
|
|
12
12
|
|
13
13
|
schema = SchemaGenerator.new.generate cloudformation_string
|
14
14
|
validator = Kwalify::Validator.new(schema)
|
15
|
-
validator.validate(YAML.safe_load(cloudformation_string, permitted_classes: [Date]))
|
15
|
+
validator.validate(YAML.safe_load(cloudformation_string, permitted_classes: [Date, Symbol]))
|
16
16
|
rescue ArgumentError, IOError, NameError => e
|
17
17
|
raise ParserError, e.inspect
|
18
18
|
end
|
@@ -5,7 +5,7 @@ require 'cfn-model/parser/parser_error'
|
|
5
5
|
class ResourceTypeValidator
|
6
6
|
|
7
7
|
def self.validate(cloudformation_yml)
|
8
|
-
hash = YAML.safe_load cloudformation_yml, permitted_classes: [Date]
|
8
|
+
hash = YAML.safe_load cloudformation_yml, permitted_classes: [Date, Symbol]
|
9
9
|
if hash == false || hash.nil?
|
10
10
|
raise ParserError.new 'yml empty'
|
11
11
|
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.6.
|
4
|
+
version: 0.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Kascic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -199,9 +199,9 @@ licenses:
|
|
199
199
|
metadata:
|
200
200
|
bug_tracker_uri: https://github.com/stelligent/cfn-model/issues
|
201
201
|
changelog_uri: https://github.com/stelligent/cfn-model/releases
|
202
|
-
documentation_uri: https://www.rubydoc.info/gems/cfn-model/0.6.
|
202
|
+
documentation_uri: https://www.rubydoc.info/gems/cfn-model/0.6.9
|
203
203
|
homepage_uri: https://github.com/stelligent/cfn-model
|
204
|
-
source_code_uri: https://github.com/stelligent/cfn-model/tree/v0.6.
|
204
|
+
source_code_uri: https://github.com/stelligent/cfn-model/tree/v0.6.9
|
205
205
|
post_install_message:
|
206
206
|
rdoc_options: []
|
207
207
|
require_paths:
|