From 296328ebe070e87dc982bcc734771ea6d103b55c Mon Sep 17 00:00:00 2001 From: Jared Beck Date: Sat, 20 Jan 2024 03:59:51 -0500 Subject: [PATCH] Doc: upgrading from faraday 1 (#8) Co-authored-by: Sebastian Cohnen --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 1fd3106..65498d4 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,15 @@ Faraday.new(url: url) do |faraday| end ``` +## Upgrading from Faraday 1.x + +If you still use Faraday 1.x, and have uninstalled the `faraday_middleware` gem, all you have to change is: + +```diff +- conn.use FaradayMiddleware::FollowRedirects ++ conn.use Faraday::FollowRedirects::Middleware +``` + ## Development After checking out the repo, run `bin/setup` to install dependencies.