On Sep 14, 2007, at 21:36, Chad Fowler wrote:
> 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
It would be best if we could work with the data on-hand. I don't
know how to determine when we're too stale though.
--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers