watership 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/CHANGELOG.md +6 -0
- data/lib/watership/consumer.rb +4 -6
- data/lib/watership/version.rb +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NzYyZjQzZWQ0NDI5Zjg2YTZjOTg3MzExZmVlZjM5NmNkZjRlMGI4MQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f426f32fd102d92fe6af3346c5a097e7fc2b8f09
|
4
|
+
data.tar.gz: 79283ca32d717adc9592faf08ed75006208666f8
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NzhkYzlkZTAyZjA4NzFkNWJjM2JhMmUxOTA5NTBhZTc4OGMzZjlhMmQ0ZGE2
|
11
|
-
ZjVhMTFiMzMzY2RkN2I3OWZmZTY4MjU2ZDU5MzQ1YTAyZDZmMTA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
Mjc4NWJlMDMxODZiMDFmNjJiNDgxOTljNjNkZjhjNDhkNDM5YjRkOGY5ZDUx
|
14
|
-
ZjVhZTM3N2YwODk5NjJiOGI4NjI0Y2RkY2ExNTI5OWQwZGJiMDk0NGU3NzYw
|
15
|
-
NTdlZGMyNDlhZTE2YTQ5MmM2ZGU5ZDgyYmQzNjNhNDc3YmE1MGE=
|
6
|
+
metadata.gz: 7e3452318d4a2da31b92b78dad4b69718e9e94a555160eb28fb24c990b3e8f0ab35d28a10d64491ff81311f003702e649cb0911821c807c190f4884380d3e72a
|
7
|
+
data.tar.gz: cc9b786b7814e45ebbdbe5ff605e700b9f43d8a565e7649fbdc9be2f3c799be1249ddae5380bd1890b45c6a36b49fd155378b95e5cbafdd48b15d735841c5169
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.7.4 - 2014-10-01
|
4
|
+
* Remove retry logic entirely because we have no failed queue.
|
5
|
+
|
6
|
+
## 0.7.3 - 2014-09-30
|
7
|
+
* Rejecting message after retries are exhausted so that it is not requeued.
|
8
|
+
|
3
9
|
## 0.7.2 - 2014-07-23
|
4
10
|
* Fix some critical bugs in the retries logic
|
5
11
|
|
data/lib/watership/consumer.rb
CHANGED
@@ -33,11 +33,9 @@ module Watership
|
|
33
33
|
Airbrake.notify(exception) if defined?(Airbrake)
|
34
34
|
Bugsnag.notify(exception, data: {payload: data, retries: retries}) if defined?(Bugsnag)
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
success = true
|
40
|
-
end
|
36
|
+
new_data = data.merge({retries: retries+1})
|
37
|
+
Watership.enqueue!(name: @consumer.class::QUEUE, message: new_data)
|
38
|
+
success = true
|
41
39
|
rescue Interrupt => exception
|
42
40
|
logger.error "Interrupt in subscribe block"
|
43
41
|
logger.warn "Stopped gracefully."
|
@@ -45,7 +43,7 @@ module Watership
|
|
45
43
|
if success
|
46
44
|
ack_message(delivery_info.delivery_tag)
|
47
45
|
else
|
48
|
-
reject_message(delivery_info.delivery_tag
|
46
|
+
reject_message(delivery_info.delivery_tag)
|
49
47
|
end
|
50
48
|
end
|
51
49
|
end
|
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.4
|
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-
|
11
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,42 +28,42 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bunny
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: json
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: Wrapper around Bunny to better handle connection issues
|
@@ -94,19 +94,18 @@ require_paths:
|
|
94
94
|
- lib
|
95
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- -
|
97
|
+
- - '>='
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - '>='
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.0.14
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Wrapper around Bunny to better handle connection issues
|
111
111
|
test_files: []
|
112
|
-
has_rdoc:
|