Closed chenyun closed 11 years ago
Hi, thanks for reporting.
which version of omniauth you are running? I found this line in omniauth https://github.com/intridea/omniauth/blob/master/omniauth.gemspec#L7
Maybe you can try bundle update omniauth
?
Hi @simsicon, thanks for your advice. My omniauth is the latest version, and when I run bundle upate omniauth, it will report another 'incompatible': Bundler could not find compatible versions for gem "oauth2": In Gemfile: omniauth-weibo-oauth2 (>= 0) ruby depends on oauth2 (~> 0.5.0) ruby
weibo_2 (= 0.1.4) ruby depends on
oauth2 (0.9.1)
Bundler could not find compatible versions for gem "activerecord": In Gemfile: rails (= 3.2.13) ruby depends on activerecord (= 3.2.13) ruby
meta_search (>= 1.1.0.pre) ruby depends on
activerecord (3.1.0.beta1)
But finally i solved it by change Gemfile.lock... Now 0.1.4 works happy with omniauth. Do you have some advice on this kind of issues?
This is part of my Gemfile.lock:
polyamorous (0.5.0)
activerecord (~> 3.0)
rails (3.2.13)
activerecord (= 3.2.13)
why this passes?
You can run bundle outdated
to find out which gems are outdated, generally not recommended to edit Gemfile.lock manually.
Working is good, thanks.
rails requires activerecord version equal 3.2.13, and polyamorous requires version of activerecord greater than 3.0 and lower than 4.0.
Thanks !
Bundler could not find compatible versions for gem "hashie": In Gemfile: weibo_2 (= 0.1.4) ruby depends on hashie (~> 2.0.4) ruby