diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-02-08 00:14:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 00:14:27 +0900 |
commit | 73159727ed88a8f739038984c847bb7313336450 (patch) | |
tree | e96e7fb80b606ed8bb22ab24f04c16aabe95b8a5 /lib/ipaddr.gemspec | |
parent | 807dd0479267a067e8208a2053b446fa13a2e66f (diff) |
Merge ipaddr-1.2.4 (#5526)
[Bug #18570]
Diffstat (limited to 'lib/ipaddr.gemspec')
-rw-r--r-- | lib/ipaddr.gemspec | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ipaddr.gemspec b/lib/ipaddr.gemspec index 36e2300002..352570a213 100644 --- a/lib/ipaddr.gemspec +++ b/lib/ipaddr.gemspec @@ -3,9 +3,13 @@ lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +version = File.foreach(File.expand_path("ipaddr.rb", lib)).find do |line| + /^\s*VERSION\s*=\s*["'](.*)["']/ =~ line and break $1 +end + Gem::Specification.new do |spec| spec.name = "ipaddr" - spec.version = "1.2.3" + spec.version = version spec.authors = ["Akinori MUSHA", "Hajimu UMEMOTO"] spec.email = ["knu@idaemons.org", "ume@mahoroba.org"] |