Skip to content

Commit

Permalink
fix tilt gem version number comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ralph committed Jun 15, 2010
1 parent d987108 commit c6cf6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Expand Up @@ -8,7 +8,7 @@
# require tilt if available; fall back on bundled version.
begin
require 'tilt'
if Tilt::VERSION < '0.8'
if Gem::Version.new(Tilt::VERSION) < Gem::Version.new('0.8')
warn "WARN: sinatra requires tilt >= 0.8; you have #{Tilt::VERSION}. " +
"loading bundled version..."
Object.send :remove_const, :Tilt
Expand Down

0 comments on commit c6cf6bd

Please sign in to comment.