在Rails 4中,在我的gemfile文件中:
宝石‘全方位-wordpress-OAuth2-插件’,github:‘jwickard/全方位-wordpress-OAuth2-plugin’
然后我运行bundle:
Fetching git://github.com/jwickard/omniauth-wordpress-oauth2-plugin.git
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Could not find gem 'omniauth-wordpress-oauth2-plugin (>= 0) ruby' in git://github.com/jwickard/omniauth-wordpress-oauth2-plugin.git (at master).
Source does not contain any versions of 'omniauth-wordpress-oauth2-plugin (>= 0) ruby'我尝试了1.9.3,2.0,2.1,使用rvm
有什么想法吗?
发布于 2014-07-24 08:54:26
您应该添加的行是:
gem 'omniauth-wordpress_hosted', github: 'jwickard/omniauth-wordpress-oauth2-plugin'因为他更改了它的宝石名称,而没有更新文档。在这里看到:https://github.com/jwickard/omniauth-wordpress-oauth2-plugin/commit/0fce4274b3b8ffedc28332f01076d65b60c7c158#diff-89bd019d22c33b336d6c70080cc17cd7R9
我刚刚测试过,bundle install用这个名字工作;)
https://stackoverflow.com/questions/24928235
复制相似问题