Another JRuby hack to prevent colors being used in 1.9 mode, due to regex bug in JRuby
This commit is contained in:
parent
98fe7c24c3
commit
673ae6cd0f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue