[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

solution to rails bug exposed by utility belt

Giles Bowkett

12/22/2007 2:57:00 AM

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

http://gilesbowkett.bl.../2007/12/solution-to-rails-bug-which-ut...

--
Giles Bowkett

Podcast: http://hollywoodgrit.bl...
Blog: http://gilesbowkett.bl...
Portfolio: http://www.gilesg...
Tumblelog: http://giles....

6 Answers

Jeremy Kemper

12/22/2007 4:16:00 AM

0

On 12/21/07, Giles Bowkett <gilesb@gmail.com> wrote:
> Hi all, if you saw this discussion earlier, there's a workaround:
>
> http://gilesbowkett.blogspot.com/2007/12/solution-to-rails-bug-which-ut...

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

Giles Bowkett

12/24/2007 6:38:00 PM

0

> 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.bl...
Blog: http://gilesbowkett.bl...
Portfolio: http://www.gilesg...
Tumblelog: http://giles....

Giles Bowkett

12/24/2007 7:18:00 PM

0

> 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.bl...
Blog: http://gilesbowkett.bl...
Portfolio: http://www.gilesg...
Tumblelog: http://giles....

tac ho

2/20/2014 1:39:00 PM

0

th?ng ch?t thi?n heo nó còm p? nan nên ng? ta dì nít d?y!!!
nó càng còm p? nan, tao càng post.

dumbass!!! Pooh eats shit!!!!


On Wednesday, February 19, 2014 9:59:16 PM UTC-5, :)) wrote:
> On Wednesday, February 19, 2014 6:42:39 PM UTC-8, hoch...@gmail.com wrote:
>
> > http://oi58.tinypic.com/2...
>
>
>
> Già rùi h? cha n?i nè !
>
>
>
> Pót cái link hình ?nh mà cung không bi?t cách làm h? ?
>
>
>
> ;-))))))))
>
>
>
> Cu?i vãi ....r?i nè !

TrinhQuocThien

2/20/2014 2:02:00 PM

0

tao se~ cho ma`y ddi a(n cu+'t dda^'y !

ma`y sa('p ddi ddu+'t ro^`i ! tha`nh lie^.t sy~ ro^`i ...!

ra'ng ma` post 24/24 nga`y na`y qua nga`y kha'c nghen ma^.y !

ma`y cu~ng se~ ddi theo a(n cu+'t lie^.t sy~ La'o Phu' Nguye^~n ddu+'t ga^n ma'u nhe' !

100% la` the^' nhe' !

nho+' post tha^.t nhie^`u va`o ca'i tha(`ng Ngu Duc Tho' !

kho^ng la` tao ta'ng cho ma^'y bo^.p tai dda^'y !

QTTT


>
> On Wednesday, February 19, 2014 9:59:16 PM UTC-5, :)) wrote:
>
> > On Wednesday, February 19, 2014 6:42:39 PM UTC-8, hoch...@gmail.com wrote:
>
> >
>
> > > http://oi58.tinypic.com/2...
>
> >
>
> >
>
> >
>
> > Già rùi h? cha n?i nè !
>
> >
>
> >
>
> >
>
> > Pót cái link hình ?nh mà cung không bi?t cách làm h? ?
>
> >
>
> >
>
> >
>
> > ;-))))))))
>
> >
>
> >
>
> >
>
> > Cu?i vãi ....r?i nè !

TrinhQuocThien

2/20/2014 2:08:00 PM

0

tha(`ng Ngo Duc Tho' no' ta^?u ho?a nha^.p ma ro^`i !

No' sa('p tha`nh lie^.t sy~ ta('t tho+? ro^`i !

No' post ca? ca'i hi`nh no', nha` no' bi. nha^.n lu't dda^`u trong ca^`u tie^`n le^n dda^y nu+~a dda^'y !

no' bie^'t gi` ma` post 24/24 hu+? ? ;-))))

QTTT

> Pót cái link hình ?nh mà cung không bi?t cách làm h? ?
>
>
>
> ;-))))))))
>
>
>
> Cu?i vãi ....r?i nè !