cfn-model 0.6.8 → 0.6.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 172517e2e8a7b2806737ca0075e8ea4eb0c1032b437956f4d9e0631decc0915f
4
- data.tar.gz: 39c9ec8fa931f309cf07d70298be30a0fa25444e2d4785ee295e90da539656b0
3
+ metadata.gz: 58d4ab0957a1e2ce81106501a32097f6a9dd3a4dba312aa1778437175432ad4c
4
+ data.tar.gz: 0f0150cfeffa848f54692db4f52e4d00375247988ea1d3b0c528846fb93c8db3
5
5
  SHA512:
6
- metadata.gz: 1f9c56d1c4ca8fda37efe1c459239a15b1a62ccd22aa233955c94f85ac918db6d2d0d5ced0e37578c0549da2ebd502296935702cd8cfbadef2ed01c28eff0ced
7
- data.tar.gz: 745cfa7e2eea93b915ed17ffd06abe3621de48b2752b8b09900ff5e4099efd067b25fdf4528276dbe86105a2c9da27695ebbe49902a56139e586ae716783a3b3
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.8
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-07 00:00:00.000000000 Z
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.8
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.8
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: