cfndsl 0.15.1 → 0.15.2

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: c9ee8ed50669bd7ee84a31d41b3d58af290f7776
4
- data.tar.gz: d8ddfc6a2e89a990995e71cea3ac2dc468120109
3
+ metadata.gz: aec8f14026c73cf30f2b15660933dd4bb4e23a8d
4
+ data.tar.gz: 45910720285f290437fe380244d6394985519a62
5
5
  SHA512:
6
- metadata.gz: 00011d3bc59e5320d82c5f4576a8fa652c7f7695c8b882b10f9f70dc5fc1d88d68cae938938efdc37e915a01b36257050b91dcb922e0b02de543eac25f5c8eb6
7
- data.tar.gz: 92ddd3f9fb8b31474da1e433e3ded46015b0c796392668c2fcf7ede45f49898d875996bcc8b11520a37e01b5aab7657581b441f736ccb1b9cc388bb5393a817e
6
+ metadata.gz: 251253ac278a5af596210327a1ee1d3bd05298b54c4cb1cc9c894532a09f16db9e66b2343aec6965072318266ec4490bea50297dfae1eddd34e50805acc3471f
7
+ data.tar.gz: 67dfc04df4c642e5ce092a097f6829f0dee63b90d56ce0113878835a121b796ba93f0132b0b98c176baabe152ae73a3fbc35f0e656a403b5e48bcc7a268b12ec
data/CHANGELOG.md CHANGED
@@ -1,7 +1,19 @@
1
1
  # Change Log
2
2
 
3
- ## [0.15.1](https://github.com/stevenjack/cfndsl/tree/0.15.1) (2017-06-20)
4
- [Full Changelog](https://github.com/stevenjack/cfndsl/compare/v0.15.0...0.15.1)
3
+ ## [0.15.2](https://github.com/stevenjack/cfndsl/tree/0.15.2) (2017-06-20)
4
+ [Full Changelog](https://github.com/stevenjack/cfndsl/compare/v0.15.1...0.15.2)
5
+
6
+ **Implemented enhancements:**
7
+
8
+ - YAML output format in RakeTask [\#300](https://github.com/stevenjack/cfndsl/issues/300)
9
+
10
+ **Merged pull requests:**
11
+
12
+ - add outformat for rake task [\#334](https://github.com/stevenjack/cfndsl/pull/334) ([gergnz](https://github.com/gergnz))
13
+ - merge ruby version fix into 1.0.0.pre branch [\#333](https://github.com/stevenjack/cfndsl/pull/333) ([gergnz](https://github.com/gergnz))
14
+
15
+ ## [v0.15.1](https://github.com/stevenjack/cfndsl/tree/v0.15.1) (2017-06-19)
16
+ [Full Changelog](https://github.com/stevenjack/cfndsl/compare/v0.15.0...v0.15.1)
5
17
 
6
18
  **Fixed bugs:**
7
19
 
@@ -24,7 +24,12 @@ module CfnDsl
24
24
  def generate(opts)
25
25
  log(opts)
26
26
  outputter(opts) do |output|
27
- output.puts cfndsl_opts[:pretty] ? JSON.pretty_generate(model(opts[:filename])) : model(opts[:filename]).to_json
27
+ if cfndsl_opts[:outformat] == 'yaml'
28
+ data = model(opts[:filename]).to_json
29
+ output.puts JSON.parse(data).to_yaml
30
+ else
31
+ output.puts cfndsl_opts[:pretty] ? JSON.pretty_generate(model(opts[:filename])) : model(opts[:filename]).to_json
32
+ end
28
33
  end
29
34
  end
30
35
 
@@ -1,3 +1,3 @@
1
1
  module CfnDsl
2
- VERSION = '0.15.1'.freeze
2
+ VERSION = '0.15.2'.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.15.1
4
+ version: 0.15.2
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-06-19 00:00:00.000000000 Z
12
+ date: 2017-06-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler