Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to force version of dependent gem?

I'm using two gems that depend on the faraday gem. Unfortunately, the depend on different versions...

Bundler could not find compatible versions for gem "faraday":
  In Gemfile:
    vacuum (~> 0.2) depends on
      faraday (~> 0.7.6)

    sorcery depends on
      faraday (0.8.1)

Is there a way to force vacuum to use the version of faraday that sorcery depends on?

like image 848
Shpigford Avatar asked Jan 23 '26 11:01

Shpigford


1 Answers

The master branch depends on faraday 0.8.1. Point your Gemfile at the git repo for now, and urge the author to release an updated gem to rubygems.

To answer your question for the case where the author hasn't updated, you'd have to fork the gem yourself, update the dependency in the gemspec, and use your forked version in your app.

like image 107
x1a4 Avatar answered Jan 26 '26 01:01

x1a4



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!