Joined January 2013
·
Posted to
quickly find where a gem is installed
over 1 year
ago
@hanjianwei gem which
returns results that include the full name of the gem (e.g. gem which bundler
returns a path ending in bundler.rb
where in this case i want only the directory name)
In this particular case, I want to know the gem's directory from inside Ruby, not necessarily from the command line. I use pry here to demonstrate interactively.
Achievements
209 Karma
8,356 Total ProTip Views
Forked
Have a project valued enough to be forked by someone else
Narwhal
Have at least one original repo where Clojure is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
Cub
Have at least one original jQuery or Prototype open source repo
Raven
Have at least one original repo where some form of shell script is the dominant language
Heh. There's a reason I added the 'choke on your own hubris' part. ;-)