ruby-changes:66079
From: Hiroshi <ko1@a...>
Date: Thu, 6 May 2021 15:25:07 +0900 (JST)
Subject: [ruby-changes:66079] 965719f5eb (master): Fixed the file path for net-imap.gemspec
https://git.ruby-lang.org/ruby.git/commit/?id=965719f5eb From 965719f5eb0e6dbb05a13cfe824fe82f9268e4d5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 6 May 2021 15:24:49 +0900 Subject: Fixed the file path for net-imap.gemspec --- lib/net/imap/net-imap.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/imap/net-imap.gemspec b/lib/net/imap/net-imap.gemspec index d7c341c..9a6e0ac 100644 --- a/lib/net/imap/net-imap.gemspec +++ b/lib/net/imap/net-imap.gemspec @@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/imap/net-imap.gemspec#L1 # 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/