【发布时间】:2017-10-09 09:02:15
【问题描述】:
我可以通过
找到gem的本地安装路径> gem which oauth
/Users/xxjjnn/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/oauth-0.4.7/lib/oauth.rb
当使用 Bundler 时,您可以指定 git repo 的来源:
gem 'deadlock_retry', git: "https://github.com/mperham/deadlock_retry.git"
但是,gemfile 中的许多 gem 没有指定 git 源。例如,在 github 中搜索“oauth”时,返回了许多分支。如果 Gemfile 没有指定来源,如何推断安装它的 URI 是什么?
这些工作都没有:
gem specification oauth | grep github
bundle install | grep oauth
【问题讨论】: