cfndsl 0.5.1.pre → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7a29d95cc06fae6a511c7ec6dab5ecc71007c8d4
4
- data.tar.gz: ad02d627c8c8a7aac5012fb602f06e9d0a0daf31
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTc0OWVjZDU4NjVhMWUxOTViMTIyMmQyOWYxOWY0YzU3ZjY1NmMyMw==
5
+ data.tar.gz: !binary |-
6
+ NGVlNjA0YTlkMTQ3MTA1YjlhMjYwMDFlYzQzMGI5YTcwNTlmOTU3ZQ==
5
7
  SHA512:
6
- metadata.gz: 61ae7bbebd1de112f8dd453e98b6fc3ecb2070f921aa6ff5172ae71598ff534ecb739d136873df4747f37eaee0b618905c180db84b5be78d55b91899ed6fa82d
7
- data.tar.gz: 6aebe8469fc1d5499dc5cec178544f146137082577a198ebce2bf911af1833c47e14acac94fa95d8d75a7135d0a8f9d551cd3012b4ed02dc89027bec228c122d
8
+ metadata.gz: !binary |-
9
+ MWZlYjIwMTJhMGE1Y2UyZTRmMDQwMTA3NTBjMjE3ZGFkOGZlOGRjYzJkYjdi
10
+ YzA5ZGI1N2E3MDFlZGM1YzQ3ZDFjNTIzMjRkODJlYzc4NGM2MGM5ZDkyZWIx
11
+ OGE1MmM0NmMxYjdkZTQ4YWFjOTI5NzIyZjc3YTFiMTgyYzk5YTQ=
12
+ data.tar.gz: !binary |-
13
+ MzJkNTA4NWNmZmRiMGNkMjY3NjRiYjNkM2E5MTI3ODk2Nzc0NjQ3YzI1Mjlk
14
+ Nzk0YmNkZDUxN2VjNDA0N2MwOTEzNjQ2NzZhMTA2ZmQ3NjBiOGY3MWVjNGVi
15
+ NTliNDZmM2ZkMTM1MzA0NjlkYzQxMzk2NTI4ODc0ZDhlZWIxZWE=
data/README.md CHANGED
@@ -91,6 +91,8 @@ There is a more detailed example in the samples directory. The file
91
91
  "autoscale.template" is one of the standard Amazon sample templates.
92
92
  "autoscale.rb" generates an equivalent template file.
93
93
 
94
+ There's also a larger set of examples available at [cfndsl_examples](https://github.com/neillturner/cfndsl_examples) thanks to @neillturner.
95
+
94
96
  ## Command Line Options
95
97
 
96
98
  The cfndsl command line program now accepts some command line options.
data/Rakefile CHANGED
@@ -33,7 +33,7 @@ task :bump, :type do |_, args|
33
33
  puts "Bumping gem from version #{CfnDsl::VERSION} to #{version} as a '#{type.capitalize}' release"
34
34
 
35
35
  contents = File.read version_path
36
- updated_contents = contents.gsub(/([0-9\.]+)/, version)
36
+ updated_contents = contents.gsub(/'[0-9\.]+'/, "'#{version}'")
37
37
  File.write(version_path, updated_contents)
38
38
 
39
39
  puts 'Commiting version update'
@@ -24,7 +24,7 @@ module CfnDsl
24
24
  def generate(opts)
25
25
  log(opts)
26
26
  outputter(opts) do |output|
27
- output.puts model(opts[:filename])
27
+ output.puts cfndsl_opts[:pretty] ? JSON.pretty_generate(model(opts[:filename])) : model(opts[:filename]).to_json
28
28
  end
29
29
  end
30
30
 
@@ -40,7 +40,7 @@ module CfnDsl
40
40
  def model(filename)
41
41
  raise "#{filename} doesn't exist" unless File.exist?(filename)
42
42
  verbose.puts("using extras #{extra}") if verbose
43
- CfnDsl.eval_file_with_extras(filename, extra, verbose).to_json
43
+ CfnDsl.eval_file_with_extras(filename, extra, verbose)
44
44
  end
45
45
 
46
46
  def extra
@@ -1,3 +1,3 @@
1
1
  module CfnDsl
2
- VERSION = '0.5.1.pre'.freeze
2
+ VERSION = '0.5.1'.freeze
3
3
  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.5.1.pre
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
@@ -9,20 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-07 00:00:00.000000000 Z
12
+ date: 2016-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - ! '>='
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">="
25
+ - - ! '>='
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  description: DSL for creating AWS Cloudformation templates
@@ -34,10 +34,9 @@ executables:
34
34
  extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
- - ".bundle/config"
38
- - ".gitignore"
39
- - ".rubocop.yml"
40
- - ".travis.yml"
37
+ - .gitignore
38
+ - .rubocop.yml
39
+ - .travis.yml
41
40
  - Gemfile
42
41
  - LICENSE
43
42
  - README.md
@@ -100,17 +99,17 @@ require_paths:
100
99
  - lib
101
100
  required_ruby_version: !ruby/object:Gem::Requirement
102
101
  requirements:
103
- - - ">="
102
+ - - ! '>='
104
103
  - !ruby/object:Gem::Version
105
104
  version: '0'
106
105
  required_rubygems_version: !ruby/object:Gem::Requirement
107
106
  requirements:
108
- - - ">"
107
+ - - ! '>='
109
108
  - !ruby/object:Gem::Version
110
- version: 1.3.1
109
+ version: '0'
111
110
  requirements: []
112
111
  rubyforge_project:
113
- rubygems_version: 2.0.14
112
+ rubygems_version: 2.4.5
114
113
  signing_key:
115
114
  specification_version: 4
116
115
  summary: AWS Cloudformation DSL
data/.bundle/config DELETED
@@ -1,2 +0,0 @@
1
- ---
2
- BUNDLE_JOBS: 8