1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

use Sinatra::VERSION

This commit is contained in:
Konstantin Haase 2011-06-05 15:31:30 +02:00
parent d085ff9524
commit 67b092274b

View file

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