solution to rails bug exposed by utility belt

J

Jeremy Kemper

Hi all, if you saw this discussion earlier, there's a workaround:

http://gilesbowkett.blogspot.com/2007/12/solution-to-rails-bug-which-utility.html

How is this a Rails bug? Rails bundles ruby-breakpoint which, when
enabled, requires irb. That's fine, irb may be used as a library as
well as from the command line.

The bug is that your library shovels a ton of collision-prone methods
into Object instead of properly extending the IRB context.

(Note: Rails 2 switched to ruby-debug since ruby-breakpoint broke when
Binding.of_caller went the way of the dodo.)

Best regards,
jeremy
 
G

Giles Bowkett

How is this a Rails bug? Rails bundles ruby-breakpoint which, when
enabled, requires irb. That's fine, irb may be used as a library as
well as from the command line.

OK, solution for Rails loading arbitrary .irbrc code into Rails apps.
The bug is that your library shovels a ton of collision-prone methods
into Object instead of properly extending the IRB context.

Patches welcome.
(Note: Rails 2 switched to ruby-debug since ruby-breakpoint broke when
Binding.of_caller went the way of the dodo.)

Thank you! In that case it's only an issue for before Rails 2.

--
Giles Bowkett

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com
 
G

Giles Bowkett

The bug is that your library shovels a ton of collision-prone methods
into Object instead of properly extending the IRB context.

I'm hesitating to respond on this thing because A) I might have to
admit to being wrong about something, and I've always firmly
maintained the position that I am perfect in every way, and B) because
it totally looks like the start of a flame war, but just for the hell
of it, can anyone give me more detail on this? Is it actually possible
to set stuff up in the IRB context without it being attached to
Object? If there's a way to make my code better, I want to know more.

--
Giles Bowkett

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top