Skip to content

Commit

Permalink
rename #prepare_request to #build_request
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon authored and ixti committed Feb 14, 2018
1 parent 5a76037 commit d09394c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/http/chainable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def request(verb, uri, options = {}) # rubocop:disable Style/OptionHash
# @param verb
# @param uri
# @option options [Hash]
def prepare_request(verb, uri, options = {}) # rubocop:disable Style/OptionHash
branch(options).prepare_request verb, uri
def build_request(verb, uri, options = {}) # rubocop:disable Style/OptionHash
branch(options).build_request verb, uri
end

# @overload timeout(options = {})
Expand Down
4 changes: 2 additions & 2 deletions lib/http/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(default_options = {})
# Make an HTTP request
def request(verb, uri, opts = {}) # rubocop:disable Style/OptionHash
opts = @default_options.merge(opts)
req = prepare_request(verb, uri, opts)
req = build_request(verb, uri, opts)
res = perform(req, opts)
return res unless opts.follow

Expand All @@ -36,7 +36,7 @@ def request(verb, uri, opts = {}) # rubocop:disable Style/OptionHash
end

# Prepare an HTTP request
def prepare_request(verb, uri, opts = {}) # rubocop:disable Style/OptionHash
def build_request(verb, uri, opts = {}) # rubocop:disable Style/OptionHash
opts = @default_options.merge(opts)
uri = make_request_uri(uri, opts)
headers = make_request_headers(opts)
Expand Down

0 comments on commit d09394c

Please sign in to comment.