cloudformation-tool 1.5.5 → 1.5.7

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: a68289f1342a575b7cbc5dc357d7f90e05c43b03282b2292b8098ce11f1be6a6
4
- data.tar.gz: 376dd9a25c1ea51db7b50bd5221892a525c2736d7d045b2ff4e34bf0f9e051a7
3
+ metadata.gz: 54883f0b3b73d46c3c1713a195b9890e44d45b0f6518bc0af02a05723ae98639
4
+ data.tar.gz: de8e95b100a2416ce91466d23ca4b409bcce5ed0c49392c1035113be5d8a3384
5
5
  SHA512:
6
- metadata.gz: efec7d22296cb8dc4bcb936521e0473265d91cd75cff225573a7386184a00c7434d2fc8629ec30e58f272681204cd896b2ccd8dda1a8c596a37e3ad7e5e91360
7
- data.tar.gz: bdbf9385bf2d15fe29bc0b80ba02ecda0bea8c3917d799c78c24c152eee0efffa3ccd96bfb7a9bfb6ed897c438746eb2e62d58330327024ae687ce7808c87ea2
6
+ metadata.gz: 95940c9d47d1ae01da4f6f34bd7ed78f40a5b3888037f768dfdaf84febeab5755f56ac78aecd4ab20e3e4f2e6f2dffa01048509824d096cb9ff5618cccd22bcc
7
+ data.tar.gz: 919a01d74e3f9da20933c8b2efd3dc5ea3aac7d78a3ac7f9e540ead9a9e037a857e35b0d695f0c4cdaef0503b02e28c223758c27dd3918672b1153c912a52f17
@@ -37,7 +37,7 @@ module CloudFormationTool
37
37
 
38
38
  def get_params
39
39
  params = if param_file
40
- yaml = YAML.load(read_param_file param_file).to_h
40
+ yaml = YAML.load(read_param_file(param_file), filename: param_file, permitted_classes: [Date, Symbol]).to_h
41
41
  if param_key
42
42
  raise "Missing parameter section '#{param_key}' in '#{param_file}'!" unless yaml[param_key].is_a? Hash
43
43
  yaml[param_key]
@@ -57,4 +57,4 @@ module CloudFormationTool
57
57
 
58
58
  end
59
59
  end
60
- end
60
+ end
@@ -26,7 +26,7 @@ module CloudFormationTool
26
26
  # remove comments because white space seen between comments can seriously psych Psych
27
27
  text.gsub!(/^#.*\n/,'')
28
28
  text = fixShorthand(text)
29
- @data = YAML.load(text).to_h
29
+ @data = YAML.load(text, filename: @path, permitted_classes: [Date, Symbol]).to_h
30
30
  rescue Psych::SyntaxError => e
31
31
  e.message =~ /line (\d+) column (\d+)/
32
32
  lines = text.split "\n"
@@ -12,7 +12,7 @@ module CloudFormationTool
12
12
  @path = path
13
13
  log "Loading #{path}"
14
14
  begin
15
- @initfile = YAML.load(File.read(path)).to_h
15
+ @initfile = YAML.load(File.read(path), filename: @path, permitted_classes: [Date, Symbol]).to_h
16
16
  rescue Errno::ENOENT => e
17
17
  raise CloudFormationTool::Errors::AppError.new("Error reading #{@path}: " + e.message)
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module CloudFormationTool
2
- VERSION = '1.5.5'
2
+ VERSION = '1.5.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-05 00:00:00.000000000 Z
11
+ date: 2023-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake