Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Replace Faraday::Response::Middleware with Faraday::Middleware #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/librato/metrics/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def transport
end.tap do |transport|
transport.headers[:user_agent] = user_agent
transport.headers[:content_type] = 'application/json'
transport.basic_auth @client.email, @client.api_key
transport.set_basic_auth @client.email, @client.api_key
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/librato/metrics/middleware/count_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Librato
module Metrics
module Middleware

class CountRequests < Faraday::Response::Middleware
class CountRequests < Faraday::Middleware
@total_requests = 0

class << self
Expand Down
2 changes: 1 addition & 1 deletion lib/librato/metrics/middleware/expects_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Librato
module Metrics
module Middleware

class ExpectsStatus < Faraday::Response::Middleware
class ExpectsStatus < Faraday::Middleware

def on_complete(env)
sanitized = sanitize_request(env)
Expand Down
2 changes: 1 addition & 1 deletion lib/librato/metrics/middleware/request_body.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Librato
module Metrics
module Middleware

class RequestBody < Faraday::Response::Middleware
class RequestBody < Faraday::Middleware

def call(env)
# duplicate request body so it is preserved through request
Expand Down