pebbles-river 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -123,12 +123,6 @@ module Pebbles
123
123
 
124
124
  EXCHANGE_OPTIONS = {type: :topic, durable: :true}.freeze
125
125
 
126
- CONNECTION_EXCEPTIONS = [
127
- Bunny::Exception,
128
- # These should be caught by Bunny, but apparently aren't.
129
- Errno::ECONNRESET
130
- ].freeze
131
-
132
126
  end
133
127
 
134
128
  end
@@ -1,5 +1,5 @@
1
1
  module Pebbles
2
2
  module River
3
- VERSION = '0.1.8'
3
+ VERSION = '0.1.9'
4
4
  end
5
5
  end
@@ -202,17 +202,6 @@ module Pebbles
202
202
  end
203
203
  end
204
204
 
205
- CONNECTION_EXCEPTIONS = [
206
- Bunny::ConnectionError,
207
- Bunny::ForcedChannelCloseError,
208
- Bunny::ForcedConnectionCloseError,
209
- Bunny::ConnectionClosedError,
210
- Bunny::ServerDownError,
211
- Bunny::ProtocolError,
212
- # These should be caught by Bunny, but apparently aren't.
213
- Errno::ECONNRESET
214
- ].freeze
215
-
216
205
  end
217
206
 
218
207
  end
data/lib/pebbles/river.rb CHANGED
@@ -19,6 +19,12 @@ require_relative "river/daemon_helper"
19
19
 
20
20
  module Pebbles::River
21
21
 
22
+ CONNECTION_EXCEPTIONS = [
23
+ Bunny::Exception,
24
+ # These should be caught by Bunny, but apparently aren't.
25
+ Errno::ECONNRESET
26
+ ].freeze
27
+
22
28
  def self.rabbitmq_options
23
29
  @rabbitmq_options ||= {}.freeze
24
30
  end
@@ -14,6 +14,7 @@ describe Pebbles::River::River do
14
14
  CONNECTION_EXCEPTIONS = [
15
15
  Bunny::ConnectionError,
16
16
  Bunny::ConnectionClosedError,
17
+ Bunny::ChannelAlreadyClosed,
17
18
  Bunny::ForcedChannelCloseError,
18
19
  Bunny::ForcedConnectionCloseError,
19
20
  Bunny::ServerDownError,
@@ -215,6 +215,7 @@ describe Worker do
215
215
 
216
216
  [
217
217
  Bunny::ConnectionError,
218
+ Bunny::ChannelAlreadyClosed,
218
219
  Bunny::ForcedChannelCloseError,
219
220
  Bunny::ForcedConnectionCloseError,
220
221
  Bunny::ServerDownError,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pebbles-river
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-09-16 00:00:00.000000000 Z
13
+ date: 2014-09-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pebblebed