lib/ridley/connection.rb in ridley-4.1.1 vs lib/ridley/connection.rb in ridley-4.1.2
- old
+ new
@@ -143,10 +143,10 @@
end
local = Tempfile.new('ridley-stream')
local.binmode
- retryable(tries: retries, on: OpenURI::HTTPError, sleep: retry_interval) do
+ Retryable.retryable(tries: retries, on: OpenURI::HTTPError, sleep: retry_interval) do
open(target, 'rb', headers) do |remote|
body = remote.read
case remote.content_encoding
when ['gzip']
body = Zlib::GzipReader.new(StringIO.new(body), encoding: 'ASCII-8BIT').read