Project

gem_dir

0.0
No commit activity in last 3 years
No release in over 3 years
Prints the install directory for the selected gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9.5
 Project Readme

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.