Compare version numbers properly
This commit is contained in:
parent
3210d166a7
commit
704fd7bdcc
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user