stackup 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: '087f9a9523b7ae169b2e7a7ab571b6d98eda3877'
4
- data.tar.gz: 1510497a6fd492629bb92bb9e78c6a5574814157
2
+ SHA256:
3
+ metadata.gz: 8b00856895bb8013972d2861813cf8260203808afb4ee4a4a9e3e861adcf7c33
4
+ data.tar.gz: 3c4abaa4fdceb95ffee76134d2b1dd189149fdc5750b3ddd2a64dd16ca44567c
5
5
  SHA512:
6
- metadata.gz: 4ab6ae904c7fd3c210e5ac99d00b4e5263e41abdfa65226777f2a19e34f492c1ca3be12ce5197ee6eea5bbf36495f3f5b056e5a4396685feca37e7520fe3bca5
7
- data.tar.gz: 20f2ab587cdaaab1b52209ac7b2c5551d8cd7339935047c4dc473eb737415ac02d28ca309e41ce7c8bda7d1213e8e65c1ebcb145f9b763bbc0a90a6a1c846ef2
6
+ metadata.gz: eacb2f2acc276c29507ab0fc221a0205498baed30244b6c0e0480f86f2788d2c3fb0a63e937d8e7add1aee23dd25d36dbfb182e2cae34b2a88841055d393d62d
7
+ data.tar.gz: 9454cc5bbfeac0f94ab398b8a2bc48e3d0fa2a4555fab3ebdfd9e3235b51776edf915a886b42652ee7f72d24d5e8f912230cb37c061023c07d90e0d66d76b60d
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES
2
2
 
3
+ ## 1.4.2 (2019-01-21)
4
+
5
+ * Fix #64: Create and Update functions should not mutate the options parameter
6
+
3
7
  ## 1.4.1 (2018-11-07)
4
8
 
5
9
  * Fix: diff method had a new required value in v1.4.0. This now defaults to nil in the method signature.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 realestate.com.au
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -281,6 +281,7 @@ module Stackup
281
281
  end
282
282
 
283
283
  def create(options)
284
+ options = options.dup
284
285
  options[:stack_name] = name
285
286
  options.delete(:stack_policy_during_update_body)
286
287
  options.delete(:stack_policy_during_update_url)
@@ -290,6 +291,7 @@ module Stackup
290
291
  end
291
292
 
292
293
  def update(options)
294
+ options = options.dup
293
295
  options.delete(:disable_rollback)
294
296
  options.delete(:on_failure)
295
297
  options.delete(:timeout_in_minutes)
@@ -1,5 +1,5 @@
1
1
  module Stackup
2
2
 
3
- VERSION = "1.4.1".freeze
3
+ VERSION = "1.4.2".freeze
4
4
 
5
5
  end
@@ -644,7 +644,7 @@ describe Stackup::Stack do
644
644
  let(:template) { "stack template" }
645
645
 
646
646
  def create_or_update
647
- stack.create_or_update(:template_body => template)
647
+ stack.create_or_update(:template_body => template, :disable_rollback => true)
648
648
  end
649
649
 
650
650
  let(:describe_stacks_responses) do
@@ -667,6 +667,14 @@ describe Stackup::Stack do
667
667
  create_or_update
668
668
  expect(cf_client).to have_received(:delete_stack)
669
669
  expect(cf_client).to have_received(:create_stack)
670
+
671
+ expected_args = {
672
+ :stack_name => stack_name,
673
+ :template_body => template,
674
+ :disable_rollback => true
675
+ }
676
+ expect(cf_client).to have_received(:create_stack)
677
+ .with(hash_including(expected_args))
670
678
  end
671
679
 
672
680
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Williams
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-08 00:00:00.000000000 Z
12
+ date: 2019-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-cloudformation
@@ -91,6 +91,7 @@ extensions: []
91
91
  extra_rdoc_files: []
92
92
  files:
93
93
  - CHANGES.md
94
+ - LICENSE.md
94
95
  - README.md
95
96
  - bin/stackup
96
97
  - lib/stackup.rb
@@ -134,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
135
  version: '0'
135
136
  requirements: []
136
137
  rubyforge_project:
137
- rubygems_version: 2.6.14.1
138
+ rubygems_version: 2.7.6
138
139
  signing_key:
139
140
  specification_version: 4
140
141
  summary: Manage CloudFormation stacks