Skip to content

Commit

Permalink
Merge pull request #54 from lucianapazos/Faraday0.9.0
Browse files Browse the repository at this point in the history
Make hyperclient compatible with Faraday 0.9.0
  • Loading branch information
oriolgual committed Apr 22, 2014
2 parents b48dbd7 + 0d0e5a3 commit 569585d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/faraday/request/digest_authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@ def header(response)
end

# Register the middleware as a Request middleware with the name :digest
Faraday.register_middleware :request, digest: Faraday::Request::DigestAuth
registry = [Faraday, Faraday::Middleware].find{|mod| mod.respond_to?(:register_middleware)}
raise "Could not find method register_middleware on Faraday or Faraday::Middleware" unless registry
registry.register_middleware :request, digest: Faraday::Request::DigestAuth

3 comments on commit 569585d

@bethesque
Copy link

Choose a reason for hiding this comment

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

Hi, is there a planned release date for this commit? We're on 0.3.2, monkey patching Hyperclient to work with Faraday 0.9.0 at the moment.

@oriolgual
Copy link
Member Author

Choose a reason for hiding this comment

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

Just released 0.4.0 now!

@bethesque
Copy link

Choose a reason for hiding this comment

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

Thanks :)

Please sign in to comment.