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