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

fix inheriting from Faraday::Error in Faraday v0.17.1 #308

Closed
wants to merge 1 commit into from
Closed

fix inheriting from Faraday::Error in Faraday v0.17.1 #308

wants to merge 1 commit into from

Conversation

manuelmeurer
Copy link
Collaborator

@manuelmeurer manuelmeurer commented Dec 19, 2019

Faraday changed the signature of an error class, as explained here.
This PR fixes inheriting from that error class and limits the Faraday version to >= 0.17.1.

I opened an issue in the Faraday repo, let's wait for their response. Maybe they are open to reverting the change, then we could simple change the Faraday version requirement to != 0.17.1.

@dangerpr-bot
Copy link

1 Warning
⚠️ Unless you’re refactoring existing code, please update CHANGELOG.md.

Here's an example of a CHANGELOG.md entry:

* [#308](https://github.com/slack-ruby/slack-ruby-client/pull/308): Fix inheriting from faraday::error in faraday v0.17.1 - [@manuelmeurer](https://github.com/manuelmeurer).

Generated by 🚫 danger

@dblock
Copy link
Collaborator

dblock commented Dec 23, 2019

Looks like for backwards compatibility we can assign @response after calling super on Faraday::Error. I'm doing it in #309

@manuelmeurer
Copy link
Collaborator Author

You're right, let's do that instead! 👍

@manuelmeurer manuelmeurer deleted the fix-faraday-error-class branch December 27, 2019 19:43
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.

3 participants