ruby 确定红宝石的位置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11109279/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-06 05:13:12 来源:igfitidea点击:
Determine Location Of Ruby Gems
提问by Bruno
How do I determine the location of my ruby gems?
如何确定红宝石的位置?
回答by fl00r
you can try
你可以试试
gem which rails
to fetch location for particular gem, or
获取特定宝石的位置,或
echo $GEM_HOME
to fetch home dir of your gems
获取您的宝石的主目录
回答by Bruno
gem environment
...should give you all the info you need.
...应该给你你需要的所有信息。
回答by hakunin
With budler you can do:
使用 budler,您可以执行以下操作:
bundle show <gem>
Reference: http://bundler.io/v1.1/bundle_show.html

