Created
July 6, 2012 07:48
-
-
Save crguezl/3058757 to your computer and use it in GitHub Desktop.
Returns the path where the gem being used is installed. '$ gempath.rb sinatra'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
spec = Gem::Specification.find_by_name(ARGV.shift) | |
puts spec.gem_dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment