Class: Bundler::Source::LocalRubygems

Inherits:
Rubygems show all
Defined in:
lib/bundler/source/local_rubygems.rb

Constant Summary

Constants inherited from Rubygems

Rubygems::API_REQUEST_LIMIT, Rubygems::API_REQUEST_SIZE

Instance Attribute Summary

Attributes inherited from Rubygems

#caches, #remotes

Attributes inherited from Bundler::Source

#dependency_names

Instance Method Summary collapse

Methods inherited from Rubygems

#add_remote, #cache, #cached!, #cached_built_in_gem, #can_lock?, #eql?, #fetchers, from_lock, #hash, #initialize, #install, #options, #remote!, #replace_remotes, #to_lock, #to_s, #unmet_deps

Methods inherited from Bundler::Source

#can_lock?, mirror_for, #unmet_deps, #version_message

Constructor Details

This class inherits a constructor from Bundler::Source::Rubygems

Instance Method Details

#specsObject



5
6
7
8
9
10
11
12
# File 'lib/bundler/source/local_rubygems.rb', line 5

def specs
  @specs ||= begin
    idx = super
    idx.use(cached_specs, :override_dupes) if @allow_cached || @allow_remote
    idx.use(installed_specs, :override_dupes)
    idx
  end
end