[ruby/rinda] Expose Rinda::VERSION
https://github.com/ruby/rinda/commit/fa3865ac48
This commit is contained in:
parent
b9b43a1020
commit
94a418d0bb
@ -1,6 +1,13 @@
|
||||
name = File.basename(__FILE__, ".gemspec")
|
||||
version = ["lib/rinda", "."].find do |dir|
|
||||
break File.foreach(File.join(__dir__, dir, "#{name}.rb")) do |line|
|
||||
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
|
||||
end rescue nil
|
||||
end
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "rinda"
|
||||
spec.version = "0.1.1"
|
||||
spec.name = name
|
||||
spec.version = version
|
||||
spec.authors = ["Masatoshi SEKI"]
|
||||
spec.email = ["seki@ruby-lang.org"]
|
||||
|
||||
|
@ -18,6 +18,8 @@ require 'drb/drb'
|
||||
|
||||
module Rinda
|
||||
|
||||
VERSION = "0.1.1"
|
||||
|
||||
##
|
||||
# Rinda error base class
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user