mpx 0.2.0 → 0.3.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/result.rb +4 -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: 3d3b92cae99091cb285b663712094db342f5f7f48c1bd06013c0247c51e66efd
|
4
|
+
data.tar.gz: 9cf6939064ebf6c9c50a17358d72ca9d91940107ace578f4944d4e5fed1d3162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd5091fe7d3361e2b80aeb6062cac7dcc5525e80206aadafe2adf3b9168fa3e4629415d4c81e9012d61d6b4661667fffc5d452e07c0ff17843d02a78b4520678
|
7
|
+
data.tar.gz: 27deb6a363547f71e6c94ef08178fc3a91c04ca31427e11e58b4cd8fdb54e246120b3376ebf5919bcc728582d817ba55ba31b99cc8133c8cb42c29e5dcd3b73e
|
data/Gemfile.lock
CHANGED
data/lib/mpx/result.rb
CHANGED
@@ -17,8 +17,10 @@ module Mpx
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def status_string
|
20
|
-
|
21
|
-
|
20
|
+
status = @status.exitstatus
|
21
|
+
color = status.zero? ? :green : :red
|
22
|
+
message = status.zero? ? 'Done!' : "Exited with code #{status}."
|
23
|
+
return send(color) { message }
|
22
24
|
end
|
23
25
|
end
|
24
26
|
end
|
data/lib/mpx/version.rb
CHANGED