pebbles-river 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pebbles/river/river.rb +6 -1
- data/lib/pebbles/river/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a9d7fc14df9e1ff6e3ba421d3821b30e1bf44f6
|
4
|
+
data.tar.gz: 22387fcc520f21ca016f4b2ddff442202b94d5e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 029b4e3683dcbed2cdebda4744199527a59c64513f22404d510f5a552788a708d159d4495d248e2d1b38c0d7c52bf2ed3e34b23fcb5c805cb846ee36a9318f0c
|
7
|
+
data.tar.gz: 6d5b93d2ed155f25c3220fd1c992d50c8c0425dd99785706c9a25f7ca728e0fb431df860ddf3557d5fa7e602ea36b2dfd93fcc7327aefd4c950e9c49c3d5346d
|
data/lib/pebbles/river/river.rb
CHANGED
@@ -26,13 +26,18 @@ module Pebbles
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def disconnect
|
29
|
-
|
29
|
+
bunny = @bunny
|
30
|
+
if bunny and bunny.connected?
|
30
31
|
begin
|
31
32
|
bunny.stop
|
32
33
|
rescue *CONNECTION_EXCEPTIONS
|
33
34
|
# Ignore
|
34
35
|
end
|
35
36
|
end
|
37
|
+
|
38
|
+
# This will force fresh connection the next time we need it, otherwise
|
39
|
+
# Bunny won't create queues that no longer might exist
|
40
|
+
@bunny = nil
|
36
41
|
end
|
37
42
|
|
38
43
|
def publish(options = {})
|