diff --git a/.travis.yml b/.travis.yml index 92f9549d..e9b943a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ cache: bundler before_install: - gem update --system - gem --version - - gem install bundler --no-rdoc --no-ri + - gem install bundler - bundle --version install: bundle install --without development doc diff --git a/lib/http/chainable.rb b/lib/http/chainable.rb index 92c4f2e2..4786e13c 100644 --- a/lib/http/chainable.rb +++ b/lib/http/chainable.rb @@ -70,19 +70,15 @@ def patch(uri, options = {}) # rubocop:disable Style/OptionHash end # Make an HTTP request with the given verb - # @param verb - # @param uri - # @option options [Hash] - def request(verb, uri, options = {}) # rubocop:disable Style/OptionHash - branch(options).request verb, uri + # @param (see Client#request) + def request(*args) + branch(default_options).request(*args) end # Prepare an HTTP request with the given verb - # @param verb - # @param uri - # @option options [Hash] - def build_request(verb, uri, options = {}) # rubocop:disable Style/OptionHash - branch(options).build_request verb, uri + # @param (see Client#build_request) + def build_request(*args) + branch(default_options).build_request(*args) end # @overload timeout(options = {})