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

[1.x] Avoid deprecation warning about #basic_auth on Faraday::Connection #149

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions 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.request :basic_auth, @client.email, @client.api_key
end
end

Expand Down Expand Up @@ -98,4 +98,4 @@ def transport_adapter
end

end
end
end