watership 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/watership/consumer.rb +3 -3
- data/lib/watership/version.rb +1 -1
- metadata +14 -13
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
Njk2ZDNjM2FiY2VmYTYxZGMwZjdjMzIwM2U5M2JjZDRlMjVkYzgxMw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NzYyZjQzZWQ0NDI5Zjg2YTZjOTg3MzExZmVlZjM5NmNkZjRlMGI4MQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YWFkYmE1MDEwNTdiMjMwNjliN2IwNDAyZDRjNGU3NjQ5YjdmZWM1OTU3NDY5
|
10
|
+
NzhkYzlkZTAyZjA4NzFkNWJjM2JhMmUxOTA5NTBhZTc4OGMzZjlhMmQ0ZGE2
|
11
|
+
ZjVhMTFiMzMzY2RkN2I3OWZmZTY4MjU2ZDU5MzQ1YTAyZDZmMTA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
Mjc4NWJlMDMxODZiMDFmNjJiNDgxOTljNjNkZjhjNDhkNDM5YjRkOGY5ZDUx
|
14
|
+
ZjVhZTM3N2YwODk5NjJiOGI4NjI0Y2RkY2ExNTI5OWQwZGJiMDk0NGU3NzYw
|
15
|
+
NTdlZGMyNDlhZTE2YTQ5MmM2ZGU5ZDgyYmQzNjNhNDc3YmE1MGE=
|
data/lib/watership/consumer.rb
CHANGED
@@ -45,7 +45,7 @@ module Watership
|
|
45
45
|
if success
|
46
46
|
ack_message(delivery_info.delivery_tag)
|
47
47
|
else
|
48
|
-
reject_message(delivery_info.delivery_tag)
|
48
|
+
reject_message(delivery_info.delivery_tag, retries.to_i < 3)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
@@ -69,9 +69,9 @@ module Watership
|
|
69
69
|
channel.acknowledge(tag, false)
|
70
70
|
end
|
71
71
|
|
72
|
-
def reject_message(tag)
|
72
|
+
def reject_message(tag, requeue = true)
|
73
73
|
logger.info "Rejecting message"
|
74
|
-
channel.reject(tag,
|
74
|
+
channel.reject(tag, requeue)
|
75
75
|
end
|
76
76
|
|
77
77
|
def queue
|
data/lib/watership/version.rb
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
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.3
|
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-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.5'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
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
|
@@ -73,7 +73,7 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
-
|
76
|
+
- .gitignore
|
77
77
|
- CHANGELOG.md
|
78
78
|
- Gemfile
|
79
79
|
- LICENSE.txt
|
@@ -94,12 +94,12 @@ 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: []
|
@@ -109,3 +109,4 @@ 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:
|