mpx 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mpx/cli.rb +2 -0
- data/lib/mpx/result.rb +9 -2
- data/lib/mpx/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cd9baae413edbfadbab3614c64a008ca8ea2ba38df50a47bc718a85d71181f5
|
4
|
+
data.tar.gz: 489938a7e1db43675623d8dd97a2738f3365103540ee5d93759c1649a1d2bca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c69595cc8edd4b46bcbe8ebaf8e6050955f06c7334e916c9990960bf52092ed4968a8622c3530861a8e67e8a9ddadc66f46e74e08037f9991ed99f89e014e18
|
7
|
+
data.tar.gz: 6315289aaa7942ce6cc0dc8274458fcdfae1832cb45a6bf07b2d3dbd2125c44833cb4dfd14c3bcfcff6765c20deca0858301d4384bbef1b051a0ec8709d6c275
|
data/Gemfile.lock
CHANGED
data/lib/mpx/cli.rb
CHANGED
data/lib/mpx/result.rb
CHANGED
@@ -8,12 +8,19 @@ module Mpx
|
|
8
8
|
|
9
9
|
def initialize(name, out, status)
|
10
10
|
@name = name
|
11
|
-
@out = out
|
11
|
+
@out = out.strip
|
12
12
|
@status = status
|
13
13
|
end
|
14
14
|
|
15
15
|
def to_s
|
16
|
-
|
16
|
+
out = @out.empty? ? yellow { 'No output.' } : @out
|
17
|
+
return [
|
18
|
+
cyan { @name },
|
19
|
+
cyan { '-' * @name.length },
|
20
|
+
out,
|
21
|
+
'',
|
22
|
+
status_string
|
23
|
+
].join("\n")
|
17
24
|
end
|
18
25
|
|
19
26
|
def status_string
|
data/lib/mpx/version.rb
CHANGED