Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Source#load_specs
load_specs(type)
lib/rubygems/source.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/source.rb, line 187
def load_specs(type)
load_compact_index_specs(type) || load_marshal_specs(type)
end
Loads type kind of specs fetching from +@uri+ if the on-disk cache is out of date.
type is one of the following:
:released => Return the list of all released specs :latest => Return the list of only the highest version of each gem :prerelease => Return the list of all prerelease only specs
The compact index is used when the source provides it, falling back to the Marshal spec indexes.
See also
#load_marshal_specs
#max_versions_by_platform
#load_compact_index_specs
#new_dependency_resolver_set
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0