[#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:69385] Re: [ruby-trunk - Feature #7148][Open] Improved Tempfile w/o DelegateClass
From:
Eric Wong <normalperson@...>
Date:
2015-05-27 21:31:50 UTC
List:
ruby-core #69385
"Glass_saga (Masaki Matsushita)" <glass.saga@gmail.com> wrote:
> Feature #7148: Improved Tempfile w/o DelegateClass
> https://bugs.ruby-lang.org/issues/7148
I would still like this for 2.3.0, just hit a snag with IO.copy_stream
using Tempfile :x
Also, Charles hit a similar problem not long ago, too:
[ruby-core:68700] [Bug #11015]
> Author: Glass_saga (Masaki Matsushita)
> Status: Open
> Priority: Normal
> Assignee:
> Category: lib
> Target version:
>
>
> I propose improved Tempfile without DelegateClass().
> Present Tempfile has following problems.
>
> 1) confusing inspect
>
> t = Tempfile.new("foo") #=> #<File:/tmp/foo20121012-6762-12w11to>
> t.is_a? File #=> false
>
> 2) #dup doesn't duplicate IO
>
> t = Tempfile.new("foo")
> t.dup.close
> t.read #=> IOError: closed stream
>
> 3) finalizer performs unlink even when it has been duplicated
>
> t = Tempfile.new("foo")
> path = t.path #=> "/tmp/foo20121012-7533-1q537gq"
> File.exist? path #=> true
> tt = t.dup
> t = nil
> GC.start
> File.exist? path #=> false