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) diff --git a/octokit.gemspec b/octokit.gemspec index 762f7d937..765185b12 100644 --- a/octokit.gemspec +++ b/octokit.gemspec @@ -6,6 +6,7 @@ require 'octokit/version' Gem::Specification.new do |spec| spec.add_development_dependency 'bundler', '>= 1', '< 3' spec.add_dependency 'sawyer', '>= 0.5.3', '~> 0.8.0' + spec.add_dependency 'faraday', '>= 0.9' spec.authors = ["Wynn Netherland", "Erik Michaels-Ober", "Clint Shryock"] spec.description = %q{Simple wrapper for the GitHub API} spec.email = ['wynn.netherland@gmail.com', 'sferik@gmail.com', 'clint@ctshryock.com']