From e2c07759de8a825fd4b6e77a550ebadf90cdcb60 Mon Sep 17 00:00:00 2001 From: rick olson Date: Fri, 29 Mar 2019 14:50:45 -0600 Subject: [PATCH 1/2] document missing argument --- lib/faraday/request/retry.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/faraday/request/retry.rb b/lib/faraday/request/retry.rb index 64971607..07982317 100644 --- a/lib/faraday/request/retry.rb +++ b/lib/faraday/request/retry.rb @@ -115,6 +115,10 @@ module Faraday # @option options [Block] :retry_block block that is executed after # every retry. Request environment, middleware options, current number # of retries and the exception is passed to the block as parameters. + # @option options [Array] :retry_statuses Array of Integer HTTP status + # codes or a single Integer value that deterimines whether to raise + # a Faraday::RetriableResponse exception based on the HTTP status code + # of an HTTP response. def initialize(app, options = nil) super(app) @options = Options.from(options) From d986824c32d654adfa3831878d73990522584dec Mon Sep 17 00:00:00 2001 From: rick olson Date: Fri, 29 Mar 2019 14:51:43 -0600 Subject: [PATCH 2/2] i've determined there's a spelling mistake here --- lib/faraday/request/retry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faraday/request/retry.rb b/lib/faraday/request/retry.rb index 07982317..9256002a 100644 --- a/lib/faraday/request/retry.rb +++ b/lib/faraday/request/retry.rb @@ -116,7 +116,7 @@ module Faraday # every retry. Request environment, middleware options, current number # of retries and the exception is passed to the block as parameters. # @option options [Array] :retry_statuses Array of Integer HTTP status - # codes or a single Integer value that deterimines whether to raise + # codes or a single Integer value that determines whether to raise # a Faraday::RetriableResponse exception based on the HTTP status code # of an HTTP response. def initialize(app, options = nil)