cfndsl 0.12.3 → 0.12.4

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
  SHA1:
3
- metadata.gz: 11a24275b199a3e9e7db8223545a146b51584caf
4
- data.tar.gz: b686306d573e6942af7fca0c41efad0d4db76348
3
+ metadata.gz: 63fc0f48fe555a60c09f4ae226387137e85a8ec3
4
+ data.tar.gz: ddfbb7ebdb356e1fb0a0e69f5119065a7461aa3c
5
5
  SHA512:
6
- metadata.gz: 208f04fdc6d5cac3d456d03351d88ab765ec4a0faa3b83eda27fba48b6dba1cd9de06d4a3d8811e22aa5f8f5f6735897cedafaff39378a646c33d860be5f4feb
7
- data.tar.gz: d001b353c892e2a9beb007803aee3d6dc2dcf0ba70add6d749a48b3044a49c9eb84c67f214d4d2c3f81ffd0587cc990c392624650f74328ed745638e9055b4cc
6
+ metadata.gz: d47120229e2b887fe184809c86d7be31b708a951d75f63d5cf9a260e5226ea107dd6403f6c4d12a35eb8e4a7bd6638269585ea8eac74095295577369e0330e30
7
+ data.tar.gz: 2f305383b1299229e723f998e1e0fb57ce3aa8f7e32f3820c15d1c0ab7461dbd7fdd4601c163ce235db891665f2f0fb61c9171ff2b2c4a4edc3b3214152e8169
data/Rakefile CHANGED
@@ -23,7 +23,7 @@ YamlLint::RakeTask.new do |t|
23
23
  )
24
24
  end
25
25
 
26
- task default: [:spec, :rubocop, :yamllint]
26
+ task default: %i(spec rubocop yamllint)
27
27
 
28
28
  task :bump, :type do |_, args|
29
29
  type = args[:type].downcase
data/bin/cfndsl CHANGED
@@ -70,11 +70,11 @@ verbose = options[:verbose] && STDERR
70
70
  if options[:disable_binding]
71
71
  CfnDsl.disable_binding
72
72
  else
73
- STDERR.puts <<-MSG
74
- The creation of constants as config is deprecated!
75
- Please switch to the #external_parameters method within your templates to access variables
76
- See https://github.com/stevenjack/cfndsl/issues/170
77
- Use the --disable-binding flag to suppress this message
73
+ STDERR.puts <<-MSG.gsub(/^\s*/, '')
74
+ The creation of constants as config is deprecated!
75
+ Please switch to the #external_parameters method within your templates to access variables
76
+ See https://github.com/stevenjack/cfndsl/issues/170
77
+ Use the --disable-binding flag to suppress this message
78
78
  MSG
79
79
  end
80
80
 
data/cfndsl.gemspec CHANGED
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'cfndsl/version'
@@ -1,4 +1,8 @@
1
1
  Resources:
2
+ "AWS::SSM::Document":
3
+ Properties:
4
+ Content: JSON
5
+ DocumentType: String
2
6
  "AWS::Serverless::API":
3
7
  Properties:
4
8
  StageName: String
@@ -1,3 +1,3 @@
1
1
  module CfnDsl
2
- VERSION = '0.12.3'.freeze
2
+ VERSION = '0.12.4'.freeze
3
3
  end
@@ -92,7 +92,7 @@ describe CfnDsl::ExternalParameters do
92
92
  end
93
93
  end
94
94
 
95
- [:fetch, :keys, :values, :each_pair].each do |meth|
95
+ %i(fetch keys values each_pair).each do |meth|
96
96
  context "##{meth}" do
97
97
  it "delegates the method #{meth} to the underlying parameters" do
98
98
  expect(subject.parameters).to receive(meth)
data/spec/names_spec.rb CHANGED
@@ -9,7 +9,7 @@ describe CfnDsl do
9
9
  it 'yields symbol method names when called with a block' do
10
10
  results = []
11
11
  described_class.method_names('foo') { |name| results << name }
12
- expect(results).to eq([:foo, :Foo])
12
+ expect(results).to eq(%i(foo Foo))
13
13
  end
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfndsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-12 00:00:00.000000000 Z
12
+ date: 2017-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler