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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ade5a344f1baff35eaaaadd7d0c7145d69eae41a
4
- data.tar.gz: a9a9d80519950b55b9ba777ea6ca8cdf50e40bee
3
+ metadata.gz: e031dc36f040c2b61e6c8e2dce7c5131b6377eb6
4
+ data.tar.gz: 083607c189c8c99f4ccb30f8a213f0b6450f7f1f
5
5
  SHA512:
6
- metadata.gz: 5ecd738fff4c3c4641e8b7247ab94abf4b03381c7a044a8b31eb362a10b34134b147f74fd766f30fc01ad8dded1e6432dfa9724536a949267e5e78f4af97be86
7
- data.tar.gz: b85a93764724822c908c8eda2842f7840b725536541a7e9decc26b90887a8a272dc169cb366a9e1b4e8bba73ffaf9a3c026b47f0dae360f8481519d621dc0395
6
+ metadata.gz: 17e374fd167a18c8b1cd42bc5cfc5cda2dec12809ec14b88f503e15cac20b08b2893533c8c631548215076d775396dd9183aa014c26cbe4ec8678190bc7b6312
7
+ data.tar.gz: 8d89de308ef3526a38cb8b3ccc5febdf519c721df805edd8f134356f7f2be1e0dc841b8f423d6a637fc33109e5bcea361f2d93231a3ff80c4dbe91e716149cb9
@@ -19,7 +19,7 @@ module Renegade
19
19
  def run
20
20
  branch_name = `git name-rev --name-only HEAD`
21
21
 
22
- Status.report(@label, check_branch_name(branch_name))
22
+ Status.report(@label, check_branch_name(branch_name), true)
23
23
  end
24
24
 
25
25
  def check_branch_name(branch_name)
@@ -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
- puts " × #{label}".red
26
+ if warning
27
+ puts " × #{label}".yellow
28
+ else
29
+ puts " × #{label}".red
30
+ end
23
31
  end
24
32
  end
25
33
 
@@ -1,4 +1,4 @@
1
1
  # Renegade version
2
2
  module Renegade
3
- VERSION = '0.1.29'
3
+ VERSION = '0.1.30'
4
4
  end
data/lib/renegade.rb CHANGED
@@ -3,6 +3,3 @@ require 'renegade/version'
3
3
  # Renegade module
4
4
  module Renegade
5
5
  end
6
-
7
-
8
- puts 'renegade'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renegade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - ratherblue