Determine Location Of Ruby Gems

2019-03-09 15:53发布

问题:

How do I determine the location of my ruby gems?

回答1:

you can try

gem which rails

to fetch location for particular gem, or

echo $GEM_HOME

to fetch home dir of your gems



回答2:

gem environment

...should give you all the info you need.



回答3:

With budler you can do:

bundle show <gem>

Reference: http://bundler.io/v1.1/bundle_show.html