summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-06 15:24:49 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-06 15:24:49 +0900
commit965719f5eb0e6dbb05a13cfe824fe82f9268e4d5 (patch)
tree83298426b101f7d06ee13b20ee588e5cec8b8aee
parent5de6f1ab4751f02670239ebe537e599c477dc4bf (diff)
Fixed the file path for net-imap.gemspec
-rw-r--r--lib/net/imap/net-imap.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/imap/net-imap.gemspec b/lib/net/imap/net-imap.gemspec
index d7c341cd92..9a6e0acf2d 100644
--- a/lib/net/imap/net-imap.gemspec
+++ b/lib/net/imap/net-imap.gemspec
@@ -1,7 +1,7 @@
# frozen_string_literal: true
name = File.basename(__FILE__, ".gemspec")
-version = ["lib", Array.new(name.count("-"), "..").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