On 9/15/07, Eric Hodel <[EMAIL PROTECTED]> wrote:
> On Sep 14, 2007, at 11:06, Alan C Francis wrote:
>
> > I'm building a little tool around gems, mostly as a learning tool. I
> > called SourceInfoCache.search while disconnected and was unsurprised
> > to see it fail. If I rescue and just retry, I get results (which I
> > assume are the cache mentioned in the title :-)
> >
> > If there a way to ask just for the cache without trying to make the
> > netcall first ?
>
> No.
>
There's actually an ugly way to do it. E.g.:
Gem::SourceInfoCache.new.cache_data.values.map{|s|
s.source_index.map{|g| g.first}}.flatten
Chad
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers