mperham / gem_dir

Adds the 'gem dir' command to RubyGems to display the root directory of a given gem.

This URL has Read+Write access

name age message
file README.markdown Loading commit data...
file Rakefile
file VERSION.yml
directory lib/ Wed Oct 28 18:18:24 -0700 2009 Initial commit [mperham]
directory test/
README.markdown

Gem Dir

Prints the root directory of the specified gem.

> gem dir -l rails
/Library/Ruby/Gems/1.8/gems/rails-2.3.4

Command line ninjas like myself can then do this, for example:

cd `gem dir -l memcache-client` && rake test

Installation:

Just install like any normal gem:

gem install gem_dir

You might need to install Gemcutter as a gem source:

gem install gemcutter
gem tumble

For more help:

gem dir --help

Thanks

Based on Adam Sanderson's sweet open_gem extension.