stackup 1.3.1 → 1.4.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
  SHA1:
3
- metadata.gz: 79c44228b207109b4fc970baa4078e7021e2c963
4
- data.tar.gz: 2bdb3b3da63d828f7a8fb902422c7eb7c879787f
3
+ metadata.gz: d4dafb5556c41fc05f6baa311023c67d244a9ce6
4
+ data.tar.gz: e3194ef95468ddec9d106e4090f19da42434da5b
5
5
  SHA512:
6
- metadata.gz: 4fc4c397ddb16a2f72236b83917cfee8d52632fb297461135c20cd9e0609ba2aa88966ad420e346c0de66f2d9477151d2d5459dfbceac4f51c57437d32d35b98
7
- data.tar.gz: 6466ea4ce128111442b8861af45878638b20ab5c01ca884b235da9a71dc933b1e5ca492685068894c6da4942fd451a3cf1540a7f1176df3d64f4ba2ea2ad60b1
6
+ metadata.gz: 113a2296b9409c4beae7f624ef0d08818963a3a52e77ee328a66ac83ede3e1a054c784ef6403b741526239bf982d708b9f5c14202240410d9aca01978596cf45
7
+ data.tar.gz: a82ae045726eafabcdff86eb3cfa7a381ea5e49188cd3ef50a4e53de599d14f329e3fd45f5dd93a63cbe4f3adbc9eab0b9f2c9a2d2e0236c6341ccd49d2e68e6
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ # CHANGES
2
+
3
+ ## 1.4.0 (2018-11-01)
4
+
5
+ * Add `--context-lines` option to `diff`.
6
+ * Fix #60: requiring all of "aws-sdk-resources" causes slow gem loading.
7
+
1
8
  ## 1.3.1 (2018-06-05)
2
9
 
3
10
  * Dependency upgrades. Notably ruby 2.5 in the docker release, and aws-sdk v3
data/README.md CHANGED
@@ -109,10 +109,12 @@ You may specify `-p` multiple times; `stackup` will read and merge all the files
109
109
  -p defaults.json \
110
110
  -p overrides.json
111
111
 
112
- Or, you can specify parameters on the command-line, via `-o`:
112
+ Or, you can specify one or more override parameters on the command-line, using `-o` with `-p`:
113
113
 
114
114
  $ stackup myapp-test up -t template.json \
115
- -o IndexDoc=index.html
115
+ -p defaults.json \
116
+ -o IndexDoc=index-override.html
117
+ -o ContentDoc=content-override.html
116
118
 
117
119
  ### YAML support
118
120
 
@@ -347,6 +347,8 @@ Clamp do
347
347
 
348
348
  option "--diff-format", "FORMAT", "'text', 'color', or 'html'", :default => "color"
349
349
 
350
+ option ["-C", "--context-lines"], "LINES", "number of lines of context to show", :default => 10_000
351
+
350
352
  option ["-t", "--template"], "FILE", "template source",
351
353
  :attribute_name => :template_source,
352
354
  &Stackup::Source.method(:new)
@@ -373,7 +375,7 @@ Clamp do
373
375
  planned["Tags"] = tag_source.data.sort.to_h
374
376
  end
375
377
  signal_usage_error "specify '--template' or '--parameters'" if planned.empty?
376
- puts differ.diff(current, planned)
378
+ puts differ.diff(current, planned, context_lines)
377
379
  end
378
380
 
379
381
  private
@@ -17,10 +17,10 @@ module Stackup
17
17
 
18
18
  include Utils
19
19
 
20
- def diff(existing_data, pending_data)
20
+ def diff(existing_data, pending_data, context_lines)
21
21
  existing = format(normalize_data(existing_data)) + "\n"
22
22
  pending = format(normalize_data(pending_data)) + "\n"
23
- diff = Diffy::Diff.new(existing, pending).to_s(diff_style)
23
+ diff = Diffy::Diff.new(existing, pending, context: context_lines).to_s(diff_style)
24
24
  diff unless diff =~ /\A\s*\Z/
25
25
  end
26
26
 
@@ -1,4 +1,4 @@
1
- require "aws-sdk-core"
1
+ require "aws-sdk-cloudformation"
2
2
  require "stackup/stack"
3
3
 
4
4
  module Stackup
@@ -1,4 +1,3 @@
1
- require "aws-sdk-core"
2
1
  require "open-uri"
3
2
  require "stackup/stack"
4
3
 
@@ -1,4 +1,4 @@
1
- require "aws-sdk-resources"
1
+ require "aws-sdk-cloudformation"
2
2
  require "logger"
3
3
  require "multi_json"
4
4
  require "stackup/change_set"
@@ -1,4 +1,4 @@
1
- require "aws-sdk-core"
1
+ require "aws-sdk-cloudformation"
2
2
 
3
3
  module Stackup
4
4
 
@@ -1,5 +1,5 @@
1
1
  module Stackup
2
2
 
3
- VERSION = "1.3.1".freeze
3
+ VERSION = "1.4.0".freeze
4
4
 
5
5
  end
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- require "aws-sdk-resources"
3
+ require "aws-sdk-cloudformation"
4
4
  require "securerandom"
5
5
  require "stackup/stack_watcher"
6
6
 
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.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Williams
@@ -9,36 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-05 00:00:00.000000000 Z
12
+ date: 2018-11-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: aws-sdk-core
15
+ name: aws-sdk-cloudformation
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '3.0'
20
+ version: '1.6'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '3.0'
28
- - !ruby/object:Gem::Dependency
29
- name: aws-sdk-resources
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: '3.0'
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
40
- - !ruby/object:Gem::Version
41
- version: '3.0'
27
+ version: '1.6'
42
28
  - !ruby/object:Gem::Dependency
43
29
  name: clamp
44
30
  requirement: !ruby/object:Gem::Requirement
@@ -148,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
134
  version: '0'
149
135
  requirements: []
150
136
  rubyforge_project:
151
- rubygems_version: 2.6.14.1
137
+ rubygems_version: 2.6.13
152
138
  signing_key:
153
139
  specification_version: 4
154
140
  summary: Manage CloudFormation stacks