Solution to rails bug exposed by utility belt

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


Giles B.

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

On 12/21/07, Giles B. [email protected] wrote:

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

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 B.

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

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 B.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs