Public Instance Methods

abbreviate(spec)click to toggle source

Abbreviate the spec for downloading. Abbreviated specs are only used for
searching, downloading and related activities and do not need deployment
specific information (e.g. list of files). So we abbreviate the spec,
making it much smaller for quicker downloads.

# File rubygems/indexer.rb, line 125defbuild_indicies# Marshal gemspecs are used by both modern and legacy RubyGemsGem::Specification.dirs = []
Gem::Specification.add_specs(*map_gems_to_specs(gem_file_list))
build_marshal_gemspecsbuild_legacy_indiciesif@build_legacybuild_modern_indiciesif@build_modernbuild_rsscompress_indiciesend

# File rubygems/indexer.rb, line 546defsanitize_string(string)
returnstringunlessstring# HACK the #to_s is in here because RSpec has an Array of Arrays of# Strings for authors. Need a way to disallow bad values on gemspec# generation. (Probably won't happen.)string = string.to_sbeginBuilder::XChar.encodestringrescueNameError, NoMethodErrorstring.to_xsendend

update_index()click to toggle source

Perform an in-place update of the repository from newly added gems. Only
works for modern indicies, and sets build_legacy to false when
run.