[#69084] [Ruby trunk - Feature #11124] [Open] [PATCH] lib/*: use monotonic clock for timeouts — normalperson@...
Issue #11124 has been reported by Eric Wong.
5 messages
2015/05/06
[#69138] [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module — nobu@...
Issue #11136 has been updated by Nobuyoshi Nakada.
3 messages
2015/05/12
[#69160] [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start — nobu@...
Issue #11146 has been updated by Nobuyoshi Nakada.
4 messages
2015/05/13
[#69175] Re: [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start
— Eric Wong <normalperson@...>
2015/05/13
nobu@ruby-lang.org wrote:
[ruby-core:69296] [Ruby trunk - Feature #11052] [Assigned] [PATCH] Blockless Pathname#ascend and #descend return Enumerator
From:
shibata.hiroshi@...
Date:
2015-05-21 08:10:00 UTC
List:
ruby-core #69296
Issue #11052 has been updated by Hiroshi SHIBATA.
Status changed from Open to Assigned
Assignee set to Akira Tanaka
----------------------------------------
Feature #11052: [PATCH] Blockless Pathname#ascend and #descend return Enumerator
https://bugs.ruby-lang.org/issues/11052#change-52555
* Author: Piotr Szotkowski
* Status: Assigned
* Priority: Normal
* Assignee: Akira Tanaka
----------------------------------------
It would be beneficial for blockless `Pathname#ascend` and `#descend`
to return an `Enumerator` (rather than raise a `LocalJumpError`).
Example use case of finding the Git root of the current directory:
~~~
git_dir = Pathname.new('.git')
Pathname.pwd.ascend.find { |dir| dir.entries.include?(git_dir) }
~~~
---Files--------------------------------
0001-Blockless-Pathname-ascend-and-descend-return-Enumera.patch (3.44 KB)
--
https://bugs.ruby-lang.org/