ruby 1.8 compat

This commit is contained in:
Mislav Marohnić 2012-04-15 12:25:27 +02:00
parent 7c714f7f13
commit 1dcfad746d
4 changed files with 4 additions and 4 deletions

View File

@ -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]

View File

@ -10,5 +10,5 @@ module Adapters
undef :test_timeout
end
end
end unless RUBY_VERSION < '1.9'
end

View File

@ -158,7 +158,7 @@ module Adapters
# extra options to pass when building the adapter
def adapter_options
nil
[]
end
def create_connection(options = {})

View File

@ -7,7 +7,7 @@ module Adapters
def adapter() :rack end
def adapter_options
FaradayTestServer
[FaradayTestServer]
end
Integration.apply(self, :NonParallel) do