-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is version 1.23 compatible with Faraday 1? #414
Comments
Have you run into specific issues? Faraday extracted pieces of the core middleware from faraday 1 into a separate gem so that one could upgrade cleanly, thus allowing gems to depend safely across versions 1 and 2. From https://github.com/lostisland/faraday/blob/main/UPGRADING.md#so-what-will-this-mean-for-me
|
The specific issue I have found is:
I briefly looked at this and saw that this had been changed to use # With Faraday 1
irb(main):001> require 'faraday'
=> true
irb(main):002> Faraday::Response::Json
(irb):2:in `<main>': uninitialized constant Faraday::Response::Json (NameError)
# With Faraday 2
irb(main):001> require 'faraday'
=> true
irb(main):002> Faraday::Response::Json
=> Faraday::Response::Json This appears to be a problem with the Faraday gem so I'll raise an issue there instead. Thank you for your time. |
It turns out that the problem was due to a conflict with |
The dependencies for version 1.23 allow for either version 1 or 2 of Faraday. However, I think that the two versions are so different that they cannot both be supported at the same time. I have found this whilst trying to update a project that has been neglected for a while with the minimum changes.
Would it make sense to update the gemspec file to only allow version 2?
The text was updated successfully, but these errors were encountered: