Another JRuby hack to prevent colors being used in 1.9 mode, due to regex bug in JRuby

This commit is contained in:
John Mair 2011-04-24 03:46:25 +12:00
parent 98fe7c24c3
commit 673ae6cd0f
1 changed files with 6 additions and 0 deletions

View File

@ -31,3 +31,9 @@ require "#{direc}/pry/completion"
require "#{direc}/pry/core_extensions"
require "#{direc}/pry/pry_class"
require "#{direc}/pry/pry_instance"
# TEMPORARY HACK FOR BUG IN JRUBY 1.9 REGEX (which kills CodeRay)
if RUBY_VERSION =~ /1.9/ && RUBY_ENGINE =~ /jruby/
Pry.color = false
end