omn​​iauth-wordpress-oauth2-plugin gem install错误

时间:2014-07-24 08:04:51

标签: ruby-on-rails gem install

On Rails 4,在我的gemfile中:

gem'omniauth-wordpress-oauth2-plugin',github:'jwickard / omniauth-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'

我尝试过使用rvm

的1.9.3,2.0,2.1

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

您应添加的行是:

gem 'omniauth-wordpress_hosted', github: 'jwickard/omniauth-wordpress-oauth2-plugin'

正如改变它的宝石名称一样,没有更新文档。见到这里:https://github.com/jwickard/omniauth-wordpress-oauth2-plugin/commit/0fce4274b3b8ffedc28332f01076d65b60c7c158#diff-89bd019d22c33b336d6c70080cc17cd7R9

我刚刚测试过,bundle install使用该名称;)