I would like to get the path to the gem directory for the current ruby (under rbenv).
This gives me bin dir:
rbenv which ruby
which I could chop and satisfy my needs, but I would like to see if there is anything more direct.
I think that
rbenv prefix
- the best choice. It leaves me with something like
/Users/newalexandria/.rbenv/versions/1.9.3-p448
to which I add
/lib/ruby/gems/1.9.1/gems
I am worried about the gemstones version. I would like to see something better.
source
share