Skip to content
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

Relax Faraday version requirements #17

Closed
wants to merge 2 commits into from

Conversation

bdewater
Copy link
Contributor

A bit of cleanup, mostly here to unlock using Faraday 2.x. See https://github.com/lostisland/faraday/blob/main/UPGRADING.md

Best I can tell there's no need for the middleware to follow redirects (from the JSON:API spec or the Unit API docs)

Copy link
Contributor

@ianyamey ianyamey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

unit-ruby.gemspec Outdated Show resolved Hide resolved
lib/unit-ruby/util/connection.rb Outdated Show resolved Hide resolved
@bdewater
Copy link
Contributor Author

bdewater commented Sep 30, 2022

My bad, that was a leftover from when I was trying to make faraday-middleware work (which can't be used with faraday 2.0) before I decided to bump the requirement to at least 1.10 and make this easier :)

faraday 1.10.x requires faraday-retry version ~> 1.0, you are correct about faraday-retry 2.x, so it should just work without a version constraint specified. I amended the last commit.

@ianyamey
Copy link
Contributor

Closing as duplicate of #29

@ianyamey ianyamey closed this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants