[#105450] [Ruby master Feature#18228] Add a `timeout` option to `IO.copy_stream` — "byroot (Jean Boussier)" <noreply@...>
Issue #18228 has been reported by byroot (Jean Boussier).
11 messages
2021/09/27
[ruby-core:105330] [Ruby master Bug#18158] Pathname#each_entry without block does not return Enumerator
From:
"jeremyevans0 (Jeremy Evans)" <noreply@...>
Date:
2021-09-17 19:33:43 UTC
List:
ruby-core #105330
Issue #18158 has been updated by jeremyevans0 (Jeremy Evans).
I've submitted a pull request to have `Pathname#each_entry` return Enumerator: https://github.com/ruby/pathname/pull/10
----------------------------------------
Bug #18158: Pathname#each_entry without block does not return Enumerator
https://bugs.ruby-lang.org/issues/18158#change-93745
* Author: znz (Kazuhiro NISHIYAMA)
* Status: Open
* Priority: Normal
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
`Pathname#each_child` without block returns `Enumerator`.
But `Pathname#each_entry` without block does not return `Enumerator`.
```
% ruby -r pathname -e 'p Pathname(".").each_child.class'
Enumerator
% ruby -r pathname -e 'p Pathname(".").each_entry.class'
-e:1:in `foreach': no block given (LocalJumpError)
from -e:1:in `each_entry'
from -e:1:in `<main>'
```
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>