A Faraday-based HTTP client, which allows you to choose a HTTP client.
See <github.com/technoweenie/faraday/tree/master/lib/faraday/adapter>
NOTE: Tire will switch to Faraday for the HTTP abstraction layer. This client is a temporary solution.
Example:
require 'typhoeus' require 'tire/http/clients/faraday' Tire.configure do |config| # Unless specified, tire will use Faraday.default_adapter and no middleware Tire::HTTP::Client::Faraday.faraday_middleware = Proc.new do |builder| builder.adapter :typhoeus end config.client(Tire::HTTP::Client::Faraday) end
# File lib/tire.rb, line 61 def warn(message) line = caller.detect { |line| line !~ %rlib\/tire\/| }.sub(%r:in .*/, '') STDERR.puts "", "\e[31m[DEPRECATION WARNING] #{message}", "(Called from #{line})", "\e[0m" end