watership 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/watership/consumer.rb +2 -2
- data/lib/watership/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f1188781ffedf74120033dbb1171fe140e59b7f
|
4
|
+
data.tar.gz: 9a8b96bad67eaa757e526dd31300e7df1c6e64d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5843ee4eb0247f2339f7880aaed6d02d3ee977844d5ccfd60b1c4b7e34fba5156860202ea5c75f54046324f7ad39467d52398a9be196885f909ec0b0ac782341
|
7
|
+
data.tar.gz: 1f260debb13e5ab9bd3d593953b258e9bf2fe4fb636625c85ff898355d74a86d22952f28f91ddfbfaead1800c92a6dd2c15706b3748e9ffe93bdc8d056d9d0a3
|
data/CHANGELOG.md
CHANGED
data/lib/watership/consumer.rb
CHANGED
@@ -34,13 +34,13 @@ module Watership
|
|
34
34
|
Bugsnag.notify(exception, data: {payload: data, retries: retries}) if defined?(Bugsnag)
|
35
35
|
|
36
36
|
if retries.to_i < 3
|
37
|
-
|
37
|
+
new_data = data.merge({retries: retries+1})
|
38
|
+
Watership.enqueue!(name: @consumer.class::QUEUE, message: new_data)
|
38
39
|
success = true
|
39
40
|
end
|
40
41
|
rescue Interrupt => exception
|
41
42
|
logger.error "Interrupt in subscribe block"
|
42
43
|
logger.warn "Stopped gracefully."
|
43
|
-
throw(:terminate)
|
44
44
|
ensure
|
45
45
|
if success
|
46
46
|
ack_message(delivery_info.delivery_tag)
|
data/lib/watership/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watership
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Scofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|