cfn-toml 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -0
- data/lib/cfn_toml/version.rb +1 -1
- data/lib/cfn_toml.rb +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35b41b356e026ef8b7597a74a5dc56a3ae1eeb45e5fb222500eb7d0d9846a6b4
|
4
|
+
data.tar.gz: 1b58334686de2ed7c1b25c5a9cd79db33f484ef00d37828ef9720e0a15be8727
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bd730055d08800f0ef9e927bfcd3751b2837688428e28a45dfb7d84ab088cdee05c7cad3f2e7c8a1e18929afda4622726b91386bf7b8094cc3291d00b319b0d
|
7
|
+
data.tar.gz: dfbf00132a62886dac073e01c7cffc2be21b9fcad0093fe6c21676dc04512d3eca0a00c3495e7419ff9dbb2a4dff1034fc64e654d7aff9c331d8efa8efd66c30
|
data/README.md
CHANGED
File without changes
|
data/lib/cfn_toml/version.rb
CHANGED
data/lib/cfn_toml.rb
CHANGED
@@ -48,14 +48,14 @@ module CfnToml
|
|
48
48
|
data[namespace][key]
|
49
49
|
end
|
50
50
|
|
51
|
-
def self.params toml_filepath, params_version
|
51
|
+
def self.params toml_filepath, params_version, parameters_name='parameters'
|
52
52
|
data = TomlRB.load_file(toml_filepath)
|
53
53
|
if params_version == 'v1'
|
54
|
-
data[
|
54
|
+
data[parameters_name].map do |k,v|
|
55
55
|
"ParameterKey=#{k},ParameterValue=#{v}"
|
56
56
|
end.join(' ')
|
57
57
|
elsif params_version == 'v2'
|
58
|
-
data[
|
58
|
+
data[parameters_name].map do |k,v|
|
59
59
|
"#{k}=#{v}"
|
60
60
|
end.join(' ')
|
61
61
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfn-toml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Brown
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|
@@ -54,7 +54,7 @@ homepage: https://github.com/teacherseat/cfn-toml
|
|
54
54
|
licenses:
|
55
55
|
- MIT
|
56
56
|
metadata: {}
|
57
|
-
post_install_message:
|
57
|
+
post_install_message:
|
58
58
|
rdoc_options: []
|
59
59
|
require_paths:
|
60
60
|
- lib
|
@@ -69,8 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.1.
|
73
|
-
signing_key:
|
72
|
+
rubygems_version: 3.1.4
|
73
|
+
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Configuration file parsing for CFN Bash scripting
|
76
76
|
test_files: []
|