stack_master 2.14.0 → 2.15.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: 1199ce77646538900036cbc5f15765e3ff709e3732214787da844e6843757339
4
- data.tar.gz: '086c79b68d70852700324fb12afd8f1f7fb3142104270ff9cd3bdb1f077e1fdd'
3
+ metadata.gz: c1adb6e5de33665d6826aeb6d76e91fabd5f9ed4d2abd3b5bf3ac10103c19dd3
4
+ data.tar.gz: 2800c76334735d08d1bbd409f7b2f2735dfbedd9141aa9559b6c631b31035e1f
5
5
  SHA512:
6
- metadata.gz: 03431d20607e92edf9c666597a7b47ebeb9bf1309c407fbbaec455f2104f8bab3e22fd645f0ee2745943eb0d7229e87d1069e603db2b1f5885c4a2f98d6c7aca
7
- data.tar.gz: b3f011fe065c9c5993ed048ed21beedac418cf7e50ba8161e3ebbd0618f8f7ce804285d86e78a25ea5098041dbea9f38248e000326ef6b218feee400bb409017
6
+ metadata.gz: 6af6d76bf7783766f2c4c8a929ed49e69c540b1e3b8969f4bc288559e99b5903a690eb5c9ad18211366a56c5c35475855a117479e6527a37c4f62f2ee50e4291
7
+ data.tar.gz: bb4c3446097ff151ef57778091082ad3c966f69f2a15a691970fef0845e9cfcc4d32e64afd3af3057c080783c7dba1d3bea67c9f449f4fd03f3970daef20c23c
@@ -42,6 +42,7 @@ module StackMaster
42
42
  def error_message(e)
43
43
  msg = "#{e.class} #{e.message}"
44
44
  msg << "\n Caused by: #{e.cause.class} #{e.cause.message}" if e.cause
45
+ msg << "\n at #{e.cause.backtrace[0..3].join("\n ")}\n ..." if e.cause && !options.trace
45
46
  if options.trace
46
47
  msg << "\n#{backtrace(e)}"
47
48
  else
@@ -50,6 +50,8 @@ module StackMaster
50
50
  end
51
51
  @region_defaults = normalise_region_defaults(config.fetch('region_defaults', {}))
52
52
  @stacks = []
53
+
54
+ raise ConfigParseError.new("Stack defaults can't be undefined") if @stack_defaults.nil?
53
55
  load_template_compilers(config)
54
56
  load_config
55
57
  end
@@ -112,6 +114,8 @@ module StackMaster
112
114
  stacks.each do |region, stacks_for_region|
113
115
  region = Utils.underscore_to_hyphen(region)
114
116
  stacks_for_region.each do |stack_name, attributes|
117
+ raise ConfigParseError.new("Entry for stack #{stack_name} has no attributes") if attributes.nil?
118
+
115
119
  stack_name = Utils.underscore_to_hyphen(stack_name)
116
120
  stack_attributes = build_stack_defaults(region).deeper_merge!(attributes).merge(
117
121
  'region' => region,
@@ -1,3 +1,3 @@
1
1
  module StackMaster
2
- VERSION = "2.14.0"
2
+ VERSION = "2.15.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.0
4
+ version: 2.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Hodgkiss
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-02-05 00:00:00.000000000 Z
12
+ date: 2024-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -579,8 +579,8 @@ licenses:
579
579
  metadata:
580
580
  bug_tracker_uri: https://github.com/envato/stack_master/issues
581
581
  changelog_uri: https://github.com/envato/stack_master/blob/master/CHANGELOG.md
582
- documentation_uri: https://www.rubydoc.info/gems/stack_master/2.14.0
583
- source_code_uri: https://github.com/envato/stack_master/tree/v2.14.0
582
+ documentation_uri: https://www.rubydoc.info/gems/stack_master/2.15.0
583
+ source_code_uri: https://github.com/envato/stack_master/tree/v2.15.0
584
584
  post_install_message:
585
585
  rdoc_options: []
586
586
  require_paths:
@@ -596,7 +596,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
596
596
  - !ruby/object:Gem::Version
597
597
  version: '0'
598
598
  requirements: []
599
- rubygems_version: 3.4.20
599
+ rubygems_version: 3.3.26
600
600
  signing_key:
601
601
  specification_version: 4
602
602
  summary: StackMaster is a sure-footed way of creating, updating and keeping track