diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-05-29 17:58:18 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-05-29 18:03:21 -0700 |
commit | d2ba80b5df7118383cbcfae934316310c6d81633 (patch) | |
tree | 777b55b5ca4b6748d8fca28abda467643b9aa621 /tool/colorize.rb | |
parent | 5867e51e8311d1ed49457e946751cd0c06a306b8 (diff) | |
download | ruby-d2ba80b5df7118383cbcfae934316310c6d81633.tar.gz |
Revert "Fix building with 1.8 BASERUBY"
This reverts commit 05bc14d81a1d7f6af826a92371aeff0c3fb2a67e.
We have decided that the cost of reintroducing support for 1.8
BASERUBY outweighs the benefit. If you are still using 1.8 and want
to build master/trunk, build and install the latest release, and use
that as BASERUBY.
Diffstat (limited to 'tool/colorize.rb')
-rw-r--r-- | tool/colorize.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/colorize.rb b/tool/colorize.rb index 92076b9928..1cbbeef543 100644 --- a/tool/colorize.rb +++ b/tool/colorize.rb @@ -4,7 +4,7 @@ class Colorize def initialize(color = nil) @colors = @reset = nil if color or (color == nil && STDOUT.tty?) - if (/\A\e\[.*m\z/ =~ IO.popen("tput smso", "r", :err => IO::NULL, &:read) rescue nil) + if (/\A\e\[.*m\z/ =~ IO.popen("tput smso", "r", err: IO::NULL, &:read) rescue nil) @beg = "\e[" @colors = (colors = ENV['TEST_COLORS']) ? Hash[colors.scan(/(\w+)=([^:\n]*)/)] : {} @reset = "#{@beg}m" |