faraday_persistent_excon 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b49291915114840bdc8500809c0338cb16acb537
|
4
|
+
data.tar.gz: d75a470fc5b2d259296a7e3c1c435fa07ebfdc52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28cd3c1d94b313c19c0e3c6826a2375d8b43fdf5e1cf9e91539c9ac679c748b7f845ea5a6b5c76712a0d9ab5b8a0f020c4ba02256b427034a398acff115d64ca
|
7
|
+
data.tar.gz: 25111dfd1ebc547cedf44e81dbfc4486174a89cffdd459e4d15affd91a9b94a8ff79193c75edc441070ffc330cf6c2965db6829423797e85b1ba6915ca56d7c0
|
@@ -17,7 +17,6 @@ module FaradayPersistentExcon
|
|
17
17
|
attr_accessor :connection_pools
|
18
18
|
attr_accessor :idempotent_methods
|
19
19
|
attr_accessor :retry_idempotent_methods
|
20
|
-
attr_accessor :retry_limit
|
21
20
|
end
|
22
21
|
|
23
22
|
self.excon_options = {}
|
@@ -25,7 +24,6 @@ module FaradayPersistentExcon
|
|
25
24
|
self.connection_pools = {}
|
26
25
|
self.idempotent_methods = %w[GET HEAD PUT DELETE OPTIONS TRACE]
|
27
26
|
self.retry_idempotent_methods = true
|
28
|
-
self.retry_limit = 1
|
29
27
|
end
|
30
28
|
|
31
29
|
Faraday::Adapter.register_middleware persistent_excon: ->{ FaradayPersistentExcon::Adapter }
|
@@ -39,7 +39,6 @@ module FaradayPersistentExcon
|
|
39
39
|
|
40
40
|
if FaradayPersistentExcon.retry_idempotent_methods && FaradayPersistentExcon.idempotent_methods.include?(env[:method].to_s.upcase)
|
41
41
|
opts[:idempotent] = true
|
42
|
-
opts[:retry_limit] = FaradayPersistentExcon.retry_limit
|
43
42
|
end
|
44
43
|
|
45
44
|
opts
|