[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65675] [ruby-trunk - Bug #10035] Find.find no longer accepts Pathname type as argument

From: nagachika00@...
Date: 2014-10-13 16:00:28 UTC
List: ruby-core #65675
Issue #10035 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.1: UNKNOWN to 2.1: REQUIRED

`ruby_2_1` branch has same problem.

----------------------------------------
Bug #10035: Find.find no longer accepts Pathname type as argument
https://bugs.ruby-lang.org/issues/10035#change-49407

* Author: Herwin .
* Status: Closed
* Priority: Normal
* Assignee: Akira Tanaka
* Category: lib
* Target version: 
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [i686-linux]
* Backport: 2.1: REQUIRED
----------------------------------------
In 2.1, a check for encoding of the paths parameter has been added to File.find. This works perfectly well for String parameters, but this results in a NoMethodError when a Pathname parameter is given. In my opinion a Pathname is a better suitable type to feed to Find.find than a String.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next