kennel 2.16.0 → 2.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f5c11c126af9e586c2e7f48564760b8625248626204bdd76359001d78cd2038
4
- data.tar.gz: 7ec6271b5eb235c8ee4b0bbaf3b9d59dc3b3f8796c5cf8288f6d753094e99a3c
3
+ metadata.gz: 0b08ac7b025cd269d90dfdbf626462369014382d98a4dde07511ed859bbbf127
4
+ data.tar.gz: 1d86dbf258a8fcb2e7ccc789d18d3657b53a4f6bd47c156502dec42f800265d5
5
5
  SHA512:
6
- metadata.gz: 6778c767c1b28ad451f42e0a7f86557382e93627bfee517d7fcd857f90a674bd63294d67253704975c5653d4de616f731524eaf37bd11ff41822635dfcf78c8a
7
- data.tar.gz: 626e57f6a9e8a8c8080defd2496d983fa93e0a9fcdf63e5ad87aad662c3f4aaca42ff7e5b0c6c9cb0d94fc66d43808fd10dee65add9d0ca3d1d60b76d2c801e9
6
+ metadata.gz: 10df3bd50427d69a6c79f0eeec46b9f3ab485bc18d08e17705ac8f690b8fed0ea1d56c7070db8c1fa2d7cda7670567eb515d6f339eb623aa58c2f85d41682428
7
+ data.tar.gz: 8811cfd7784d30df4a73b25af1c968f7b2372fcfaf8dded09e51fc26c6c72b80ea7498dcf0e08eea2192750ddd9b2051983a4d66fa2663e25964301be6b90ef4
data/lib/kennel/api.rb CHANGED
@@ -107,14 +107,12 @@ module Kennel
107
107
  cache.open(&block)
108
108
  end
109
109
 
110
- def request(method, path, body: nil, params: {}, ignore_404: false)
110
+ def request(method, path, body: nil, params: {}, ignore_404: false, tries: 3)
111
111
  path = "#{path}?#{Faraday::FlatParamsEncoder.encode(params)}" if params.any?
112
112
  cached = (ENV["FORCE_GET_CACHE"] && method == :get)
113
113
 
114
114
  with_cache cached, path do
115
115
  response = nil
116
- tries = 2
117
-
118
116
  tries.times do |i|
119
117
  response = Utils.retry Faraday::ConnectionFailed, Faraday::TimeoutError, times: 2 do
120
118
  @client.send(method, path) do |request|
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "2.16.0"
3
+ VERSION = "2.16.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kennel
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.0
4
+ version: 2.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser