ruby-win32/lib/ruby/site_ruby/1.8/rubygems/source_info_cache_entry.rb
# The source index for this cache entry.
The source index for this cache entry.
The source index for this cache entry .
def refresh(source_uri)
    begin
      marshal_uri = URI.join source_uri.to_s, "Marshal.#{Gem.marshal_version}"
      remote_size = Gem::RemoteFetcher.fetcher.fetch_size marshal_uri
    rescue Gem::RemoteSourceException
      yaml_uri = URI.join source_uri.to_s, 'yaml'
      remote_size = Gem::RemoteFetcher.fetcher.fetch_size yaml_uri
    end
    return false if @size == remote_size 
    updated = @source_index.update source_uri
    @size = remote_size
    updated
  end
def refresh ( source_uri ) begin marshal_uri = URI . join source_uri . to_s , "Marshal.#{Gem.marshal_version}" remote_size = Gem :: RemoteFetcher . fetcher . fetch_size marshal_uri rescue Gem :: RemoteSourceException yaml_uri = URI . join source_uri . to_s , 'yaml' remote_size = Gem :: RemoteFetcher . fetcher . fetch_size yaml_uri end return false if @size == remote_size updated = @source_index . update source_uri @size = remote_size updated end
The source index for this cache entry.
The source index for this cache entry .
# TODO Use index_signature instead of size?
source_uri