opsicle 2.14.0 → 2.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opsicle/commands/update.rb +1 -1
- data/lib/opsicle/version.rb +1 -1
- data/spec/opsicle/commands/update_spec.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a24e7ee6f36143061c3d2c101ec94f2bfa637fb6
|
4
|
+
data.tar.gz: dde3ff189d676bf6e39ebb93491e6bd493ac2325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 304be532da5f9e80cc21746b82c13050ae09ca86d37991a69775007653f5b30bbe2c9b1c44024da79cd7755ff6624a00b129f908cf5c38762482b6accee5c7d6
|
7
|
+
data.tar.gz: 444983b7e1fbdd6a803d79a6056062004d6ddc4db34aadbc04bbe087047ffe785a6a39c666e11ab756482e04dc1e6b49ae0ac2b747256ae49652c9ada4c99b75
|
@@ -32,7 +32,7 @@ module Opsicle
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def print(before, after)
|
35
|
-
diff =
|
35
|
+
diff = Hashdiff.diff(before, after)
|
36
36
|
Output.say("Changes: #{diff.size}")
|
37
37
|
Output.terminal.say(Terminal::Table.new headings: %w[Change Key Before After], rows: format_diff(diff)) if diff.size > 0
|
38
38
|
end
|
data/lib/opsicle/version.rb
CHANGED
@@ -41,13 +41,13 @@ module Opsicle
|
|
41
41
|
|
42
42
|
context "#print" do
|
43
43
|
it "should print no changes without table" do
|
44
|
-
allow(
|
44
|
+
allow(Hashdiff).to receive(:diff) { [] }
|
45
45
|
expect(Output).to receive(:say).with("Changes: 0") { nil }
|
46
46
|
expect(Output).to_not receive(:terminal)
|
47
47
|
subject.print(nil, nil)
|
48
48
|
end
|
49
49
|
it "should print changes with table" do
|
50
|
-
allow(
|
50
|
+
allow(Hashdiff).to receive(:diff) { [%w[- nyan 1], %w[+ cat 2],%w[~ taco 3 4]] }
|
51
51
|
expect(Output).to receive(:say).with("Changes: 3") { nil }
|
52
52
|
allow(Output).to receive_message_chain("terminal.say")
|
53
53
|
allow(Output).to receive_message_chain("terminal.color")
|
@@ -69,4 +69,4 @@ module Opsicle
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
72
|
-
end
|
72
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opsicle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.14.
|
4
|
+
version: 2.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Fleener
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -93,14 +93,14 @@ dependencies:
|
|
93
93
|
requirements:
|
94
94
|
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0
|
96
|
+
version: '1.0'
|
97
97
|
type: :runtime
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0
|
103
|
+
version: '1.0'
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: curses
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|