Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.
build_modern_indicies()public
Builds indicies for RubyGems 1.2 and newer. Handles full, latest, prerelease
# File lib/rubygems/indexer.rb, line 191
def build_modern_indicies
specs = Gem::Specification.reject { |s| s.default_gem? }
prerelease, released = specs.partition { |s|
s.version.prerelease?
}
latest_specs =
Gem::Specification.latest_specs.reject { |s| s.default_gem? }
build_modern_index(released.sort, @specs_index, 'specs')
build_modern_index(latest_specs.sort, @latest_specs_index, 'latest specs')
build_modern_index(prerelease.sort, @prerelease_specs_index,
'prerelease specs')
@files += [@specs_index,
"#{@specs_index}.gz",
@latest_specs_index,
"#{@latest_specs_index}.gz",
@prerelease_specs_index,
"#{@prerelease_specs_index}.gz"]
end Related methods
- Instance methods
- abbreviate
- build_indicies
- build_marshal_gemspecs
- build_modern_index
- build_modern_indicies
- compact_specs
- compress
- compress_indicies
- gem_file_list
- generate_index
- gzip
- install_indicies
- make_temp_directories
- map_gems_to_specs
- paranoid
- sanitize
- sanitize_string
- update_index
- update_specs_index
- Class methods
- new