<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Maura van der Linden - Blog &#187; Ruby</title>
	<atom:link href="http://www.mauravanderlinden.com/blog/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mauravanderlinden.com/blog</link>
	<description>Author</description>
	<lastBuildDate>Sat, 26 Jun 2010 02:26:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby Gems &#8211; The Basics</title>
		<link>http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/</link>
		<comments>http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 19:20:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[ruby gem basic]]></category>
		<category><![CDATA[ruby gem management]]></category>
		<category><![CDATA[Ruby Gems]]></category>
		<category><![CDATA[RubyGems]]></category>

		<guid isPermaLink="false">http://www.mauravanderlinden.com/blog/?p=48</guid>
		<description><![CDATA[Ruby Gems can be a little interesting to manage, especially to someone as new to it as I am. In the course of my own self-education, I&#8217;ve compiled a little list of what I consider the basic commands. Hopefully this will be of some help to others as well.
Gem Sources
To see which gem servers or [...]]]></description>
			<content:encoded><![CDATA[<p>Ruby Gems can be a little interesting to manage, especially to someone as new to it as I am. In the course of my own self-education, I&#8217;ve compiled a little list of what I consider the basic commands. Hopefully this will be of some help to others as well.</p>
<h4>Gem Sources</h4>
<p>To see which gem servers or repositories your installation of RubyGems is using, open a command prompt and type:</p>
<p><code>gem sources</code></p>
<p>The system will return with a list of the repositories and caches Ruby is using to look for gems. In the case of my local system, I got back:</p>
<p><code>C:\>gem sources<br />
*** CURRENT SOURCES ***<br />
<br/></p>
<p>http://gems.rubyforge.org/</code></p>
<p>Which shows that my system is only looking at RubyForge for its gems right now. This can be useful to know if you get errors that gems cannot be found.</p>
<h4>Installing Gems</h4>
<p>To install a new gem, you can open a command prompt and type:</p>
<p><code>gem install <em>gemname</em></code></p>
<p>This will install the latest version of the gem <em>gemname</em> from the repository(ies) your local system knows about.</p>
<p>If you have a local copy of the gem and you need to install that particular one, you can open a command prompt, navigate to the directory that contains the local copy and type:</p>
<p><code>gem install <em>gemname</em> --local</code></p>
<p>If you need only a particular version of a gem that might not be the latest version you&#8217;d get by default, you can open a command prompt and type:</p>
<p><code>gem install <em>gemname</em> --version <em>#.#.#</em></code></p>
<p>This will install version <em>#.#.#</em> of gem <em>gemname</em>.</p>
<h4>Uninstalling Gems</h4>
<p>Uninstalling a gem can be done by opening a command prompt and typing:</p>
<p><code>gem uninstall <em>gemname</em></code></p>
<p>This will uninstall the gem <em>gemname</em>. If you have more than one version of that gem installed, RubyGems will display a numbered list of the versions and you can enter the number of the version you want to uninstall or choose to uninstall all versions of gem <em>gemname</em>.</p>
<h4>Updating Gems</h4>
<p>You can update installed gems by opening a command prompt and typing:</p>
<p><code>gem update <em>gemname</em></code></p>
<p>This will update the gem <em>gemname</em> to the latest version in the gem repository RubyGems is pointing to.</p>
<h4>Updating the RubyGems System</h4>
<p>Sometimes you will need to update the actual RubyGems management system. To do this, open a command prompt and type:</p>
<p><code>gem update --system</code></p>
<p>If you are having problems updating your gems or using them, it usually won&#8217;t hurt to try to do this update.</p>
<h4>Check Gem Dependencies</h4>
<p>If you need to know what the dependencies of an installed gem are, you can open a command prompt and type:</p>
<p><code>gem dependency <em>gemname</em></code></p>
<p>This will list the dependencies of the gem <em>gemname</em>.</p>
<h4>Gem Help</h4>
<p>There is a good amount of help embedded in the RubyGems system. Often you can answer your own questions on how to manipulate your gems using this help. To access the list of commands, open a command  prompt and type:</p>
<p><code>gem help commands</code></p>
<p>To get help on an individual command, open a command prompt and type:</p>
<p><code>gem help <em>command</em></code></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/&amp;title=Ruby+Gems+-+The+Basics" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/&amp;title=Ruby+Gems+-+The+Basics" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/&amp;title=Ruby+Gems+-+The+Basics&amp;desc=Ruby%20Gems%20can%20be%20a%20little%20interesting%20to%20manage%2C%20especially%20to%20someone%20as%20new%20to%20it%20as%20I%20am.%20In%20the%20course%20of%20my%20own%20self-education%2C%20I%27ve%20compiled%20a%20little%20list%20of%20what%20I%20consider%20the%20basic%20commands.%20Hopefully%20this%20will%20be%20of%20some%20help%20to%20others%20as%20well.%0D%0A%0D%0AGem%20Sources%0D%0ATo%20see%20which%20gem%20servers%20or%20r" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/&amp;title=Ruby+Gems+-+The+Basics&amp;summary=Ruby%20Gems%20can%20be%20a%20little%20interesting%20to%20manage%2C%20especially%20to%20someone%20as%20new%20to%20it%20as%20I%20am.%20In%20the%20course%20of%20my%20own%20self-education%2C%20I%27ve%20compiled%20a%20little%20list%20of%20what%20I%20consider%20the%20basic%20commands.%20Hopefully%20this%20will%20be%20of%20some%20help%20to%20others%20as%20well.%0D%0A%0D%0AGem%20Sources%0D%0ATo%20see%20which%20gem%20servers%20or%20r&amp;source=Maura van der Linden - Blog" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/&amp;bm_description=Ruby+Gems+-+The+Basics&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/&amp;title=Ruby+Gems+-+The+Basics" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/&amp;title=Ruby+Gems+-+The+Basics" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/&amp;title=Ruby+Gems+-+The+Basics" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Ruby+Gems+-+The+Basics+-+http://b2l.me/h69q8&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.mauravanderlinden.com/blog/2009/03/11/ruby-gems-the-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where is Ruby looking for Gems?</title>
		<link>http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/</link>
		<comments>http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 06:06:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Ruby Gems]]></category>
		<category><![CDATA[RubyGems]]></category>

		<guid isPermaLink="false">http://www.mauravanderlinden.com/blog/?p=43</guid>
		<description><![CDATA[If you want to know where your Ruby installation is looking to do Gem installations, you can enter the following at a command prompt to find out:

gem sources


You&#8217;ll get back a message that looks similar to this:

*** CURRENT SOURCES ***

Bulk updating Gem source index for: http://gems.rubyforge.org
http://gems.rubyforge.org






		
			Subscribe to the comments for this post?
		
		
			Share this on del.icio.us
		
		
			Digg [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to know where your Ruby installation is looking to do Gem installations, you can enter the following at a command prompt to find out:</p>
<p><code><br />
gem sources<br />
<br/><br />
</code></p>
<p>You&#8217;ll get back a message that looks similar to this:</p>
<p><code><br />
*** CURRENT SOURCES ***<br />
<br/><br />
Bulk updating Gem source index for: http://gems.rubyforge.org</p>
<p>http://gems.rubyforge.org</p>
<p><br/><br />
</code></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/&amp;title=Where+is+Ruby+looking+for+Gems%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/&amp;title=Where+is+Ruby+looking+for+Gems%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/&amp;title=Where+is+Ruby+looking+for+Gems%3F&amp;desc=If%20you%20want%20to%20know%20where%20your%20Ruby%20installation%20is%20looking%20to%20do%20Gem%20installations%2C%20you%20can%20enter%20the%20following%20at%20a%20command%20prompt%20to%20find%20out%3A%0D%0A%0D%0A%0D%0Agem%20sources%0D%0A%0D%0A%0D%0A%0D%0AYou%27ll%20get%20back%20a%20message%20that%20looks%20similar%20to%20this%3A%0D%0A%0D%0A%0D%0A%2A%2A%2A%20CURRENT%20SOURCES%20%2A%2A%2A%0D%0A%0D%0ABulk%20updating%20Gem%20source%20index%20for%3A%20http%3A%2F%2Fg" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/&amp;title=Where+is+Ruby+looking+for+Gems%3F&amp;summary=If%20you%20want%20to%20know%20where%20your%20Ruby%20installation%20is%20looking%20to%20do%20Gem%20installations%2C%20you%20can%20enter%20the%20following%20at%20a%20command%20prompt%20to%20find%20out%3A%0D%0A%0D%0A%0D%0Agem%20sources%0D%0A%0D%0A%0D%0A%0D%0AYou%27ll%20get%20back%20a%20message%20that%20looks%20similar%20to%20this%3A%0D%0A%0D%0A%0D%0A%2A%2A%2A%20CURRENT%20SOURCES%20%2A%2A%2A%0D%0A%0D%0ABulk%20updating%20Gem%20source%20index%20for%3A%20http%3A%2F%2Fg&amp;source=Maura van der Linden - Blog" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/&amp;bm_description=Where+is+Ruby+looking+for+Gems%3F&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/&amp;title=Where+is+Ruby+looking+for+Gems%3F" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/&amp;title=Where+is+Ruby+looking+for+Gems%3F" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/&amp;title=Where+is+Ruby+looking+for+Gems%3F" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Where+is+Ruby+looking+for+Gems%3F+-+http://b2l.me/h69rb&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.mauravanderlinden.com/blog/2009/03/07/where-is-ruby-looking-for-gems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
