Commit 75b4ca80 authored by Alain Takoudjou's avatar Alain Takoudjou

Colorize gem replaced with rainbow.

parent c711cfd6
......@@ -5,11 +5,12 @@ module SystemCheck
# if we ever print anything in red - that's an error
$check_failed = false
class String
alias_method :orig_red, :red
def red(*args)
alias_method :orig_color, :color
def color(code)
if code == :red
$check_failed = true
orig_red(*args)
end
orig_color(code)
end
end
......
......@@ -3,11 +3,12 @@ module SystemCheck
# if we ever print anything in red - that's an error
$check_failed = false
class String
alias_method :orig_red, :red
def red(*args)
alias_method :orig_color, :color
def color(code)
if code == :red
$check_failed = true
orig_red(*args)
end
orig_color(code)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment