summaryrefslogtreecommitdiff
path: root/lib/base64.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/base64.gemspec
parent14f442a9584989805be8e40caa0de7758bf07532 (diff)
Fixed version detection paths in ruby repository
Diffstat (limited to 'lib/base64.gemspec')
-rw-r--r--lib/base64.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base64.gemspec b/lib/base64.gemspec
index d793dce063..44a2ce1fd1 100644
--- a/lib/base64.gemspec
+++ b/lib/base64.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