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

Faraday 1.x.x compability #302

Closed
ayanko opened this issue Mar 8, 2021 · 2 comments
Closed

Faraday 1.x.x compability #302

ayanko opened this issue Mar 8, 2021 · 2 comments

Comments

@ayanko
Copy link

ayanko commented Mar 8, 2021

https://github.com/lostisland/faraday/blob/master/UPGRADING.md

So we need on

https://github.com/amro/gibbon/blob/master/lib/gibbon/api_request.rb#L112

-   if error.is_a?(Faraday::ClientError) && error.response
+   if (error.is_a?(Faraday::ClientError) || error.is_a?(Faraday::ServerError) ) && error.response
@amro
Copy link
Owner

amro commented Mar 9, 2021 via email

@amro
Copy link
Owner

amro commented Mar 12, 2021

Thanks again for the callout and contribution @ayanko. I've just released Gibbon 3.4.0 w/ your change in place to address this. I did need to make some minor config changes to accommodate testing Ruby 3.0.0 on CI.

@amro amro closed this as completed Mar 12, 2021
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

No branches or pull requests

2 participants