On Fri, Mar 14, 2008 at 6:33 AM, Eric Hodel <[EMAIL PROTECTED]> wrote:
> On Mar 14, 2008, at 16:59 PM, Chad Woolley wrote:
> > An explicit exit was added to InstallCommand#execute in revision 1621
> > to address bug #17438.
> >
> > However, this breaks apps which invoke rubygems programatically.
>
> > This completely broke GemInstaller, so I'd like to get it rolled back
> > or patched. If you are too busy, I can take a shot at it.
>
> I suppose instead an appropriate exception could be raised. Please
> take a shot at it.
That sounds like the right way... but remember that Kernel.exit()
doesn't actually exit immediately (in the unix sense of exit(2)), it
just raises an exception, so you can rescue it:
~ % ruby exit.rb
#<SystemExit: exit>
#<SystemExit: exit>
~ % cat exit.rb
2.times do
begin
exit
rescue SystemExit
p $!
end
end
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers