simsicon / weibo_2

A ruby gem for sina weibo oauth2 api, with examples, and it actually works.
MIT License
194 stars 86 forks source link

[error]Bundler could not find compatible versions for gem "hashie" #12

Closed chenyun closed 11 years ago

chenyun commented 11 years ago

Bundler could not find compatible versions for gem "hashie": In Gemfile: weibo_2 (= 0.1.4) ruby depends on hashie (~> 2.0.4) ruby

omniauth (>= 0) ruby depends on
  hashie (1.2.0)
simsicon commented 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?

chenyun commented 11 years ago

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?

chenyun commented 11 years ago

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?

simsicon commented 11 years ago

You can run bundle outdated to find out which gems are outdated, generally not recommended to edit Gemfile.lock manually.

Working is good, thanks.

simsicon commented 11 years ago

rails requires activerecord version equal 3.2.13, and polyamorous requires version of activerecord greater than 3.0 and lower than 4.0.

chenyun commented 11 years ago

Thanks !