rabid_mq 0.1.18 → 0.1.19
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/rabid_mq/version.rb +1 -1
- data/lib/rabid_mq.rb +2 -5
- 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: 8f7aefbf3f6682d67ee501bb57e02eac146bdf5a
|
|
4
|
+
data.tar.gz: a5cce8dc59df25b613e62b31f0088cf89bb85a44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb4a463aae74f725e30d68e913970b4def21f8a5fef0277763de2724991501988fe26ce7eb5c4fae2c94cc86bf0926ac0bcf44387bb70a88b126cad655bfe429
|
|
7
|
+
data.tar.gz: f1567bb3ba086a600314973f96221c0ad30e893a051760d46440c7befabbae0501731a757f81334dbdc6bebc7985f8973d761c5100d7c90f366a960a44c8b031
|
data/lib/rabid_mq/version.rb
CHANGED
data/lib/rabid_mq.rb
CHANGED
|
@@ -26,10 +26,7 @@ module RabidMQ
|
|
|
26
26
|
|
|
27
27
|
# Get a channel with the Bunny::Session
|
|
28
28
|
def channel
|
|
29
|
-
|
|
30
|
-
rescue Bunny::ChannelAlreadyClosed => e
|
|
31
|
-
@channel = nil
|
|
32
|
-
channel
|
|
29
|
+
connection.create_channel
|
|
33
30
|
end
|
|
34
31
|
|
|
35
32
|
# Start a new connection
|
|
@@ -47,7 +44,7 @@ module RabidMQ
|
|
|
47
44
|
|
|
48
45
|
# Provide a new or existing Bunny::Session
|
|
49
46
|
def connection
|
|
50
|
-
|
|
47
|
+
Bunny.new RabidMQ::Config.load_config
|
|
51
48
|
end
|
|
52
49
|
end
|
|
53
50
|
end
|