简体   繁体   English

omn​​iauth-wordpress-oauth2-plugin gem安装错误

[英]omniauth-wordpress-oauth2-plugin gem install error

On Rails 4, in my gemfile: 在Rails 4中,在我的gemfile中:

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

Then I run bundle: 然后我运行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'

I've tried with 1.9.3, 2.0, 2.1, using rvm 我已经尝试使用rvm与1.9.3、2.0、2.1

Any ideas? 有任何想法吗?

The line you should add is : 您应该添加的行是:

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

As the guy as changed it's gem name, without updating the documentation. 由于此人已更改,因此它是宝石名,而无需更新文档。 Seen here : https://github.com/jwickard/omniauth-wordpress-oauth2-plugin/commit/0fce4274b3b8ffedc28332f01076d65b60c7c158#diff-89bd019d22c33b336d6c70080cc17cd7R9 在这里看到: https : //github.com/jwickard/omniauth-wordpress-oauth2-plugin/commit/0fce4274b3b8ffedc28332f01076d65b60c7c158#diff-89bd019d22c33b336d6c70080cc17cd7R9

I just tested, bundle install works with that name ;) 我刚刚测试过, bundle install可以使用该名称;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM