aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tsort.gemspec
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-03 12:00:59 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-03 12:00:59 +0900
commitb5c8c73f66c5c5c036715ccfc41e3761bcea1377 (patch)
tree6918967eec0713c9dbaf6ea93a48a3a41459d9b9 /lib/tsort.gemspec
parent14f442a9584989805be8e40caa0de7758bf07532 (diff)
downloadruby-b5c8c73f66c5c5c036715ccfc41e3761bcea1377.tar.gz
Fixed version detection paths in ruby repository
Diffstat (limited to 'lib/tsort.gemspec')
-rw-r--r--lib/tsort.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tsort.gemspec b/lib/tsort.gemspec
index bd1f55ec7a..0e2f110a53 100644
--- a/lib/tsort.gemspec
+++ b/lib/tsort.gemspec
@@ -1,5 +1,5 @@
name = File.basename(__FILE__, ".gemspec")
-version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
+version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
end rescue nil