ruby-changes:70131
From: Hiroshi <ko1@a...>
Date: Thu, 9 Dec 2021 19:48:33 +0900 (JST)
Subject: [ruby-changes:70131] 4258c8df86 (master): Fixed filename for Open3::VERSION
https://git.ruby-lang.org/ruby.git/commit/?id=4258c8df86 From 4258c8df867b497369a815e92f741aebf1469b0d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 9 Dec 2021 19:48:22 +0900 Subject: Fixed filename for Open3::VERSION --- lib/open3/open3.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/open3/open3.gemspec b/lib/open3/open3.gemspec index 6c7220703bb..a33fca74442 100644 --- a/lib/open3/open3.gemspec +++ b/lib/open3/open3.gemspec @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/open3/open3.gemspec#L2 name = File.basename(__FILE__, ".gemspec") version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir| - break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line| + break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}/version.rb")) do |line| /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1 end rescue nil end -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/