module Cangaroo
  class Engine < ::Rails::Engine
    isolate_namespace Cangaroo

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.fixture_replacement :factory_girl, dir: 'spec/factories'
      g.assets false
      g.helper false
    end

    config.before_configuration do
      Rails.configuration.cangaroo = ActiveSupport::OrderedOptions.new
      Rails.configuration.cangaroo.jobs = []
      Rails.configuration.cangaroo.poll_jobs = []
      Rails.configuration.cangaroo.basic_auth = false
      Rails.configuration.cangaroo.logger = nil
    end
  end
end

module Cangaroo
  class Engine < ::Rails::Engine
    isolate_namespace Cangaroo

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.fixture_replacement :factory_girl, dir: 'spec/factories'
      g.assets false
      g.helper false
    end

    config.before_configuration do
      Rails.configuration.cangaroo = ActiveSupport::OrderedOptions.new
      Rails.configuration.cangaroo.jobs = []
      Rails.configuration.cangaroo.poll_jobs = []
      Rails.configuration.cangaroo.basic_auth = false
      Rails.configuration.cangaroo.logger = nil
      Rails.configuration.cangaroo.client_timeout = nil
    end
  end
end

Add a configurable HTTP client timeout option
Add a configurable HTTP client timeout option

Some endpoints **cough** NetSuite **cough** take a long time to respond
to HTTP requests. It would be very helpful if we could arbitrarily
extend the default Net::HTTP timeouts that HTTParty is using on a
case-by-case basis.
