Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > e4945b529b7f0b91e7f0e8a18042fc7a > files > 1

ruby-rake-12.3.0-21.mga7.src.rpm

From 5b8f8fc41a5d7d7d6a5d767e48464c60884d3aee Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@ruby-lang.org>
Date: Mon, 22 Jul 2019 10:23:43 +0900
Subject: [PATCH] Use File.open explicitly.

---
 lib/rake/file_list.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rake/file_list.rb b/lib/rake/file_list.rb
index 15ea4b36..22c339f2 100644
--- a/lib/rake/file_list.rb
+++ b/lib/rake/file_list.rb
@@ -294,7 +294,7 @@ def egrep(pattern, *options)
       matched = 0
       each do |fn|
         begin
-          open(fn, "r", *options) do |inf|
+          File.open(fn, "r", *options) do |inf|
             count = 0
             inf.each do |line|
               count += 1