Class: Gem::Indexer

Class | Gem::Indexer
In: | lib/rubygems/indexer.rb
Parent: | Object

Top level class for building the gem repository index.

### Methods

abbreviate build_index gem_file_list generate_index install_index new sanitize sanitize_string

### Included Modules

Gem::UserInteraction

### Attributes

dest_directory | [R] | Index install location
directory | [R] | Index build directory

### Public Class methods

new(directory)

Create an indexer that will index the gems in `directory`.

### Public Instance methods

abbreviate(spec)

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.

build_index()

Build the index.

gem_file_list()

List of gem file names to index.

generate_index()
install_index()
sanitize(spec)

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.

sanitize_string(string)

Sanitize a single string.

[Validate]