Convert Object#returning to Object#tap
-
botp
Yes, pls use tap.
for ruby 1.8.6, you can simply do
class Object
def tap yield self self endend
best regards -botp
-
Ludovic Gasc
We use Adhearsion with Debian Lenny and Squeeze.
This distribution provides Ruby 1.8.7.72 at least: http://packages.debian.org/lenny/ruby1.8From my point of view, you can change this dependency.
Yours.
-
Ben Klang
- State changed from new to fixcommitted
botp: Thanks for the reminder; your suggestion makes sense.
I have committed a fix which monkeypatches Object to provide #tap if it does not exist.
http://github.com/adhearsion/adhearsion/commit/9231b2346306722b6bed...
This commit looks pretty safe but testing would be appreciated. I have tested it with Ruby 1.8.6 and 1.8.7.
-
Ben Klang
- Tag set to activesupport, dependencies
-
Ben Klang
- State changed from fixcommitted to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.