lib/transifex/request.rb in transifex-ruby-0.0.6 vs lib/transifex/request.rb in transifex-ruby-0.1.0
- old
+ new
@@ -35,11 +35,10 @@
Faraday.new(options) do |builder|
builder.use FaradayMiddleware::Mashify
builder.use Faraday::Response::ParseJson, :content_type => /\bjson$/
builder.use Transifex::Response::RaiseHttpException
- # Authentiation
- builder.basic_auth(username, password)
+ builder.request :basic_auth, username, password
# Request Middleware
builder.use Faraday::Request::Multipart
builder.use Faraday::Request::UrlEncoded