load version.rb from .gemspec.

This commit is contained in:
Masahiro Fujiwara 2013-03-27 17:29:34 +09:00
parent 23c3c51167
commit fe9e084088
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ module Sinatra
VERSION
end
SIGNATURE = [1, 3, 1]
SIGNATURE = [1, 4, 0]
VERSION = SIGNATURE.join('.')
VERSION.extend Comparable

View File

@ -1,7 +1,8 @@
# Run `rake sinatra-contrib.gemspec` to update the gemspec.
require File.expand_path('../lib/sinatra/contrib/version', __FILE__)
Gem::Specification.new do |s|
s.name = "sinatra-contrib"
s.version = "1.4.0"
s.version = Sinatra::Contrib::VERSION
s.description = "Collection of useful Sinatra extensions"
s.homepage = "http://github.com/sinatra/sinatra-contrib"
s.summary = s.description