stack_master 2.12.0 → 2.13.0

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: 02eda4742884cf2aa48568ad0e330b375f7548f12f3077be3167bd782a51868d
4
- data.tar.gz: 6f3159eb1b681bda06e4c128d4746f05484a75f91c1a2119d9c02523f912b48f
3
+ metadata.gz: 8c0add9f29f6f809207e0b64969e084172dc194c77ae1636ceb073000e8020b4
4
+ data.tar.gz: f5e2a4a3a84a55a74bc29525067691a847f24b9c4256108d3ec9c086cd82ab6a
5
5
  SHA512:
6
- metadata.gz: 4670acd897af5bd58083f65187c23c7e7add969ca1d906899ce18065bcc24287d78854bd67baa82a1225dab4277b3392fa03cc3a5ffe49c13cffd3665ca2ea99
7
- data.tar.gz: 8ea47d21747c13e9685f0f5cacbb12663c28df649823981c5e1a94e982bc7798bd2b93828be921e7e2e4267e3c3aa3d1f246aeb8f99f0eb91d34d2ce24594263
6
+ metadata.gz: addcb8147d827d7f403018c72a44a4fb1ca1d5536e7d74abe0c32e3645c1eded4278c761d7bb48d861e2857d7cd64ae9e61d69fb70d560f1aa44b79672ccc178
7
+ data.tar.gz: 98d47ddfcc3e928f55d7946d50f4bab280c04bb4d0eb0b8aade5616c1274ab542755ef616fdec3ccacce739832300bf202ba84e2d22e213f11f9ba62b91b349d
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![License MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/envato/stack_master/blob/master/LICENSE.md)
4
4
  [![Gem Version](https://badge.fury.io/rb/stack_master.svg)](https://badge.fury.io/rb/stack_master)
5
- [![Build Status](https://travis-ci.org/envato/stack_master.svg?branch=master)](https://travis-ci.org/envato/stack_master)
5
+ [![Build Status](https://github.com/envato/stack_master/workflows/tests/badge.svg?branch=master)](https://github.com/envato/stack_master/actions?query=workflow%3Atests+branch%3Amaster)
6
6
 
7
7
  StackMaster is a CLI tool to manage [CloudFormation](https://aws.amazon.com/cloudformation/) stacks, with the following features:
8
8
 
@@ -5,7 +5,7 @@ module StackMaster
5
5
  include Commander::UI
6
6
 
7
7
  def perform
8
- puts(proposed_stack.template_body)
8
+ StackMaster.stdout.puts(proposed_stack.template_body)
9
9
  end
10
10
 
11
11
  private
@@ -2,14 +2,15 @@ module StackMaster::TemplateCompilers
2
2
  class Cfndsl
3
3
  def self.require_dependencies
4
4
  require 'cfndsl'
5
+ require 'json'
5
6
  end
6
7
 
7
8
  def self.compile(template_dir, template, compile_time_parameters, _compiler_options = {})
8
- CfnDsl.disable_binding
9
9
  CfnDsl::ExternalParameters.defaults.clear # Ensure there's no leakage across invocations
10
10
  CfnDsl::ExternalParameters.defaults(compile_time_parameters.symbolize_keys)
11
11
  template_file_path = File.join(template_dir, template)
12
- ::CfnDsl.eval_file_with_extras(template_file_path).to_json
12
+ json_hash = ::CfnDsl.eval_file_with_extras(template_file_path).as_json
13
+ JSON.pretty_generate(json_hash)
13
14
  end
14
15
 
15
16
  StackMaster::TemplateCompiler.register(:cfndsl, self)
@@ -22,7 +22,7 @@ module StackMaster::TemplateCompilers
22
22
  sparkle_template.compile_state = create_state(definitions, compile_time_parameters)
23
23
  end
24
24
 
25
- JSON.pretty_generate(sparkle_template)
25
+ JSON.pretty_generate(sparkle_template.dump)
26
26
  end
27
27
 
28
28
  private
@@ -1,3 +1,3 @@
1
1
  module StackMaster
2
- VERSION = "2.12.0"
2
+ VERSION = "2.13.0"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.0
4
+ version: 2.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Hodgkiss
8
8
  - Glen Stampoultzis
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-10-22 00:00:00.000000000 Z
12
+ date: 2021-02-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -371,16 +371,16 @@ dependencies:
371
371
  name: cfndsl
372
372
  requirement: !ruby/object:Gem::Requirement
373
373
  requirements:
374
- - - "<"
374
+ - - "~>"
375
375
  - !ruby/object:Gem::Version
376
- version: '1.0'
376
+ version: '1'
377
377
  type: :runtime
378
378
  prerelease: false
379
379
  version_requirements: !ruby/object:Gem::Requirement
380
380
  requirements:
381
- - - "<"
381
+ - - "~>"
382
382
  - !ruby/object:Gem::Version
383
- version: '1.0'
383
+ version: '1'
384
384
  - !ruby/object:Gem::Dependency
385
385
  name: multi_json
386
386
  requirement: !ruby/object:Gem::Requirement
@@ -441,16 +441,22 @@ dependencies:
441
441
  name: cfn-nag
442
442
  requirement: !ruby/object:Gem::Requirement
443
443
  requirements:
444
- - - "~>"
444
+ - - ">="
445
445
  - !ruby/object:Gem::Version
446
446
  version: 0.6.7
447
+ - - "<"
448
+ - !ruby/object:Gem::Version
449
+ version: 0.8.0
447
450
  type: :runtime
448
451
  prerelease: false
449
452
  version_requirements: !ruby/object:Gem::Requirement
450
453
  requirements:
451
- - - "~>"
454
+ - - ">="
452
455
  - !ruby/object:Gem::Version
453
456
  version: 0.6.7
457
+ - - "<"
458
+ - !ruby/object:Gem::Version
459
+ version: 0.8.0
454
460
  description: ''
455
461
  email:
456
462
  - steve@hodgkiss.me
@@ -557,9 +563,9 @@ licenses:
557
563
  metadata:
558
564
  bug_tracker_uri: https://github.com/envato/stack_master/issues
559
565
  changelog_uri: https://github.com/envato/stack_master/blob/master/CHANGELOG.md
560
- documentation_uri: https://www.rubydoc.info/gems/stack_master/2.12.0
561
- source_code_uri: https://github.com/envato/stack_master/tree/v2.12.0
562
- post_install_message:
566
+ documentation_uri: https://www.rubydoc.info/gems/stack_master/2.13.0
567
+ source_code_uri: https://github.com/envato/stack_master/tree/v2.13.0
568
+ post_install_message:
563
569
  rdoc_options: []
564
570
  require_paths:
565
571
  - lib
@@ -574,8 +580,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
574
580
  - !ruby/object:Gem::Version
575
581
  version: '0'
576
582
  requirements: []
577
- rubygems_version: 3.1.2
578
- signing_key:
583
+ rubygems_version: 3.2.8
584
+ signing_key:
579
585
  specification_version: 4
580
586
  summary: StackMaster is a sure-footed way of creating, updating and keeping track
581
587
  of Amazon (AWS) CloudFormation stacks.