From 52bb8f57ad3ee1cf13683ba97c508af33045eb64 Mon Sep 17 00:00:00 2001 From: Kevin Menard Date: Sun, 19 May 2013 21:03:17 -0300 Subject: [PATCH] Compare gem versions by their version number, not a lexicographic sort of a String representation. --- lib/sidekiq/web.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/web.rb b/lib/sidekiq/web.rb index 65d23e71..39da0a7d 100644 --- a/lib/sidekiq/web.rb +++ b/lib/sidekiq/web.rb @@ -2,7 +2,7 @@ require 'yaml' require 'sinatra/base' require 'slim' -raise "The Sidekiq Web UI requires slim 1.3.8 or greater. You have slim v#{Slim::VERSION}" if Slim::VERSION < '1.3.8' +raise "The Sidekiq Web UI requires slim 1.3.8 or greater. You have slim v#{Slim::VERSION}" if Gem::Version.new(Slim::VERSION) < Gem::Version.new('1.3.8') require 'sidekiq' require 'sidekiq/api'