Forum: Ruby-core [Open] Backport fix for: "SimpleDelegator, a wrapped object with an open method and send" from 2.1 t

8db112f19ce0a69c7e490bbf27256346?d=identicon&s=25 unknown (Guest)
on 2014-02-24 17:30
(Received via mailing list)
Issue #9560 has been reported by Tobias Pfeiffer.

----------------------------------------
Bug #9560: Backport fix for: "SimpleDelegator, a wrapped object with an
open method and send" from 2.1 to 2.0
https://bugs.ruby-lang.org/issues/9560

* Author: Tobias Pfeiffer
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: 2.0.0-p451
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
There was an issue when you have an object with an open method wrapped
by a SimpleDelegator and then use "send :open". This gist illustrates
it: https://gist.github.com/PragTob/9189371

There was a github pull request fixing it:
https://github.com/ruby/ruby/pull/449

It works for me on 2.1 (and 2.1.1) but it seems not to have been
backported to the 2.0 series (tried -p451 today).

It'd be great if it were backported, could save people other than me
quite some time and nerves :) It's a nasty thing to track down.

Cheers + thanks,
Tobi
This topic is locked and can not be replied to.