From 3e9054bb2019a5c07fe62ecda01cf09d8a60dd44 Mon Sep 17 00:00:00 2001 From: Kevin Miller Date: Fri, 27 Sep 2019 10:55:47 -0700 Subject: [PATCH] Update to inherit from correct Faraday error The update to Faraday is causing `require "octokit"` to break. Updating to `Faraday::ClientError` fixes it and is correct based on Faraday code: https://github.com/lostisland/faraday/blob/master/lib/faraday/error.rb --- lib/octokit/middleware/follow_redirects.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/octokit/middleware/follow_redirects.rb b/lib/octokit/middleware/follow_redirects.rb index 00db73b6e..3b3556ee7 100644 --- a/lib/octokit/middleware/follow_redirects.rb +++ b/lib/octokit/middleware/follow_redirects.rb @@ -11,7 +11,7 @@ module Octokit module Middleware # Public: Exception thrown when the maximum amount of requests is exceeded. - class RedirectLimitReached < Faraday::Error::ClientError + class RedirectLimitReached < Faraday::ClientError attr_reader :response def initialize(response)