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

Autoloading, dependency loading and middleware registry cleanup #1301

Merged
merged 2 commits into from Aug 9, 2021

Conversation

iMacTia
Copy link
Member

@iMacTia iMacTia commented Aug 8, 2021

Description

  • Remove autoloading
  • Remove adapters from list of dependencies, except for net_http (doesn't require ext libraries and it's good to have a default)
  • Remove dynamic dependency loader
  • Simplify MiddlewareRegistry

Todos

List any remaining work that needs to be done, i.e:

  • Tests
  • Upgrading
  • Documentation?

@olleolleolle olleolleolle changed the title Autoloading, dependency loading and middlewre registry cleanup Autoloading, dependency loading and middleware registry cleanup Aug 8, 2021
Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Looks grand!

I was curious if the middleware_mutex is still in use, now.

UPGRADING.md Outdated Show resolved Hide resolved
UPGRADING.md Outdated Show resolved Hide resolved
UPGRADING.md Outdated Show resolved Hide resolved
faraday.gemspec Show resolved Hide resolved
lib/faraday.rb Show resolved Hide resolved
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
@iMacTia
Copy link
Member Author

iMacTia commented Aug 8, 2021

Thanks for the quick review and the suggestions @olleolleolle 🙌!
Yes middleware_mutex is still used to ensure the middleware stack is thread-safe 👍

Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

This looks ready!

v2.0 automation moved this from Needs review to Reviewer approved Aug 9, 2021
@iMacTia iMacTia merged commit 08b7d4d into main Aug 9, 2021
v2.0 automation moved this from Reviewer approved to Done Aug 9, 2021
@iMacTia iMacTia deleted the legacy-features-cleanup branch August 9, 2021 07:25
sgerrand pushed a commit to duffelhq/duffel-api-ruby that referenced this pull request Jan 5, 2022
This class module was refactored and redesigned in lostisland/faraday#1301
timrogers pushed a commit to duffelhq/duffel-api-ruby that referenced this pull request Jan 9, 2022
This class module was refactored and redesigned in lostisland/faraday#1301
timrogers pushed a commit to duffelhq/duffel-api-ruby that referenced this pull request Jan 11, 2022
This class module was refactored and redesigned in lostisland/faraday#1301
timrogers pushed a commit to duffelhq/duffel-api-ruby that referenced this pull request Jan 11, 2022
This class module was refactored and redesigned in lostisland/faraday#1301
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
v2.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants