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 deprecation warning caused by using Faraday::Connection#authorization #35

Merged
merged 1 commit into from Apr 24, 2023

Conversation

9toon
Copy link
Contributor

@9toon 9toon commented Aug 15, 2022

Since https://github.com/lostisland/faraday/releases/tag/v1.7.1 , Faraday::Connection#authorization is marked as deprecated.

See also: lostisland/faraday#1306

When running the tests which use Faraday 1.10.1, I found that the following deprecation warning is shown in log.

WARNING: Faraday::Connection#authorization is deprecated; it will be removed in version 2.0.
While initializing your connection, use #request(:authorization, ...) instead.
See https://lostisland.github.io/faraday/middleware/authentication for more usage info.

This PR aims to avoid using Faraday::Connection#authorization to fix the deprecation warning.

@9toon 9toon marked this pull request as ready for review August 15, 2022 01:38
@9toon 9toon marked this pull request as draft August 15, 2022 06:11
@9toon 9toon marked this pull request as ready for review August 15, 2022 06:33
@9toon
Copy link
Contributor Author

9toon commented Aug 15, 2022

I can confirmed that all CI are passed and the WARNING is resolved.

please review it.

Copy link
Contributor

@uasi uasi left a comment

Choose a reason for hiding this comment

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

Thanks!

@uasi uasi merged commit 62a6529 into cookpad:master Apr 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