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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fb303663cf48453351fce8897acd8a0774fd70821cb16dd1aee50dc41181490
4
- data.tar.gz: 10ae64c13c6f538128be6623f83d43f14859ebd58765a4318f671e9383be1f68
3
+ metadata.gz: 35b41b356e026ef8b7597a74a5dc56a3ae1eeb45e5fb222500eb7d0d9846a6b4
4
+ data.tar.gz: 1b58334686de2ed7c1b25c5a9cd79db33f484ef00d37828ef9720e0a15be8727
5
5
  SHA512:
6
- metadata.gz: 3c96096a5107924376113ef996c80b17509bf740cc6ca879620d6807c5b4f0259d01a7444c67dae5ef44b3b350f427fac536fd6f88770331d06b50ee6360fe54
7
- data.tar.gz: 54381f188c0dcd69cc2ff0a271b4a3d6dc0b763a11b978287da2eb69d3d44be44846f9074dd246eefcd7b8b98a685c85d159d27a6f882b585a72574921a60e62
6
+ metadata.gz: 2bd730055d08800f0ef9e927bfcd3751b2837688428e28a45dfb7d84ab088cdee05c7cad3f2e7c8a1e18929afda4622726b91386bf7b8094cc3291d00b319b0d
7
+ data.tar.gz: dfbf00132a62886dac073e01c7cffc2be21b9fcad0093fe6c21676dc04512d3eca0a00c3495e7419ff9dbb2a4dff1034fc64e654d7aff9c331d8efa8efd66c30
data/README.md CHANGED
File without changes
@@ -1,3 +1,3 @@
1
1
  module CfnToml
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  end
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['parameters'].map do |k,v|
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['parameters'].map do |k,v|
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.6
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: 2021-01-15 00:00:00.000000000 Z
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.2
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: []