swiftype/swiftype-rb — pull request #10 by kayagoban (2014-01-28 20:02:41+00:00)
Title: Add open_timeout option to Swiftype::Client

We needed to set a timeout in case swiftype becomes temporarily unavailable. This simple change allows us to invoke Swiftype::Client.new( open_timeout: fixnum_seconds ) to inform Net::HTTP it should raise a Timeout::Error if it is unable to establish a connection within fixnum_seconds.