簡體   English   中英

omn​​iauth-wordpress-oauth2-plugin gem安裝錯誤

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

在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

有任何想法嗎?

您應該添加的行是:

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

由於此人已更改,因此它是寶石名,而無需更新文檔。 在這里看到: https : //github.com/jwickard/omniauth-wordpress-oauth2-plugin/commit/0fce4274b3b8ffedc28332f01076d65b60c7c158#diff-89bd019d22c33b336d6c70080cc17cd7R9

我剛剛測試過, bundle install可以使用該名稱;)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM