From 133795b99d228edcbc2e71a8888781eb429e394e Mon Sep 17 00:00:00 2001 From: Lea Fairbanks Date: Sat, 18 Jun 2016 13:39:14 -0600 Subject: [PATCH] Remove win32console requirement in ruby 2.0.0 and higher --- lib/ansi/code.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansi/code.rb b/lib/ansi/code.rb index 51bfc9a..dcba73a 100644 --- a/lib/ansi/code.rb +++ b/lib/ansi/code.rb @@ -6,7 +6,7 @@ module ANSI # NOTE: This has no effect on methods that return ANSI codes. $ansi = true - if RUBY_PLATFORM =~ /(win32|w32)/ + if RUBY_VERSION < '2' && RUBY_PLATFORM =~ /(win32|w32)/ begin require 'Win32/Console/ANSI' rescue LoadError