Class | Gem::Indexer |
In: |
lib/rubygems/indexer.rb
|
Parent: | Object |
Top level class for building the gem repository index.
build_legacy | [RW] | Build indexes for RubyGems older than 1.2.0 when true |
build_modern | [RW] | Build indexes for RubyGems 1.2.0 and newer when true |
dest_directory | [R] | Index install location |
dest_latest_specs_index | [R] | Latest specs index install location |
dest_prerelease_specs_index | [R] | Prerelease specs index install location |
dest_specs_index | [R] | Specs index install location |
directory | [R] | Index build directory |
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.
Compacts Marshal output for the specs index data source by using identical objects as much as possible.
Sanitize the descriptive fields in the spec. Sometimes non-ASCII characters will garble the site index. Non-ASCII characters will be replaced by their XML entity equivalent.
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.