Работает ли новый Omniauth 1.0.0 с Devise? - PullRequest
1 голос
/ 03 ноября 2011

Я сейчас использую: gem "omniauth", '0.3.2'

Я пытаюсь перейти на omniauth 1.0.0, заменив вышеприведенное на:

gem 'omniauth-github', :git => 'git://github.com/intridea/omniauth-github.git' # Core, requires a OA Stratedgy gem for each provider
gem 'omniauth-facebook', :git => 'git://github.com/mkdynamic/omniauth-facebook.git' # FB OmmiAuth Stratedgy
gem 'omniauth-contrib', :git => 'git://github.com/intridea/omniauth-contrib.git' # TWITTER OmmiAuth Stratedgy

Но при установке / обновлении я получаю сообщение об ошибке:

$ bundle install
Updating git://github.com/intridea/omniauth-github.git
Updating git://github.com/mkdynamic/omniauth-facebook.git
Updating git://github.com/intridea/omniauth-contrib.git
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "hashie":
  In snapshot (Gemfile.lock):
    hashie (1.1.0)

  In Gemfile:
    omniauth-facebook depends on
      hashie (~> 1.2)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "omniauth":
  In Gemfile:
    omniauth-contrib depends on
      omniauth (~> 1.0)

    omniauth-facebook depends on
      omniauth (1.0.0.rc2)

Предложения? Мысли? Thx

1 Ответ

5 голосов
/ 11 ноября 2011

У меня была такая же проблема. Чтобы использовать гем omniauth-facebook, вам нужно установить omniauth 1.0, как в вашем Gemfile:

драгоценный камень "omniauth", '> = 0.3.2'

Это и обновление пакета решили проблему для меня.

...