Main module to hold all RubyGem classes/modules.
SHA1 | = | Digest::SHA1 | ||
SHA1 | = | DigestAdapter.new(Digest::SHA1) | ||
SHA256 | = | Digest::SHA256 | ||
SHA256 | = | DigestAdapter.new(Digest::SHA256) | ||
RubyGemsVersion | = | '1.0.1' | ||
Cache | = | SourceIndex | Cache is an alias for SourceIndex to allow older YAMLized source index objects to load properly. | |
ConfigMap | = | {} unless defined?(ConfigMap) | ||
RbConfig | = | Config unless defined? ::RbConfig | ||
MUTEX | = | Mutex.new | ||
RubyGemsPackageVersion | = | RubyGemsVersion | ||
DIRECTORIES | = | %w[cache doc gems specifications] unless defined?(DIRECTORIES) | ||
WIN_PATTERNS | = | [ /bccwin/i, /cygwin/i, /djgpp/i, /mingw/i, /mswin/i, /wince/i, ] | An Array of Regexps that match windows ruby platforms. |
source_index | -> | cache |
Provide an alias for the old name. |
loaded_specs | [R] | |
ssl_available | [W] | Set the value of the ssl_avilable flag. |
Activate a gem (i.e. add it to the Ruby load path). The gem must satisfy all the specified version constraints. If autorequire is true, then automatically require the specified autorequire file in the gem spec.
Returns true if the gem is loaded by this call, false if it is already loaded, or an exception otherwise.
Return a list of all possible load paths for all versions for all gems in the Gem installation.
Use the given configuration object (which implements the ConfigFile protocol) as the standard configuration object.
Return the path the the data directory specified by the gem name. If the package is not available as a gem, return nil.
Default home directory path to be used if an alternate value is not specified in the environment.
Quietly ensure the named Gem directory contains all the proper subdirectories. If we can‘t create a directory due to a permission problem, then we will silently continue.
Return a list of all possible load paths for the latest version for all gems in the Gem installation.
manage_gems is useless and deprecated. Don‘t call it anymore. This will warn in two releases.
Returns an Cache of specifications that are in the Gem.path
return: | [Gem::SourceIndex] Index of installed Gem::Specifications |
Returns an Array of sources to fetch remote gems from. If the sources list is empty, attempts to load the "sources" gem, then uses default_sources if it is not installed.