activerecord-hackery/meta_search

dependency version conflicts between a gem's spec, bundler, and gem install

Closed this issue · 1 comments

d00n commented

I'm trying to install meta_search-1.1.0.pre2. The gem's spec, bundler, and rubygems each report/install different dependency version requirements.

I have a new rails3 project (here are my rails, ruby, rubygems and installed gem versions), with one new line in my Gemfile:

gem 'meta_search', '1.1.0.pre2'

The meta_search-1.1.0.pre2 page on rubygems.org reports these dependencies:

actionpack ~> 3.1.0.alpha
activerecord ~> 3.1.0.alpha
activesupport ~> 3.1.0.alpha

However, installing it pulls down activesupport and activemodel-3.1.1.rc1:

muldoon@fedora14$ gem install meta_search -v 1.1.0.pre2
Fetching: activesupport-3.1.1.rc1.gem (100%)
Fetching: meta_search-1.1.0.pre2.gem (100%)
Fetching: activemodel-3.1.1.rc1.gem (100%)
Successfully installed activesupport-3.1.1.rc1
Successfully installed meta_search-1.1.0.pre2
Successfully installed activemodel-3.1.1.rc1
3 gems installed

..and bundler reports that meta_search needs activesupport-3.1.0.beta1.

muldoon@fedora14$ bundle update
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "activesupport":
  In Gemfile:
    rails (= 3.1.0) depends on
      activesupport (= 3.1.0)

    meta_search (= 1.1.0.pre2) depends on
      activesupport (3.1.0.beta1)

Very strange! Have you seen such a thing before? Any suggestions?

thx!
Mike

It sounds like you're trying to use an old version of MetaSearch. The current gem version is 1.1.1, and works with the latest versions of Rails.