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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d12b9c0857eab632a89c095561dfbcacf2bf865dc318debc5c4820d443843edc
4
- data.tar.gz: 539e31c91eabbf09e8c2b95f53f58b7e3b3c9bc8c4084100671ee13406d20e5b
3
+ metadata.gz: 3cd9baae413edbfadbab3614c64a008ca8ea2ba38df50a47bc718a85d71181f5
4
+ data.tar.gz: 489938a7e1db43675623d8dd97a2738f3365103540ee5d93759c1649a1d2bca2
5
5
  SHA512:
6
- metadata.gz: 4d9b7261bb2df06ea78b621c003f28bb872b5e8256e1496dd6e998b1e6180c8e4e75315e5f3a9f14eeaead9eeeba1eab59bcdf6bd68a5d77064fb1578771bed9
7
- data.tar.gz: 724021692508b66ea795207062a081d10f65a9d5ab438d0c3f60193a3696bab9f59532b8ed3570a2a971fac7bc836b54170f47a5480c445d32161560cc350e7f
6
+ metadata.gz: 4c69595cc8edd4b46bcbe8ebaf8e6050955f06c7334e916c9990960bf52092ed4968a8622c3530861a8e67e8a9ddadc66f46e74e08037f9991ed99f89e014e18
7
+ data.tar.gz: 6315289aaa7942ce6cc0dc8274458fcdfae1832cb45a6bf07b2d3dbd2125c44833cb4dfd14c3bcfcff6765c20deca0858301d4384bbef1b051a0ec8709d6c275
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mpx (0.4.0)
4
+ mpx (0.4.1)
5
5
  ansi (~> 1.5)
6
6
 
7
7
  GEM
@@ -120,6 +120,8 @@ EOF
120
120
  history.write(command.name, *request.args)
121
121
  mut.synchronize {
122
122
  puts result
123
+ puts
124
+ puts
123
125
  }
124
126
  end
125
127
  end.map(&:join)
@@ -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
- return [cyan { @name }, @out.strip, status_string].join("\n")
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
@@ -1,3 +1,3 @@
1
1
  module Mpx
2
- VERSION = "0.4.1"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan Chan