Permalink
Browse files

use Sinatra::VERSION

  • Loading branch information...
1 parent d085ff9 commit 67b092274b734fa1c2c4683c2f203587e5ba3a33 @rkh rkh committed Jun 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
@@ -10,8 +10,8 @@ CLEAN.include "**/*.rbc"
def source_version
@source_version ||= begin
- line = File.read('lib/sinatra/base.rb')[/^\s*VERSION = .*/]
- line.match(/.*VERSION = '(.*)'/)[1]
+ load './lib/sinatra/version.rb'
+ Sinatra::VERSION
end
end

0 comments on commit 67b0922

Please sign in to comment.