Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Make webhdfs compatible with faraday 1.0.0 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Israel Peña committed Oct 20, 2020
1 parent a128937 commit 7dbfc28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.11.0
0.12.0
4 changes: 3 additions & 1 deletion lib/webhdfs/api_connection.rb
@@ -1,4 +1,5 @@
require 'faraday'
require 'faraday_middleware'

module WebHDFS
class APIConnection
Expand All @@ -10,7 +11,8 @@ def initialize(host, headers = {})
def connection
@conn ||= Faraday.new(@host, headers: @headers) do |builder|
builder.response :logger, WebHDFS.logger
builder.use Faraday::Adapter::NetHttp
builder.use FaradayMiddleware::FollowRedirects
builder.adapter :net_http
end
end

Expand Down
3 changes: 2 additions & 1 deletion webhdfs_factual.gemspec
Expand Up @@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "webmock"

gem.add_runtime_dependency "addressable"
gem.add_runtime_dependency "faraday"
gem.add_runtime_dependency "faraday", ["1.1.0"]
gem.add_runtime_dependency "faraday_middleware", ["1.0.0"]
gem.add_runtime_dependency "gssapi-factual"
end

0 comments on commit 7dbfc28

Please sign in to comment.