0

How to solve this dependency problem. I`m using sorcery to administration and I dont need oauth2(0.4.1).

Bundler could not find compatible versions for gem "oauth2":
  In Gemfile:
    omniauth-facebook (>= 0) ruby depends on
      oauth2 (~> 0.5.0) ruby

    sorcery (>= 0) ruby depends on
      oauth2 (0.4.1)

This is my Gemfile

gem 'sorcery'
gem 'omniauth-facebook'
gem 'omniauth-google-oauth2'
tomekfranek
  • 6,852
  • 8
  • 45
  • 80

1 Answers1

0

You should fork the sorcery gem and change this line to be this:

gem.add_runtime_dependency 'oauth2', '~> 0.5.0'

Then make a commit, push it to GitHub and then reference it in your application like this:

gem 'sorcery', :git => "git://github.com/regedarek/sorcery.git"

For bonus points, submit that patch as a pull request to the original sorcery repository.

Ryan Bigg
  • 106,965
  • 23
  • 235
  • 261