SpecFetcher handles metadata updates from remote gem repositories.

Class Methods

Default fetcher instance. Use this instead of ::new to reduce object allocation.

Creates a new SpecFetcher. Ordinarily you want to use the default fetcher from Gem::SpecFetcher::fetcher which uses the Gem.sources.

If you need to retrieve specifications from a different source, you can send it as an argument.

Instance Methods

Returns a list of gems available for each source in Gem::sources.

type can be one of 3 values: :released => Return the list of all released specs :complete => Return the list of all specs :latest => Return the list of only the highest version of each gem :prerelease => Return the list of all prerelease only specs

Return all gem name tuples who’s names match obj

Find and fetch gem name tuples that match dependency.

If matching_platform is false, gems for all platforms are returned.

Find and fetch specs that match dependency.

If matching_platform is false, gems for all platforms are returned.

Suggests gems based on the supplied gem_name. Returns an array of alternative gem names.