<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Editing gems</title>
    <link>http://hollandonrails.nl/articles/474-Editing-gems</link>
    <description>There are those days when you would like to edit the gem that you are using.
Usually, the best way is just to checkout the gem at &quot;github&quot;:http://github.com or &quot;gemcutter&quot;:http://gemcutter.org, but if you want to edit a specific version, or just a quicklook this can become somewhat time consuming.

Instead of searching the web for the source, you could always just look at your gem locally. Mine are installed at:
&lt;code&gt;
/Library/Ruby/Gems/1.8/gems/
&lt;/code&gt;

But, there is, off course, also a *gem* to edit gems!

&lt;code&gt;
gem install gemedit
&lt;/code&gt;

And then you can just edit your executing a command like this:

&lt;code&gt;
gem edit gemname
&lt;/code&gt;

Sinds a lot of developers use &quot;textmate&quot;:http://macromates.com :

&lt;code&gt;
gem edit devise -e mate
&lt;/code&gt;

Or you could just add *$GEMEDITOR* to your profile. If you have *$EDITOR* already set, it will pickup that, or fall back to &quot;vi&quot;:http://en.wikipedia.org/wiki/Vi if no editor is specified.</description>
  </channel>
</rss>
