Skip to content

Commit

Permalink
use Sinatra::VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Jun 5, 2011
1 parent d085ff9 commit 67b0922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 67b0922

Please sign in to comment.