<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
  <title>docs.rubygems.org recent changes</title>
  <id>tag:docs.rubygems.org,2004:Hieraki</id>
  <generator uri="http://www.hieraki.org">Hieraki</generator>
  <link href="http://docs.rubygems.org/shelf/index" rel="alternate" type="text/html" />
  <updated>2010-02-12T06:13:28Z</updated>

  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/RubyGems-Docs-Recent-Changes-atom" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="rubygems-docs-recent-changes-atom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-325</id>
    <updated>2010-02-12T06:13:28Z</updated>
    <title>Eric Hodel: "unpack" -- Unpack an installed gem to the current directory</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page39" />
    <content type="html">&lt;p&gt;&lt;em&gt;(Not in version 0.7.)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The unpack command creates a private copy of the named gem&amp;#8217;s contents into a&lt;br /&gt;
new directory.  This enables you to examine the contents without interfering&lt;br /&gt;
with the gem repository.&lt;/p&gt;
&lt;p&gt;You can only unpack gems that you have installed, and you must specify the gem&lt;br /&gt;
name exactly.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem unpack GEMNAME [options]

  Options:
    -v, --version VERSION            Specify version of gem to unpack

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    GEMNAME       Name of the gem to unpack

  Summary:
    Unpack an installed gem to the current directory

  Defaults:
    --version '&amp;gt; 0'
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;pre&gt;
$ gem unpack rake
Unpacked gem: 'rake-0.4.3'

$ ls rake-0.4.3/
CHANGES  MIT-LICENSE  README  Rakefile  TODO  bin  doc  install.rb  lib  test

$ gem unpack wazoo
ERROR:  Gem 'wazoo' not installed.
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-324</id>
    <updated>2010-02-12T06:13:20Z</updated>
    <title>Eric Hodel: "uninstall" -- Uninstalling a gem</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page38" />
    <content type="html">&lt;p&gt;The uninstall will uninstall the named gem.  If multiple versions of a&lt;br /&gt;
gem are installed, you will be prompted to select a single one, or all&lt;br /&gt;
of them.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem uninstall GEMNAME [options]

  Options:
    -a, --[no-]all                   Uninstall all matching versions
    -i, --[no-]ignore-dependencies   Ignore dependency requirements while uninstalling
    -x, --[no-]executables           Uninstall applicable executables without confirmation
    -v, --version VERSION            Specify version of gem to uninstall

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    GEMNAME   name of gem to uninstall

  Summary:
    Uninstall a gem from the local repository

  Defaults:
    --version '&amp;gt; 0' --no-force
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;The following uninstalls the only copy of copland.&lt;/p&gt;
&lt;pre&gt;
$ gem uninstall copland
Attempting to uninstall gem 'copland'
Successfully uninstalled copland version 0.3.0
&lt;/pre&gt;
&lt;p&gt;The following uninstalls all the installed versions of the rake gem.&lt;br /&gt;
Since rake is an application, it has a ApplicationStub installed.  The&lt;br /&gt;
uninstall removes the stub as well.&lt;/p&gt;
&lt;pre&gt;
$ sudo gem uninstall rake
Attempting to uninstall gem 'rake'

Select RubyGem to uninstall:
 1. rake-0.3.2
 2. rake-0.4.0
 3. All versions
&amp;gt; 3
Successfully uninstalled rake version 0.3.2
Successfully uninstalled rake version 0.4.0
WARNING:  About to remove executables and scripts for: rake
Proceed? [Y/n]  y
Removing rake
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-323</id>
    <updated>2010-02-12T06:13:13Z</updated>
    <title>Eric Hodel: "specification" -- Extract the Gem::Specification from a gem file</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page37" />
    <content type="html">&lt;p&gt;The specification command will extract the Gem::Specification from a&lt;br /&gt;
gem file and write to standard output in &lt;span class="caps"&gt;YAML&lt;/span&gt; format.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem specification GEMFILE [options]

  Options:
    -v, --version VERSION            Specify version of gem to examine
    -l, --local                      Restrict operations to the LOCAL domain (default)
    -r, --remote                     Restrict operations to the REMOTE domain
    -b, --both                       Allow LOCAL and REMOTE operations
        --all                        Output specifications for all versions of the gem

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    GEMFILE       Name of a .gem file to examine

  Summary:
    Display gem specification (in yaml)

  Defaults:
    --local --version '(latest)'
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;Here is the specification from rake 0.4.1.&lt;/p&gt;
&lt;pre&gt;
$ gem spec rake -v 0.4.1
--- !ruby/object:Gem::Specification 
rubygems_version: "0.6"
name: rake
version: !ruby/object:Gem::Version 
  version: 0.4.1
date: 2004-07-02 01:08:54.678603 -04:00
platform: 
summary: Ruby based make-like utility.
require_paths: 
  - lib
files: 
  - install.rb
  - CHANGES
  - Rakefile
  - README
  - TODO
  - MIT-LICENSE
  - bin/rake
  - lib/rake.rb
  - lib/rake/clean.rb
  ......
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-322</id>
    <updated>2010-02-12T06:13:05Z</updated>
    <title>Eric Hodel: "search" -- List gems containing a string</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page36" />
    <content type="html">&lt;p&gt;&lt;tt&gt;gem search&lt;/tt&gt; will list all gems whose name &lt;em&gt;contains&lt;/em&gt; the given&lt;br /&gt;
(case-insensitive) string.  If no string is provided, all gems will be listed.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem search [STRING] [options]

  Options:
    -d, --[no-]details               Display detailed information of gem(s)
    -l, --local                      Restrict operations to the LOCAL domain (default)
    -r, --remote                     Restrict operations to the REMOTE domain
    -b, --both                       Allow LOCAL and REMOTE operations

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    STRING   fragment of gem name to look for

  Summary:
    Display all gems whose name contains STRING

  Defaults:
    --local --no-details
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;List all remote gems containing &amp;#8220;log&amp;#8221; in their name.&lt;/p&gt;
&lt;pre&gt;
$ gem search -r log

*** REMOTE GEMS ***

log4r (1.0.5)
    Log4r is a comprehensive and flexible logging library for Ruby.

rublog (0.8.0)
    RubLog is a simple web log, based around the idea of displaying a
    set of regular files in a log-format.
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-321</id>
    <updated>2010-02-12T06:12:59Z</updated>
    <title>Eric Hodel: "rdoc" -- Generate the RDoc files for an installed gem</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page95" />
    <content type="html">&lt;p&gt;&lt;tt&gt;gem rdoc&lt;/tt&gt; will generate the RDoc files for an installed gem.&lt;br /&gt;
The files are put in the standard gem RDoc location so that&lt;br /&gt;
&lt;code&gt;gem_server&lt;/code&gt; can find them.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem rdoc [args] [options]

  Options:
        --all                        Generate RDoc documentation for all installed gems
    -v, --version VERSION            Specify version of gem to rdoc

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    GEMNAME          The gem to generate RDoc for (unless --all)

  Summary:
    Generates RDoc for pre-installed gems

  Defaults:
    --version '&amp;gt; 0.0.0'
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;The following command generates the RDoc files for the rake-0.5.4 gem.&lt;/p&gt;
&lt;pre&gt;
traken$ sudo gem rdoc rake --version 0.5.4
Installing RDoc documentation for rake-0.5.4...
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-320</id>
    <updated>2010-02-12T06:12:52Z</updated>
    <title>Eric Hodel: "query" -- Query for a list of gems</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page35" />
    <content type="html">&lt;p&gt;&lt;tt&gt;gem query&lt;/tt&gt; will list all gems matching a particular criteria.&lt;br /&gt;
The domain may be local, remote or both.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem query [options]

  Options:
    -n, --name-matches REGEXP        Name of gem(s) to query on maches the provided REGEXP
    -d, --[no-]details               Display detailed information of gem(s)
    -l, --local                      Restrict operations to the LOCAL domain (default)
    -r, --remote                     Restrict operations to the REMOTE domain
    -b, --both                       Allow LOCAL and REMOTE operations

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Summary:
    Query gem information in local or remote repositories

  Defaults:
    --local --name-matches '.*' --no-details
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;To list all local gems with a digit in the gem name:&lt;/p&gt;
&lt;pre&gt;
$ gem query -n '[0-9]' --local

*** LOCAL GEMS ***

jabber4r (0.7.0)
    Jabber4r is a pure-Ruby Jabber client library

log4r (1.0.5)
    Log4r is a comprehensive and flexible logging library for Ruby.
&lt;/pre&gt;
&lt;p&gt;To list all remote gems that begin with the letter &amp;#8216;m&amp;#8217;:&lt;/p&gt;
&lt;pre&gt;
$ gem query -R -n ^m

*** REMOTE GEMS ***

madeleine (0.6.1, 0.6)
    Madeleine is a Ruby implementation of Object Prevalence

midilib (0.8.0)
    MIDI file and event manipulation library
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-319</id>
    <updated>2010-02-12T06:12:38Z</updated>
    <title>Eric Hodel: "list" -- List gems starting with a string</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page34" />
    <content type="html">&lt;p&gt;&lt;tt&gt;gem list&lt;/tt&gt; will list all gems whose name &lt;em&gt;starts with&lt;/em&gt; the given&lt;br /&gt;
string.  If no string is provided, all gems are listed.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem list [STRING] [options]

  Options:
    -d, --[no-]details               Display detailed information of gem(s)
    -l, --local                      Restrict operations to the LOCAL domain (default)
    -r, --remote                     Restrict operations to the REMOTE domain
    -b, --both                       Allow LOCAL and REMOTE operations

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    STRING   start of gem name to look for

  Summary:
    Display all gems whose name starts with STRING

  Defaults:
    --local --no-details
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;List all remote gems starting with &amp;#8220;a&amp;#8221;.&lt;/p&gt;
&lt;pre&gt;
$ gem list -r a

*** REMOTE GEMS ***

activerecord (0.8.4, 0.8.3, 0.8.2, 0.8.1, 0.8.0, 0.7.6, 0.7.5)
    Implements the ActiveRecord pattern for ORM.

arrayfields (3.3.0)
    Allow keyword access to arrays
&lt;/pre&gt;
&lt;p&gt;List all gems, local and remote.&lt;/p&gt;
&lt;pre&gt;
$ gem list --both

*** LOCAL GEMS ***

  ...

*** REMOTE GEMS ***

  ...
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-318</id>
    <updated>2010-02-12T06:12:28Z</updated>
    <title>Eric Hodel: "install" -- Installing a gem</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page33" />
    <content type="html">&lt;p&gt;&lt;tt&gt;gem install&lt;/tt&gt; will install the named gem. It will&lt;br /&gt;
attempt a local installation (i.e. a .gem file in the current&lt;br /&gt;
directory), and if that fails, it will attempt to download and install&lt;br /&gt;
the most recent version of the gem you want.&lt;/p&gt;
&lt;p&gt;If a gem is being installed remotely, and it depends on other gems&lt;br /&gt;
that are not installed, then gem will download and install those,&lt;br /&gt;
after you have confirmed the operation.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem install GEMNAME [options]

  Options:
    -v, --version VERSION            Specify version of gem to install
    -l, --local                      Restrict operations to the LOCAL domain (default)
    -r, --remote                     Restrict operations to the REMOTE domain
    -b, --both                       Allow LOCAL and REMOTE operations
    -i, --install-dir DIR
    -d, --[no-]rdoc                  Generate RDoc documentation for the gem on install
    -f, --[no-]force                 Force gem to install, bypassing dependency checks
    -t, --[no-]test                  Run unit tests prior to installation
    -w, --[no-]wrappers              Use bin wrappers for executables
                                     Not available on dosish platforms
    -P, --trust-policy POLICY        Specify gem trust policy.
        --ignore-dependencies        Do not install any required dependent gems
    -y, --include-dependencies       Unconditionally install the required dependent gems

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    GEMNAME   name of gem to install

  Summary:
    Install a gem into the local repository

  Defaults:
    --both --version '&amp;gt; 0' --rdoc --no-force --no-test
    --install-dir /usr/local/lib/ruby/gems/1.8
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;These examples show how &lt;span class="caps"&gt;GEMNAME&lt;/span&gt; can be specified:&lt;/p&gt;
&lt;p&gt;This will install local &amp;#8216;copland.gem&amp;#8217; or remote &amp;#8216;copland-0.3.0&amp;#8217; (for&lt;br /&gt;
instance), but not a local file &amp;#8216;copland-0.3.0&amp;#8217; gem.&lt;/p&gt;
gem install copland
&lt;p&gt;This will install local &amp;#8216;copland-0.2.0&amp;#8217; or remote &amp;#8216;copland-0.2.0&amp;#8217;.&lt;/p&gt;
gem install copland-0.2.0
&lt;p&gt;This will only succeed if the local file exists. This will not resolve to a remote gem.&lt;/p&gt;
gem install copland-0.2.0.gem

&lt;pre&gt;
  gem install --remote copland         # shortcut: gem ins -R copland
  gem install copland --version '&amp;gt; 0.2'
  gem install copland --gen-rdoc --run-tests
  gem install copland --install-stub
&lt;/pre&gt;
&lt;p&gt;Here is an example session where a dependency is automatically&lt;br /&gt;
downloaded and resolved.&lt;/p&gt;
&lt;pre&gt;
$ gem install copland
Attempting local installation of ''
Local gem file not found: copland.gem
Attempting remote installation of 'copland'
Install required dependency log4r? [Yn]   y
Successfully installed copland, version 0.3.0
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-317</id>
    <updated>2010-02-12T06:12:13Z</updated>
    <title>Eric Hodel: "help" -- Provide help about gem commands</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page32" />
    <content type="html">&lt;p&gt;&lt;tt&gt;gem help&lt;/tt&gt; provides information about the syntax and options&lt;br /&gt;
available on the gem command.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem help ARGUMENT [options]

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    commands      List all 'gem' commands
    examples      Show examples of 'gem' usage
    &amp;lt;command&amp;gt;     Show specific help for &amp;lt;command&amp;gt;

  Summary:
    Provide help on the 'gem' command
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-316</id>
    <updated>2010-02-12T06:12:00Z</updated>
    <title>Eric Hodel: "environment" -- Display information about the gem environment</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page31" />
    <content type="html">&lt;p&gt;Gems uses several paths and directories to perform its work.  This&lt;br /&gt;
command will display the information the gem command has found.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem environment [args] [options]

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    packageversion  display the package version
    gemdir          display the path where gems are installed
    gempath         display path used to search for gems
    version         display the gem format version
    remotesources   display the remote gem servers
    &amp;lt;omitted&amp;gt;       display everything

  Summary:
    Display RubyGems environmental information
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;pre&gt;
$ gem environment
Rubygems Environment:
  - VERSION: 0.6 (0.6.1)
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
  - GEM PATH:
     - /usr/local/lib/ruby/gems/1.8
  - REMOTE SOURCES:
     - http://gems.rubyforge.org
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-315</id>
    <updated>2010-02-12T06:11:52Z</updated>
    <title>Eric Hodel: "dependency" -- List the dependencies of a gem</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page78" />
    <content type="html">&lt;p&gt;The &lt;code&gt;dependency&lt;/code&gt; command displays the declared dependencies of any install gem package.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem dependency GEMNAME [options]

  Options:
    -v, --version VERSION            Specify version of gem to uninstall
    -r, --[no-]reverse-dependencies  Include reverse dependencies in the output
    -p, --pipe                       Pipe Format (name --version ver)

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    GEMNAME   name of gems to show

  Summary:
    Show the dependencies of an installed gem

  Defaults:
    --version '&amp;gt; 0' --no-reverse
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;Here is the dependencies of the Rails gem.&lt;/p&gt;
&lt;pre&gt;
$ gem dependency rails -v 0.10.1
Gem rails-0.10.1
  Requires
    rake (&amp;gt;= 0.4.15)
    activesupport (= 1.0.1)
    activerecord (= 1.8.0)
    actionpack (= 1.5.1)
    actionmailer (= 0.7.1)
    actionwebservice (= 0.6.0)

&lt;/pre&gt;
&lt;p&gt;Adding a &lt;code&gt;--reverse-dependencies&lt;/code&gt; option adds the following bit of information:&lt;/p&gt;
&lt;pre&gt;
$ gem dependency rails -v 0.10.1 --reverse-dependencies
Gem rails-0.10.1
  Requires
    rake (&amp;gt;= 0.4.15)
    activesupport (= 1.0.1)
    activerecord (= 1.8.0)
    actionpack (= 1.5.1)
    actionmailer (= 0.7.1)
    actionwebservice (= 0.6.0)
  Used by
    storycards-0.0.2 (rails (&amp;gt;= 0.7.0))
&lt;/pre&gt;
&lt;p&gt;Finally, the &lt;code&gt;--pipe&lt;/code&gt; option for the dependency command puts out the dependencies in a format that could be piped to another command.&lt;/p&gt;
&lt;pre&gt;
$ gem dependency rails -v 0.10.1 --pipe
rake --version '&amp;gt;= 0.4.15'
activesupport --version '= 1.0.1'
activerecord --version '= 1.8.0'
actionpack --version '= 1.5.1'
actionmailer --version '= 0.7.1'
actionwebservice --version '= 0.6.0'
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-314</id>
    <updated>2010-02-12T06:11:44Z</updated>
    <title>Eric Hodel: "contents" -- Display the files contained in an installed gem</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page94" />
    <content type="html">&lt;p&gt;(new in version 0.8.11)&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;contents&lt;/code&gt; command will list the full path names of all the files&lt;br /&gt;
contained in the gem.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem contents [options]

  Options:
    -l, --list                       List the files inside a Gem
    -V, --version                    Specify version for gem to view
    -s, --spec-dir a,b,c             Search for gems under specific paths
    -v, --verbose                    Be verbose when showing status

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Summary:
    Disply the contents of the installed gems
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;The following command displays the files included in the Rake gem.&lt;/p&gt;
&lt;pre&gt;
$ gem contents rake
traken$ gem inspect rake
/usr/local/lib/ruby/gems/1.8/gems/rake-0.5.4.3/install.rb
/usr/local/lib/ruby/gems/1.8/gems/rake-0.5.4.3/CHANGES
/usr/local/lib/ruby/gems/1.8/gems/rake-0.5.4.3/Rakefile
/usr/local/lib/ruby/gems/1.8/gems/rake-0.5.4.3/README
/usr/local/lib/ruby/gems/1.8/gems/rake-0.5.4.3/TODO
[... truncated ...]
&lt;/pre&gt;
&lt;h3&gt;Limitations&lt;/h3&gt;
&lt;p&gt;Currently there is no way to specify the version of the gem you wish&lt;br /&gt;
to view.&lt;/p&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-313</id>
    <updated>2010-02-12T06:11:35Z</updated>
    <title>Eric Hodel: "cleanup" -- Cleanup old versions in the repository</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page77" />
    <content type="html">&lt;p&gt;(new in version 0.8.7)&lt;/p&gt;
&lt;p&gt;This command will remove (uninstall) all the versions of a gem, except&lt;br /&gt;
for the latest one.  If no gemname is given in the command line, cleanup will be run agains all installed gems.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem cleanup [options]

  Options:
    -d, --dryrun

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    GEMNAME(s)   name of gem(s) to cleanup

  Summary:
    Cleanup old versions of installed gems in the local repository

  Defaults:
    --no-dryrun
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;pre&gt;
$ gem cleanup
Rubygems Environment:
  - VERSION: 0.6 (0.6.1)
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
  - GEM PATH:
     - /usr/local/lib/ruby/gems/1.8
  - REMOTE SOURCES:
     - http://gems.rubyforge.org
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-312</id>
    <updated>2010-02-12T06:11:27Z</updated>
    <title>Eric Hodel: "check" -- Check installed gems for problems</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page30" />
    <content type="html">&lt;p&gt;The check command is used to verify that a gem in is good working order.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem check [options]

  Options:
    -v, --verify FILE                Verify gem file against its internal checksum
    -a, --alien                      Report 'unmanaged' or rogue files in the gem repository
    -t, --test                       Run unit tests for gem
    -V, --version                    Specify version for which to run unit tests

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Summary:
    Check installed gems
&lt;/pre&gt;
&lt;p&gt;The &lt;em&gt;verify&lt;/em&gt; option checks a gem file for corruption.  If the file is&lt;br /&gt;
not exactly like it was built, verify will complain.  (Note: This is a&lt;br /&gt;
simple integrity check.  It is not checking for &lt;span class="caps"&gt;PGP&lt;/span&gt; like signatures).&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;alien&lt;/em&gt; option checks an installed gem to see if any of the files&lt;br /&gt;
have been tampered with.&lt;/p&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;The following check is run against a valid rake gem file.&lt;/p&gt;
&lt;pre&gt;
$ gem check -v pkg/rake-0.4.0.gem 
Verifying gem: 'pkg/rake-0.4.0.gem'
&lt;/pre&gt;
&lt;p&gt;The following check shows that the rake gem file is invalid.&lt;/p&gt;
&lt;pre&gt;
$ gem check -v pkg/rake-0.4.0.gem
Verifying gem: 'pkg/rake-0.4.0.gem'
ERROR:  pkg/rake-0.4.0.gem is invalid.
&lt;/pre&gt;
&lt;p&gt;In this installation of &lt;nowiki&gt;ActiveRecord&lt;/nowiki&gt;, the postgreSQL driver&lt;br /&gt;
has been locally patched after the gem was installed.  This is how the alien&lt;br /&gt;
option reports it.&lt;/p&gt;
&lt;pre&gt;
$ gem check --alien
Performing the 'alien' operation
madeleine-0.6 is error-free

madeleine-0.6.1 is error-free

rake-0.4.0 is error-free

rake-0.3.2 is error-free

copland-0.3.0 is error-free

sources-0.0.1 has 2 problems

iterator-0.5 is error-free

activerecord-0.8.1 has 2 problems
	lib/active_record/connection_adapters/postgresql_adapter.rb:
	installed file doesn't match original from gem

	/usr/local/lib/ruby/gems/1.8/cache/activerecord-0.8.1.gem:
	Unmanaged files in gem: ["lib/active_record/connection_adapters/postgresql_adapter.rb~"]


[... remaining output elided ...]
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-311</id>
    <updated>2010-02-12T06:11:18Z</updated>
    <title>Eric Hodel: "cert" -- Support signing and managing signed gems</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page93" />
    <content type="html">&lt;p&gt;The cert command manages the certificates needed to sign gems.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem cert [options]

  Options:
    -a, --add CERT                   Add a trusted certificate.
    -l, --list                       List trusted certificates.
    -r, --remove STRING              Remove trusted certificates containing STRING.
    -b, --build EMAIL_ADDR           Build private key and self-signed certificate for EMAIL_ADDR.
    -C, --certificate CERT           Certificate for --sign command.
    -K, --private-key KEY            Private key for --sign command.
    -s, --sign NEWCERT               Sign a certificate with my key and certificate.

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Summary:
    Adjust RubyGems certificate settings.
&lt;/pre&gt;
&lt;p&gt;See the &lt;a href="http://docs.rubygems.org/read/chapter/21"&gt;chapter on signing&lt;br /&gt;
gems&lt;/a&gt; in the :Ruby Users&lt;br /&gt;
Guide&amp;quot;:http://docs.rubygems.org/read/book/1 for details.&lt;/p&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;Build a private key and certificate for gemmaster@example.com.&lt;br /&gt;
Substitute your own email address for your own certificates.&lt;/p&gt;
&lt;pre&gt;$ gem cert --build gemmaster@example.com&lt;/pre&gt;
&lt;p&gt;Add a certificate to the list of trusted certificates.  The trusted&lt;br /&gt;
certificate list will be consulted when installing signed gems.&lt;/p&gt;
&lt;pre&gt;$ gem cert --add gem-public_cert.pem&lt;/pre&gt;
&lt;p&gt;Sign a certificate with the specified key and certificate (note that&lt;br /&gt;
this modifies client_cert.pem!)&lt;/p&gt;
&lt;pre&gt;
$ gem cert \
     -K /mnt/floppy/issuer-priv_key.pem \
     -C issuer-pub_cert.pem \
     --sign client_cert.pem
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-310</id>
    <updated>2010-02-12T06:11:07Z</updated>
    <title>Eric Hodel: "build" -- Build a gem file from a specification</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page29" />
    <content type="html">&lt;p&gt;The build command is used by developers to package their Ruby software&lt;br /&gt;
into a single gem file that can be distributed.  The build command&lt;br /&gt;
requires a gemspec file to describe the metadata in the packge.  You&lt;br /&gt;
can see a good example of using build in CreateAGemInTenMinutes.&lt;/p&gt;
&lt;p&gt;A yaml file containing the Gem::Specification object built by a&lt;br /&gt;
gemspec (instead of a gemspec file) may also be also be used with the&lt;br /&gt;
build command.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem build GEMSPEC_FILE [options]

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    GEMSPEC_FILE      name of gemspec file used to build the gem

  Summary:
    Build a gem from a gemspec
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;This example builds a the rake package from a gemspec file.&lt;/p&gt;
&lt;pre&gt;
$ gem build rake.gemspec 
Attempting to build gem spec 'rake.gemspec'
  Successfully built RubyGem
  Name: rake
  Version: 0.4.0
  File: rake-0.4.0.gem
&lt;/pre&gt;
&lt;p&gt;Of course, rake isn&amp;#8217;t normally built from a gemspec.  It uses a&lt;br /&gt;
special gem building task to build the gem directly from the rakefile.&lt;br /&gt;
See CreateAGemUsingRake for more details.&lt;/p&gt;
&lt;pre&gt;
$ rake gem
(in /home/jim/working/rubyforge/rake)
  Successfully built RubyGem
  Name: rake
  Version: 0.4.0
  File: rake-0.4.0.gem
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-309</id>
    <updated>2010-02-12T06:09:30Z</updated>
    <title>Eric Hodel: update -- Update your installed gems</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page40" />
    <content type="html">&lt;p&gt;The update command will check the named gem (or all of your installed&lt;br /&gt;
gems if no name is given) and update each one to a newer version if&lt;br /&gt;
one is available.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;
Usage: gem update [options]

  Options:
    -i, --install-dir DIR
    -d, --[no-]rdoc                  Generate RDoc documentation for the gem on install
    -f, --[no-]force                 Force gem to install, bypassing dependency checks
    -t, --[no-]test                  Run unit tests prior to installation
    -w, --[no-]wrappers              Use bin wrappers for executables
                                     Not available on dosish platforms
    -P, --trust-policy POLICY        Specify gem trust policy.
        --ignore-dependencies        Do not install any required dependent gems
    -y, --include-dependencies       Unconditionally install the required dependent gems
        --system                     Update the RubyGems system software

  Common Options:
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -h, --help                       Get help on this command
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging

  Arguments:
    GEMNAME(s)   name of gem(s) to update

  Summary:
    Upgrade the named gem (or all installed gems) in the local repository

  Defaults:
    --rdoc --no-force --no-test
    --install-dir /usr/local/lib/ruby/gems/1.8
&lt;/pre&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;pre&gt;
$ gem update
Upgrading installed gems...
Attempting remote upgrade of activerecord
Attempting remote installation of 'activerecord'
Successfully installed activerecord, version 0.8.4
Attempting remote upgrade of csbattery
Attempting remote installation of 'csbattery'
Successfully installed csbattery, version 0.2.2
All gems up to date
&lt;/pre&gt;
&lt;hr/&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-308</id>
    <updated>2010-02-12T06:08:21Z</updated>
    <title>Eric Hodel: "which" -- locate library files</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/10#page103" />
    <content type="html">&lt;p&gt;&lt;code&gt;gem which&lt;/code&gt; works much like the unix shell &amp;#8216;which&amp;#8217; command.  Given a include file reference, it will locate that file in ruby libraries and gem repositories and display the file path for the file.&lt;/p&gt;
&lt;p&gt;For example, if you would like to know where the rake/testtask file might be located, just type:&lt;/p&gt;
&lt;pre&gt;
$ gem which rake/testtask
/usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/lib/rake/testtask.rb
&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;gem which&lt;/code&gt; will work with regular (non-gem) Ruby libraries as well.&lt;/p&gt;
&lt;pre&gt;
$ gem which socket
/usr/local/lib/ruby/1.8/i686-linux/socket.so
&lt;/pre&gt;
&lt;p&gt;See &lt;code&gt;gem help which&lt;/code&gt; for usage information.&lt;/p&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Eric Hodel</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-306</id>
    <updated>2010-02-09T23:55:05Z</updated>
    <title>Eric Hodel: Installing RubyGems</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/3#page13" />
    <content type="html">&lt;p&gt;Get it from &lt;a href="http://rubyforge.org/frs/?group_id=126"&gt;RubyForge&lt;/a&gt; (http://rubyforge.org/frs/?group_id=126) and run (as root, if appropriate and necessary)&lt;/p&gt;
ruby setup.rb
&lt;p&gt;It&amp;#8217;s easy.  It installs the required library files and the &lt;strong&gt;gem&lt;/strong&gt; command.  This command gives us the power to do everything else in this document, except distribute gems (for now!).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Debian and Ubuntu&lt;/strong&gt;: Debian and Ubuntu do not automatically include all the standard Ruby libararies in the basic Ruby package. As a result, you may need to &amp;#8216;&amp;#8217;apt-get&amp;#8217;&amp;#8217; libyaml-ruby and libzlib-ruby before you can install rubygems.  Additionally, you may need to install ruby-dev in order to install gems that have C extensions.&lt;/p&gt;</content>
  </entry>

  <entry>
    <author>
      <name>Ryan Davis</name>
    </author>
    <id>tag:docs.rubygems.org,2004:Hieraki-305</id>
    <updated>2010-01-26T23:15:39Z</updated>
    <title>Ryan Davis: Building a gem</title>
    <link rel="alternate" type="text/html" href="http://docs.rubygems.org/read/chapter/5#page18" />
    <content type="html">&lt;p&gt;This is a skimpy overview; see the DeveloperGuide for the real meat.&lt;/p&gt;
&lt;p&gt;Let&amp;#8217;s say we have a package called &amp;#8217;&amp;#8217;mygem&amp;#8217;&amp;#8217; which is at version 2.1.&lt;/p&gt;
&lt;p&gt;Building a gem involves two steps:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;creating a &lt;em&gt;gem specification file&lt;/em&gt; (&lt;tt&gt;mygem.gemspec&lt;/tt&gt;), which is Ruby code; and&lt;/li&gt;
	&lt;li&gt;running &lt;tt&gt;gem build mygem.gemspec&lt;/tt&gt; to create the gem file (&lt;tt&gt;mygem-2.1.gem&lt;/tt&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The specification contains Ruby code to create a &lt;tt&gt;Gem::Specification&lt;/tt&gt; object, which defines all of the information we saw above in &lt;i&gt;Looking at an installed gem&lt;/i&gt;.&lt;/p&gt;
&lt;p&gt;The gem file contains everything needed to install itself on another computer, including the specification and all the file data.&lt;/p&gt;
&lt;p&gt;See?  Building a gem is very easy!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;a href="http://rake.rubyforge.org"&gt;rake&lt;/a&gt; (http://rake.rubyforge.org) is a big help in creating gem files in a project setting, where the version number is always changing, etc.&lt;/p&gt;</content>
  </entry>

</feed>
