On 5/7/07, Chad Woolley <[EMAIL PROTECTED]> wrote:
> Just providing closure on this.  I got no response, here or on the
> jruby list, so I monkey-patched rubygems to do an exact name match for
> 'gem list'.  That fixed my problem, since all I care about is making
> it work when called programmatically from my app.
>
> I still think it's kind of an issue if "gem list activerecord
> --remote" throws an exception, but oh well :)

Chad,

Sorry for the late response ... things have finally slowed down a bit here.

I've tried this on the platforms I have available (MacOS, Ubuntu) and
don't see the same problem.

By the error trace it seems that the program is aborting in the middle
of the version comparison software (to_ints converts "1.2.3" to [1, 2,
3]).  Since the trace complains about a YAML object, I'm suspecting
that the version data is somehow bogus.  The YAML data comes from the
local source index cache, so maybe your source index cache is
corrupted.  Try this:

(1) Save your current source index cache somewhere.
(2) Delete current source index cache.
(3) Rerun gem list --remote (it will automatically regenerate the cache).

If the problem goes away, then we can blame the cache.  At that point,
I would like to see the file, so send me the file you saved in step 1
above).

If the problem persists, then it is something else ... and i'll have
to think harder.

-- Jim Weirich


-- 
-- Jim Weirich    [EMAIL PROTECTED]     http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to