From 3ec860ae8870ee955e34bfa0acc576197012a0c7 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 3 Aug 2020 17:52:01 +0900 Subject: [PATCH] net-ftp is under `lib/net` instead of `lib/net/ftp` --- lib/net/net-ftp.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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