【问题标题】:omniauth-wordpress-oauth2-plugin gem install erroromn​​iauth-wordpress-oauth2-plugin gem 安装错误
【发布时间】:2014-07-24 08:04:50
【问题描述】:

在 Rails 4 上,在我的 gemfile 中:

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

然后我运行捆绑:

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

有什么想法吗?

【问题讨论】:

    标签: ruby-on-rails gem installation


    【解决方案1】:

    您应该添加的行是:

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

    因为这个人改变了它的 gem 名称,但没有更新文档。在这里看到:https://github.com/jwickard/omniauth-wordpress-oauth2-plugin/commit/0fce4274b3b8ffedc28332f01076d65b60c7c158#diff-89bd019d22c33b336d6c70080cc17cd7R9

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

    【讨论】:

      猜你喜欢
      • 2011-10-06
      • 1970-01-01
      • 1970-01-01
      • 2017-12-07
      • 1970-01-01
      • 2012-01-06
      • 2023-03-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多