mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
use Sinatra::VERSION
This commit is contained in:
parent
d085ff9524
commit
67b092274b
1 changed files with 2 additions and 2 deletions
4
Rakefile
4
Rakefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue