Skip to content

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.


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 force-pushed the require-faraday-v1-or-v2 branch from e67e089 to 688bab4 Compare October 21, 2023 12:51
@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!

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
@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.

2 participants