summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-08-03 17:52:01 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-08-03 17:52:01 +0900
commit3ec860ae8870ee955e34bfa0acc576197012a0c7 (patch)
tree3f4f8777e1e9ec599c3a27e8c877d51f9d765c78 /lib
parent2346e2f0db50c577af6568e5697d39553d7ddb67 (diff)
net-ftp is under `lib/net` instead of `lib/net/ftp`
Diffstat (limited to 'lib')
-rw-r--r--lib/net/net-ftp.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/net-ftp.gemspec b/lib/net/net-ftp.gemspec
index 893305cfb8..e89ff8af7d 100644
--- a/lib/net/net-ftp.gemspec
+++ b/lib/net/net-ftp.gemspec
@@ -1,7 +1,7 @@
# frozen_string_literal: true
name = File.basename(__FILE__, ".gemspec")
-version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
+version = ["lib", Array.new(name.count("-"), "..").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