123456789_123456789_123456789_123456789_123456789_

Class: Bundler::Plugin::Installer::Rubygems

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Bundler::Source::Rubygems
Defined in: lib/bundler/plugin/installer/rubygems.rb

Constant Summary

::Bundler::Source::Rubygems - Inherited

API_REQUEST_SIZE, REQUIRE_MUTEX

Class Method Summary

Instance Attribute Summary

Instance Method Summary

::Bundler::Source::Rubygems - Inherited

#==
#add_remote, #cache, #cached!, #cached_built_in_gem, #caches, #can_lock?, #clear_cache, #cooldown_for, #dependency_names_to_double_check, #double_check_for, #download, #eql?, #fetchers, #hash, #identifier, #include?, #install, #local!, #local_only!,
#name
#options, #prefer_local!, #release_resolution_memory!, #remote!, #remote_fetchers, #spec_names, #specs,
#to_gemfile
#to_lock, #to_s, #uncached?, #unmet_deps, #api_fetchers, #cache_path, #cached_gem, #cached_specs, #credless_remotes, #default_cache_path_for, #default_specs, #fetch_gem, #fetch_gem_if_possible, #fetch_names, #installed?, #installed_specs, #normalize_uri, #package_path,
#refetch_gem

An installed gem materializes without a remote, so a reinstall forced by --redownload has to look the gem up in the remote index again before it can download the archive that the cache no longer holds.

#remote_names,
#remote_spec_for

Looks up a single spec in the remote sources, fetching only its own name when the full remote index is not already materialized.

#remote_specs, #remove_auth, #rubygems_dir, #backfill_created_at, #collect_remote_created_at,
#download_cache_path

Returns the global cache path of the calling Rubygems::Source object.

#download_gem

Checks if the requested spec exists in the global cache.

#extension_cache_slug, #lockfile_remotes,
#rubygems_gem_installer

We are using a mutex to read and write from/to the hash.

Constructor Details

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

Instance Method Details

#cache_path (private)

[ GitHub ]

  
# File 'lib/bundler/plugin/installer/rubygems.rb', line 13

def cache_path
  Plugin.cache
end

#rubygems_dir (private)

[ GitHub ]

  
# File 'lib/bundler/plugin/installer/rubygems.rb', line 9

def rubygems_dir
  Plugin.root
end