Sha256: 61db2cf65c19a93c7904561161c68fc42b4b2921e643f4d001ba8d2bcef316c8
Contents?: true
Size: 576 Bytes
Versions: 39
Compression:
Stored size: 576 Bytes
Contents
require 'faraday_middleware' TestTrack::TestTrackApi = Her::API.new.setup url: ENV['TEST_TRACK_API_URL'] do |c| # request c.request :json # response c.use Her::Middleware::DefaultParseJSON c.adapter Faraday.default_adapter # Set aggressive HTTP timeouts because TestTrack needs to be fast c.options[:open_timeout] = (ENV['TEST_TRACK_OPEN_TIMEOUT'] || 2).to_i # Number of seconds to wait for the connection to open. c.options[:timeout] = (ENV['TEST_TRACK_TIMEOUT'] || 4).to_i # Number of seconds to wait for one block to be read (via one read(2) call). end
Version data entries
39 entries across 39 versions & 1 rubygems