Main module to hold all RubyGem classes/modules.
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(/^ /, "") | ||
Cache | = | SourceIndex | Cache is an alias for SourceIndex to allow older YAMLized source index objects to load properly. | |
MD5 | = | Digest::MD5 | ||
MD5 | = | DigestAdapter.new(Digest::MD5) | ||
SHA256 | = | Digest::SHA256 | ||
SHA256 | = | DigestAdapter.new(Digest::SHA256) | ||
SHA1 | = | Digest::SHA1 | ||
SHA1 | = | DigestAdapter.new(Digest::SHA1) | ||
RubyGemsVersion | = | '0.9.4' | ||
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'] |
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.
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.
Return a list of all possible load paths for the latest version for all gems in the Gem installation.
Returns an Cache of specifications that are in the Gem.path
return: | [Gem::SourceIndex] Index of installed Gem::Specifications |