cfn-toml 1.0.8 → 1.0.10

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: e00e25360cc6daac82cf8948a54773cb6336a343885d4f4c9b6d92c22d26cdfd
4
- data.tar.gz: 601f83414b46d373c645e26b635704566a82bcc203f4f333088e14426b8e1b85
3
+ metadata.gz: 46739e6edd56b42ca3c92a8cdf768bf9469acac67d0ea61473dcaa48baddfb0a
4
+ data.tar.gz: aa7591f7169127e49da07f45fa0f653b1d9e7d4d61b0202f465d3857c18e41e6
5
5
  SHA512:
6
- metadata.gz: c1e6bcf2a73ac3d6f1e87396687225eb03ff3513b9f2ec1e41f831e6d3dfcc5b1d76663636556615b30bc40eb02d1b01453e841b5b549280acd0809a5919f98a
7
- data.tar.gz: 4010e915240b386bde01a5eb63c5e11568476363ceeeb9c0d1f4d04441528e61d18a8a5c309addc9a13c24eb4ed51872dcc4da1fa441720f85a17c3e11467497
6
+ metadata.gz: c4bc3881195a9ca3ceb54f28c0e66499c2a865942075a7f6635fb54de2de2639ef19234ad1da95d23d5bb5d815ab7863646a2614391ec1c25330512e48e7d671
7
+ data.tar.gz: ad4538766ee68e4e018a747e627553f887b419da1de98d07001d0a5dfba3b7e48518c59ddeab7353c113fb74125f0448ea96cf68da7b768e5a12eeeb8dba0c0c
@@ -1,3 +1,3 @@
1
1
  module CfnToml
2
- VERSION = '1.0.8'
2
+ VERSION = '1.0.10'
3
3
  end
data/lib/cfn_toml.rb CHANGED
@@ -9,7 +9,7 @@ module CfnToml
9
9
  stackname ||= 'stackname'
10
10
 
11
11
  toml_path = File.dirname toml_filepath
12
- FileUtils.mkpath(toml_path) unless File.exists?(toml_path)
12
+ FileUtils.mkpath(toml_path) unless File.exist?(toml_path)
13
13
 
14
14
  File.open(toml_filepath, "w") do |f|
15
15
  f.write "[deploy]\n"
@@ -22,7 +22,7 @@ module CfnToml
22
22
  end
23
23
 
24
24
  def self.init_parameters f, cfn_filepath
25
- return unless File.exists?(cfn_filepath)
25
+ return unless File.exist?(cfn_filepath)
26
26
  contents = File.open(cfn_filepath).read
27
27
  hash = YAML.load(contents)
28
28
  return unless hash.key?('Parameters')
@@ -50,6 +50,7 @@ module CfnToml
50
50
 
51
51
  def self.params toml_filepath, params_version, parameters_name='parameters'
52
52
  data = TomlRB.load_file(toml_filepath)
53
+ parameters_name ||= 'parameters'
53
54
  if params_version == 'v1'
54
55
  data[parameters_name].map do |k,v|
55
56
  "ParameterKey=#{k},ParameterValue=#{v}"
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.8
4
+ version: 1.0.10
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: 2022-07-17 00:00:00.000000000 Z
11
+ date: 2023-04-30 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.4
73
- signing_key:
72
+ rubygems_version: 3.4.6
73
+ signing_key:
74
74
  specification_version: 4
75
75
  summary: Configuration file parsing for CFN Bash scripting
76
76
  test_files: []