renegade 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/renegade/branch_name.rb +1 -1
- data/lib/renegade/status.rb +10 -2
- data/lib/renegade/version.rb +1 -1
- data/lib/renegade.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e031dc36f040c2b61e6c8e2dce7c5131b6377eb6
|
4
|
+
data.tar.gz: 083607c189c8c99f4ccb30f8a213f0b6450f7f1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17e374fd167a18c8b1cd42bc5cfc5cda2dec12809ec14b88f503e15cac20b08b2893533c8c631548215076d775396dd9183aa014c26cbe4ec8678190bc7b6312
|
7
|
+
data.tar.gz: 8d89de308ef3526a38cb8b3ccc5febdf519c721df805edd8f134356f7f2be1e0dc841b8f423d6a637fc33109e5bcea361f2d93231a3ff80c4dbe91e716149cb9
|
data/lib/renegade/branch_name.rb
CHANGED
data/lib/renegade/status.rb
CHANGED
@@ -7,6 +7,10 @@ class String
|
|
7
7
|
def green
|
8
8
|
"\e[32m#{self}\e[0m"
|
9
9
|
end
|
10
|
+
|
11
|
+
def yellow
|
12
|
+
"\e[32m#{self}\e[0m"
|
13
|
+
end
|
10
14
|
end
|
11
15
|
|
12
16
|
# Define string colors
|
@@ -15,11 +19,15 @@ module Renegade
|
|
15
19
|
# Report statuses
|
16
20
|
class Status
|
17
21
|
# Report labels
|
18
|
-
def self.report(label, passed)
|
22
|
+
def self.report(label, passed, warning = nil)
|
19
23
|
if passed
|
20
24
|
puts " √ #{label}".green
|
21
25
|
else
|
22
|
-
|
26
|
+
if warning
|
27
|
+
puts " × #{label}".yellow
|
28
|
+
else
|
29
|
+
puts " × #{label}".red
|
30
|
+
end
|
23
31
|
end
|
24
32
|
end
|
25
33
|
|
data/lib/renegade/version.rb
CHANGED
data/lib/renegade.rb
CHANGED