mirror of
https://github.com/lostisland/faraday.git
synced 2025-08-10 00:03:15 -04:00
ruby 1.8 compat
This commit is contained in:
parent
7c714f7f13
commit
1dcfad746d
@ -24,7 +24,7 @@ module Faraday
|
||||
rescue LoadError
|
||||
$stderr.puts "Faraday: you may want to install system_timer for reliable timeouts"
|
||||
ensure
|
||||
SystemTimer ||= Timeout
|
||||
SystemTimer = Timeout unless defined? ::SystemTimer
|
||||
end
|
||||
|
||||
# @param app [Faraday::Middleware]
|
||||
|
@ -10,5 +10,5 @@ module Adapters
|
||||
undef :test_timeout
|
||||
end
|
||||
|
||||
end
|
||||
end unless RUBY_VERSION < '1.9'
|
||||
end
|
||||
|
@ -158,7 +158,7 @@ module Adapters
|
||||
|
||||
# extra options to pass when building the adapter
|
||||
def adapter_options
|
||||
nil
|
||||
[]
|
||||
end
|
||||
|
||||
def create_connection(options = {})
|
||||
|
@ -7,7 +7,7 @@ module Adapters
|
||||
def adapter() :rack end
|
||||
|
||||
def adapter_options
|
||||
FaradayTestServer
|
||||
[FaradayTestServer]
|
||||
end
|
||||
|
||||
Integration.apply(self, :NonParallel) do
|
||||
|
Loading…
x
Reference in New Issue
Block a user