mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
remove "grey" (both in coderay and as an alias for bold_black)
This commit is contained in:
parent
cc995409ee
commit
a4e96ebe22
2 changed files with 2 additions and 6 deletions
|
@ -29,10 +29,6 @@ class Pry
|
|||
end
|
||||
end
|
||||
|
||||
alias_method :grey, :bright_black
|
||||
alias_method :gray, :bright_black
|
||||
|
||||
|
||||
# Remove any color codes from _text_.
|
||||
#
|
||||
# @param [String, #to_s] text
|
||||
|
|
|
@ -258,7 +258,7 @@ class Pry
|
|||
end
|
||||
|
||||
# To avoid mass-confusion, we change the default colour of "white" to
|
||||
# "grey" enabling global legibility
|
||||
# "blue" enabling global legibility
|
||||
def self.fix_coderay_colors
|
||||
to_fix = if (CodeRay::Encoders::Terminal::TOKEN_COLORS rescue nil)
|
||||
# CodeRay 1.0.0
|
||||
|
@ -272,7 +272,7 @@ class Pry
|
|||
end
|
||||
end
|
||||
|
||||
to_fix[:comment] = "1;30" if to_fix
|
||||
to_fix[:comment] = "0;34" if to_fix
|
||||
end
|
||||
|
||||
# Basic initialization.
|
||||
|
|
Loading…
Add table
Reference in a new issue