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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2f1188781ffedf74120033dbb1171fe140e59b7f
4
- data.tar.gz: 9a8b96bad67eaa757e526dd31300e7df1c6e64d0
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Njk2ZDNjM2FiY2VmYTYxZGMwZjdjMzIwM2U5M2JjZDRlMjVkYzgxMw==
5
+ data.tar.gz: !binary |-
6
+ NzYyZjQzZWQ0NDI5Zjg2YTZjOTg3MzExZmVlZjM5NmNkZjRlMGI4MQ==
5
7
  SHA512:
6
- metadata.gz: 5843ee4eb0247f2339f7880aaed6d02d3ee977844d5ccfd60b1c4b7e34fba5156860202ea5c75f54046324f7ad39467d52398a9be196885f909ec0b0ac782341
7
- data.tar.gz: 1f260debb13e5ab9bd3d593953b258e9bf2fe4fb636625c85ff898355d74a86d22952f28f91ddfbfaead1800c92a6dd2c15706b3748e9ffe93bdc8d056d9d0a3
8
+ metadata.gz: !binary |-
9
+ YWFkYmE1MDEwNTdiMjMwNjliN2IwNDAyZDRjNGU3NjQ5YjdmZWM1OTU3NDY5
10
+ NzhkYzlkZTAyZjA4NzFkNWJjM2JhMmUxOTA5NTBhZTc4OGMzZjlhMmQ0ZGE2
11
+ ZjVhMTFiMzMzY2RkN2I3OWZmZTY4MjU2ZDU5MzQ1YTAyZDZmMTA=
12
+ data.tar.gz: !binary |-
13
+ Mjc4NWJlMDMxODZiMDFmNjJiNDgxOTljNjNkZjhjNDhkNDM5YjRkOGY5ZDUx
14
+ ZjVhZTM3N2YwODk5NjJiOGI4NjI0Y2RkY2ExNTI5OWQwZGJiMDk0NGU3NzYw
15
+ NTdlZGMyNDlhZTE2YTQ5MmM2ZGU5ZDgyYmQzNjNhNDc3YmE1MGE=
@@ -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, true)
74
+ channel.reject(tag, requeue)
75
75
  end
76
76
 
77
77
  def queue
@@ -1,3 +1,3 @@
1
1
  module Watership
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.3'
3
3
  end
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.2
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-07-23 00:00:00.000000000 Z
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
- - ".gitignore"
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: