aboutsummaryrefslogtreecommitdiffstats
path: root/tool/colorize.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-05-27 20:54:20 -0700
committerJeremy Evans <code@jeremyevans.net>2019-05-27 20:55:56 -0700
commit05bc14d81a1d7f6af826a92371aeff0c3fb2a67e (patch)
treec3b7b3467f209c94bb9516e47d793c52da613e30 /tool/colorize.rb
parentf3bddc103d6a9d6e679ab35d1d3e8ab7aa2f3ae4 (diff)
downloadruby-05bc14d81a1d7f6af826a92371aeff0c3fb2a67e.tar.gz
Fix building with 1.8 BASERUBY
Diffstat (limited to 'tool/colorize.rb')
-rw-r--r--tool/colorize.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/colorize.rb b/tool/colorize.rb
index 1cbbeef543..92076b9928 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"