From 704fd7bdcceabf8347449692b4626c4ccca73be0 Mon Sep 17 00:00:00 2001 From: Rob Newbould Date: Fri, 29 Nov 2013 13:34:10 +0000 Subject: [PATCH] Compare version numbers properly --- irb/pryrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"