sneakers_exponential_retry 0.2.0 → 1.0.0
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 +4 -4
- data/README.md +2 -0
- data/lib/sneakers_exponential_retry.rb +3 -3
- data/lib/sneakers_exponential_retry/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6533846e7eaca4786b8b60469357a9888cc504c8
|
4
|
+
data.tar.gz: 3382d58d5f1f81d471eea741aa122ea02ce1cf48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18fa52b1d22c59a4637f6b643342c370dbec35eeea6fee6401b191b672b0bd4a7a1be81296a041965b73ea8dcadb443485bc373894fd0dd9f343c2c4503bbfc8
|
7
|
+
data.tar.gz: 9583f320c5778bffe3941fa8c484f3a1e10e64082c32521b1baa3cc2c4213ce2a195f28ecefeab45168606455809b17f5ba38b708406dbd4e1657270a87ae9c9
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[](https://codeclimate.com/github/mz026/sneakers_exponential_retry)
|
2
|
+
|
1
3
|
# SneakersExponentialRetry
|
2
4
|
|
3
5
|
Exponential Retry Handler for [Sneakers](https://github.com/jondot/sneakers) that just works.
|
@@ -48,10 +48,10 @@ module SneakersExponentialRetry
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def error(hdr, props, msg, err)
|
51
|
-
handle_failing_message(hdr, props, msg
|
51
|
+
handle_failing_message(hdr, props, msg)
|
52
52
|
end
|
53
53
|
|
54
|
-
def handle_failing_message hdr, props, msg
|
54
|
+
def handle_failing_message hdr, props, msg
|
55
55
|
retry_count = get_retry_count(props[:headers])
|
56
56
|
if retry_count >= @max_retry_count
|
57
57
|
reject(hdr, props, msg)
|
@@ -90,7 +90,7 @@ module SneakersExponentialRetry
|
|
90
90
|
private :expiration_time
|
91
91
|
|
92
92
|
def timeout(hdr, props, msg)
|
93
|
-
|
93
|
+
handle_failing_message(hdr, props, msg)
|
94
94
|
end
|
95
95
|
|
96
96
|
def noop(hdr, props, msg)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sneakers_exponential_retry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yang-Hsing Lin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -90,9 +90,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
92
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.
|
93
|
+
rubygems_version: 2.5.1
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Exponential Retry Handler for Sneakers that just works.
|
97
97
|
test_files: []
|
98
|
-
has_rdoc:
|