Module Gem
In: lib/rubygems/builder.rb
lib/rubygems/command.rb
lib/rubygems/command_manager.rb
lib/rubygems/commands/cleanup_command.rb
lib/rubygems/commands/list_command.rb
lib/rubygems/commands/rdoc_command.rb
lib/rubygems/commands/search_command.rb
lib/rubygems/commands/uninstall_command.rb
lib/rubygems/defaults.rb
lib/rubygems/digest/digest_adapter.rb
lib/rubygems/digest/sha1.rb
lib/rubygems/digest/sha2.rb
lib/rubygems/doc_manager.rb
lib/rubygems/format.rb
lib/rubygems/gem_openssl.rb
lib/rubygems/gem_runner.rb
lib/rubygems/old_format.rb
lib/rubygems/require_paths_builder.rb
lib/rubygems/rubygems_version.rb
lib/rubygems/source_index.rb
lib/rubygems/specification.rb
lib/rubygems/user_interaction.rb
lib/rubygems/validator.rb
lib/rubygems.rb

Main module to hold all RubyGem classes/modules.

Methods

Classes and Modules

Module Gem::Commands
Module Gem::DefaultUserInteraction
Module Gem::Ext
Module Gem::Indexer
Module Gem::InstallUpdateOptions
Module Gem::LocalRemoteOptions
Module Gem::Package
Module Gem::RequirePathsBuilder
Module Gem::SSL
Module Gem::Security
Module Gem::UserInteraction
Module Gem::VersionOption
Class Gem::Builder
Class Gem::Command
Class Gem::CommandLineError
Class Gem::CommandManager
Class Gem::ConfigFile
Class Gem::ConsoleUI
Class Gem::Dependency
Class Gem::DependencyError
Class Gem::DependencyInstaller
Class Gem::DependencyList
Class Gem::DependencyRemovalException
Class Gem::DigestAdapter
Class Gem::DocManager
Class Gem::DocumentError
Class Gem::EndOfYAMLException
Class Gem::Exception
Class Gem::FileOperations
Class Gem::FilePermissionError
Class Gem::Format
Class Gem::FormatException
Class Gem::GemNotFoundException
Class Gem::GemPathSearcher
Class Gem::GemRunner
Class Gem::Indexer
Class Gem::InstallError
Class Gem::Installer
Class Gem::InvalidSpecificationException
Class Gem::LoadError
Class Gem::OldFormat
Class Gem::OperationNotSupportedError
Class Gem::Platform
Class Gem::RemoteError
Class Gem::RemoteFetcher
Class Gem::RemoteInstallationCancelled
Class Gem::RemoteInstallationSkipped
Class Gem::RemoteSourceException
Class Gem::Requirement
Class Gem::Server
Class Gem::SilentUI
Class Gem::SourceIndex
Class Gem::SourceInfoCache
Class Gem::SourceInfoCacheEntry
Class Gem::Specification
Class Gem::StreamUI
Class Gem::Uninstaller
Class Gem::Validator
Class Gem::VerificationError
Class Gem::Version

Constants

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.

External Aliases

source_index -> cache
  Provide an alias for the old name.

Attributes

loaded_specs  [R] 
ssl_available  [W]  Set the value of the ssl_avilable flag.

Public Class methods

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.

The directory path where executables are to be installed.

Reset the dir and path values. The next time dir or path is requested, the values will be calculated from scratch. This is mainly used by the unit tests to provide test isolation.

Return the path to standard location of the users .gemrc file.

The standard configuration object for gems.

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.

The default directory for binaries

Default home directory path to be used if an alternate value is not specified in the environment.

Deduce Ruby‘s —program-prefix and —program-suffix from its install name.

Default gem path.

An Array of the default sources that come with RubyGems.

The default system-wide source info cache directory.

The default user-specific source info cache directory.

The directory path where Gems are to be installed.

return:[String] The directory path

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.

Ensure that SSL is available. Throw an exception if it is not.

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.

The version of the Marshal format for your Ruby.

List of directory paths to search for Gems.

return:[List<String>] List of directory paths.

The directory prefix this RubyGems was installed at.

Return the Ruby command to use to execute the Ruby interpreter.

Return the searcher object to search for matching gems.

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.

Is SSL (used by the signing commands) available on this platform?

Use the home and (optional) paths values for dir and path. Used mainly by the unit tests to provide environment isolation.

The home directory for the user.

Is this a windows platform?

[Validate]