diff --git a/irb/pryrc b/irb/pryrc index 36f47f4..8bc42b3 100644 --- a/irb/pryrc +++ b/irb/pryrc @@ -95,7 +95,7 @@ CodeRay.scan("example", :ruby).term # just to load necessary files $LOAD_PATH << File.dirname(File.realpath(__FILE__)) # In CodeRay >= 1.1.0 token colors are defined as pre-escaped ANSI codes -if CodeRay::VERSION >= "1.1.0" +if Gem::Version.new(CodeRay::VERSION) >= Gem::Version.new('1.1.0') require "escaped_colors" else require "unescaped_colors"