In other words, can't the versions have conflicts and is there a way to solve it?
Such as Foo depends on Bar and Foo doesn't support Bar 2.0, but Wala need to have at least Bar 2.0, so can Rubygems or Bundler or any mechanism handle it?
In other words, can't the versions have conflicts and is there a way to solve it?
Such as Foo depends on Bar and Foo doesn't support Bar 2.0, but Wala need to have at least Bar 2.0, so can Rubygems or Bundler or any mechanism handle it?
It's open-source, check it out with Git and fix Foo, then contribute your fix back to the community!
This can be a problem, if each gem really needs that specific version. But most of the time, you can fix this quickly. Vendor your gems:
rake rails:freeze:gems
Now go into vendor/gems
, and find the *.gemspec files for the gems you're trying to reconcile. Update the add_dependency
line, and set the dependency in both gems to the same version. Use the more recent version for both.
Chances are good this will fix your problem. If not, there may be more work involved :)