mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Extract version from const.rb in gemspec
This commit is contained in:
parent
f4682fb9d6
commit
f2b400dffe
1 changed files with 8 additions and 1 deletions
|
@ -3,9 +3,16 @@
|
||||||
# This is only used when puma is a git dep from Bundler, so it's a little
|
# This is only used when puma is a git dep from Bundler, so it's a little
|
||||||
# weird.
|
# weird.
|
||||||
|
|
||||||
|
d = File.read(File.expand_path("../lib/puma/const.rb", __FILE__))
|
||||||
|
if d =~ /VERSION = "(\d+\.\d+\.\d+)"/
|
||||||
|
version = $1
|
||||||
|
else
|
||||||
|
version = "0.0.1"
|
||||||
|
end
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "puma"
|
s.name = "puma"
|
||||||
s.version = Puma::Const::PUMA_VERSION
|
s.version = version
|
||||||
|
|
||||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||||
s.authors = ["Evan Phoenix"]
|
s.authors = ["Evan Phoenix"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue