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

Require Faraday v2 #22

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Conversation

nipe0324
Copy link
Contributor

@nipe0324 nipe0324 commented Oct 15, 2023

Latest Faraday version is v2. But, qiita-rb supports only v0.x.
I tried to change that qiita-rb requires Faraday v2.

@@ -341,6 +341,10 @@ def stub_api_request
204
end

let(:response_hash) do
nil
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Returns empty body response if 204 status code.

bblimke/webmock#190

And, Qiita PUT and DELETE APIs return a empty body.

JSON Schema(en): https://qiita.com/api/v2/schema?locale=en

@getty104 getty104 self-assigned this Oct 17, 2023
@getty104 getty104 self-requested a review October 19, 2023 05:25
@getty104
Copy link
Member

@nipe0324
Thank you for creating the PR!
The changes between Faraday v1 and v2 are significant.
So, we want to support only v2 for maintenance.
Could you please update the implementation to be compatible only with v2?

@nipe0324 nipe0324 changed the title Require Faraday v1 or v2 Require Faraday v2 Oct 21, 2023
@nipe0324
Copy link
Contributor Author

@getty104
Thank you for your review.
I updated that qiita-rb supports only v2.

@getty104
Copy link
Member

@nipe0324
Thank you for fix PR!
I'll check it.

Copy link
Member

@getty104 getty104 left a comment

Choose a reason for hiding this comment

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

LGTM!
Thank you for your contribution!

@@ -2,7 +2,6 @@
require "active_support/core_ext/string/inflections"
require "active_support/core_ext/string/strip"
require "faraday"
require "faraday_middleware"
Copy link
Member

Choose a reason for hiding this comment

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

@getty104 getty104 merged commit 3e8f705 into increments:master Oct 24, 2023
1 check passed
@getty104 getty104 mentioned this pull request Oct 24, 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.

None yet

2 participants