1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Compare gem versions by their version number, not a lexicographic sort of a String representation.

This commit is contained in:
Kevin Menard 2013-05-19 21:03:17 -03:00
parent 3652cb8351
commit 52bb8f57ad

View file

@ -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'