cloudformation-tool 1.5.5 → 1.5.6
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: b6fe474c99b246dc7ef21cf17350a55dbee96917365b7914df003ba1c3e417b8
|
4
|
+
data.tar.gz: bddb23119b8048777a0382ba953bc99ee02be8b6424a150ba164ae71283e9c39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 623f19f7dc807cfbc55a9be2c1300b9784962d805b12051ef3b2b681a2bb3904d345881d8d684356955d36e3dfbf2c5d020581ee7214e4bc2c87d39c1904f3b5
|
7
|
+
data.tar.gz: 1f9903c01f0edf91dd61a8d6bd6d8572cab98f0ef9f6c2bd845ee47a971fde37718d3046b3b6cf3ba2af78c3d9154dd5f197157d1f585a4c55b7f273a01e3252
|
@@ -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
|
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.
|
4
|
+
version: 1.5.6
|
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-
|
11
|
+
date: 2023-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|