Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
75b4ca80
Commit
75b4ca80
authored
Aug 21, 2018
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Colorize gem replaced with rainbow.
parent
c711cfd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
lib/system_check/helpers.rb
lib/system_check/helpers.rb
+6
-5
lib/system_check/simple_executor.rb
lib/system_check/simple_executor.rb
+6
-5
No files found.
lib/system_check/helpers.rb
View file @
75b4ca80
...
@@ -5,11 +5,12 @@ module SystemCheck
...
@@ -5,11 +5,12 @@ module SystemCheck
# if we ever print anything in red - that's an error
# if we ever print anything in red - that's an error
$check_failed
=
false
$check_failed
=
false
class
String
class
String
alias_method
:orig_color
,
:color
alias_method
:orig_red
,
:red
def
color
(
code
)
def
red
(
*
args
)
if
code
==
:red
$check_failed
=
true
$check_failed
=
true
orig_red
(
*
args
)
end
orig_color
(
code
)
end
end
end
end
...
...
lib/system_check/simple_executor.rb
View file @
75b4ca80
...
@@ -3,11 +3,12 @@ module SystemCheck
...
@@ -3,11 +3,12 @@ module SystemCheck
# if we ever print anything in red - that's an error
# if we ever print anything in red - that's an error
$check_failed
=
false
$check_failed
=
false
class
String
class
String
alias_method
:orig_color
,
:color
alias_method
:orig_red
,
:red
def
color
(
code
)
def
red
(
*
args
)
if
code
==
:red
$check_failed
=
true
$check_failed
=
true
orig_red
(
*
args
)
end
orig_color
(
code
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment