Module Gem
In: lib/rubygems/config_file.rb
lib/rubygems/gem_openssl.rb
lib/rubygems/user_interaction.rb
lib/rubygems/source_index.rb
lib/rubygems/cmd_manager.rb
lib/rubygems/gem_runner.rb
lib/rubygems/gem_commands.rb
lib/rubygems/doc_manager.rb
lib/rubygems/installer.rb
lib/rubygems/remote_installer.rb
lib/rubygems/old_format.rb
lib/rubygems/builder.rb
lib/rubygems/rubygems_version.rb
lib/rubygems/format.rb
lib/rubygems/custom_require.rb
lib/rubygems/specification.rb
lib/rubygems/dependency_list.rb
lib/rubygems/command.rb
lib/rubygems/validator.rb
lib/rubygems/version.rb
lib/rubygems/security.rb
lib/rubygems.rb
lib/gemconfigure.rb

Methods

Classes and Modules

Module Gem::CommandAids
Module Gem::DefaultUserInteraction
Module Gem::InstallUpdateOptions
Module Gem::LocalRemoteOptions
Module Gem::Package
Module Gem::Platform
Module Gem::SSL
Module Gem::Security
Module Gem::UserInteraction
Module Gem::VersionOption
Class Gem::BuildCommand
Class Gem::Builder
Class Gem::CertCommand
Class Gem::CheckCommand
Class Gem::CleanupCommand
Class Gem::Command
Class Gem::CommandLineError
Class Gem::CommandManager
Class Gem::ConfigFile
Class Gem::ConsoleUI
Class Gem::ContentsCommand
Class Gem::Dependency
Class Gem::DependencyCommand
Class Gem::DependencyError
Class Gem::DependencyList
Class Gem::DependencyRemovalException
Class Gem::DocManager
Class Gem::DocumentError
Class Gem::EndOfYAMLException
Class Gem::EnvironmentCommand
Class Gem::Exception
Class Gem::ExtBuilder
Class Gem::ExtConfigureBuilder
Class Gem::ExtExtConfBuilder
Class Gem::ExtRakeBuilder
Class Gem::FileOperations
Class Gem::FilePermissionError
Class Gem::Format
Class Gem::FormatException
Class Gem::GemNotFoundException
Class Gem::GemPathSearcher
Class Gem::GemRunner
Class Gem::HelpCommand
Class Gem::InstallCommand
Class Gem::InstallError
Class Gem::Installer
Class Gem::InvalidSpecificationException
Class Gem::ListCommand
Class Gem::LoadError
Class Gem::LocalInstallationError
Class Gem::OldFormat
Class Gem::OperationNotSupportedError
Class Gem::OutdatedCommand
Class Gem::PristineCommand
Class Gem::QueryCommand
Class Gem::RDocCommand
Class Gem::RemoteError
Class Gem::RemoteFetcher
Class Gem::RemoteInstallationCancelled
Class Gem::RemoteInstallationSkipped
Class Gem::RemoteInstaller
Class Gem::RemoteSourceException
Class Gem::Requirement
Class Gem::SearchCommand
Class Gem::Server
Class Gem::SilentUI
Class Gem::SourceIndex
Class Gem::SourceInfoCache
Class Gem::SourceInfoCacheEntry
Class Gem::SourcesCommand
Class Gem::Specification
Class Gem::SpecificationCommand
Class Gem::StreamUI
Class Gem::UninstallCommand
Class Gem::Uninstaller
Class Gem::UnpackCommand
Class Gem::UpdateCommand
Class Gem::Validator
Class Gem::VerificationError
Class Gem::Version

Constants

Cache = SourceIndex   Cache is an alias for SourceIndex to allow older YAMLized source index objects to load properly.
HELP = %{ RubyGems is a sophisticated package manager for Ruby. This is a basic help message containing pointers to more information. Usage: gem -h/--help gem -v/--version gem command [arguments...] [options...] Examples: gem install rake gem list --local gem build package.gemspec gem help install Further help: gem help commands list all 'gem' commands gem help examples show some examples of usage gem help <COMMAND> show help on COMMAND (e.g. 'gem help install') Further information: http://rubygems.rubyforge.org }.gsub(/^ /, "")
EXAMPLES = %{ Some examples of 'gem' usage. * Install 'rake', either from local directory or remote server: gem install rake * Install 'rake', only from remote server: gem install rake --remote * Install 'rake' from remote server, and run unit tests, and generate RDocs: gem install --remote rake --test --rdoc --ri * Install 'rake', but only version 0.3.1, even if dependencies are not met, and into a specific directory: gem install rake --version 0.3.1 --force --install-dir $HOME/.gems * List local gems whose name begins with 'D': gem list D * List local and remote gems whose name contains 'log': gem search log --both * List only remote gems whose name contains 'log': gem search log --remote * Uninstall 'rake': gem uninstall rake * Create a gem: See http://rubygems.rubyforge.org/wiki/wiki.pl?CreateAGemInTenMinutes * See information about RubyGems: gem environment }.gsub(/^ /, "")
RubyGemsVersion = '0.9.2'
Requirement = ::Gem::Version::Requirement   Class Requirement‘s original definition is nested in Version. Although an probably inappropriate place, current gems specs reference the nested class name explicitly. To remain compatible with old software loading gemspecs, we leave the original definition in Version, but define an alias Gem::Requirement for use everywhere else.
MUTEX = Mutex.new
RubyGemsPackageVersion = RubyGemsVersion
DIRECTORIES = ['cache', 'doc', 'gems', 'specifications']

External Aliases

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

Attributes

build_root  [RW] 
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.

Activate the gems specfied by the gem_pairs list.

gem_pairs :List of gem/version pairs. Eg. [[‘rake’, ’= 0.8.15’], [‘RedCloth’, ’~> 3.0’]]
options :options[:verbose] => print gems as they are required.

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.

The directory path where Gems are to be installed.

return:[String] The directory path

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.

List of directory paths to search for Gems.

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

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

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.

[Validate]