Rails 4.0.2 mime-types dependencies (~> 1.16) contradict other tools using mime-types 2.0

When I try to install the Mechanize gem, I get the following error:

Resolving dependencies...
Bundler could not find compatible versions for gem "mime-types":
  In Gemfile:
    rails (= 4.0.2) ruby depends on
      mime-types (~> 1.16) ruby

    mechanize (~> 2.7.3) ruby depends on
      mime-types (2.0)

Now I understand that this is because the rails depend on mime-types ~1.16and Mechanize mime-types 2.0, but is there no way to get these two to play together?

+4
source share
1 answer

Indicate mechanize ~> 2.6.0and you should be fine until the Rails team can update its gem requirements for mime types.

https://github.com/sparklemotion/mechanize/blob/master/CHANGELOG.rdoc, , - 2.6.0 , .

+4

All Articles