[ruby/rinda] Expose Rinda::VERSION

https://github.com/ruby/rinda/commit/fa3865ac48
This commit is contained in:
Hiroshi SHIBATA 2023-04-21 15:19:54 +09:00 committed by git
parent b9b43a1020
commit 94a418d0bb
2 changed files with 11 additions and 2 deletions

View File

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

View File

@ -18,6 +18,8 @@ require 'drb/drb'
module Rinda
VERSION = "0.1.1"
##
# Rinda error base class