rabid_mq 0.1.46 → 0.1.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rabid_mq.rb +4 -8
- data/lib/rabid_mq/publisher.rb +0 -2
- data/lib/rabid_mq/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: 395f09bbabc3b8f5fe593820579df72225daa801
|
4
|
+
data.tar.gz: dca966aa92beab9359473758ae9fa551c0f5d525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc42ae2512c3dcafc6d6dc429dde9ac4ca7fef7d0762961e2c187dc786d72cd9b8d54e425ddb1e98407748c518bc224b6f7f4be48cb63b5d266bcb4644b5dba3
|
7
|
+
data.tar.gz: ce89694186b3bbec6da20120361518aae7f586ad827ca95b49b318f033bc83bd2604b226d0798ba6774329f941c6ba83ab523f553564a87e889f0b972d1850d5
|
data/lib/rabid_mq.rb
CHANGED
@@ -15,17 +15,13 @@ module RabidMQ
|
|
15
15
|
class << self
|
16
16
|
|
17
17
|
# Provide a topic exchange on demand connected to the existing channel
|
18
|
-
def topic_exchange(topic,
|
19
|
-
|
20
|
-
channel.topic(topic_name, **options)
|
21
|
-
rescue Bunny::PreconditionFailed => e
|
22
|
-
topic_exchange(topic, include_environment_name: include_environment_name, durable: !options.fetch(:durable, false), **options)
|
18
|
+
def topic_exchange(topic, **options)
|
19
|
+
channel.topic(name_with_env(topic), **options)
|
23
20
|
end
|
24
21
|
|
25
22
|
# Provide fanout exchange
|
26
|
-
def fanout_exchange(topic,
|
27
|
-
|
28
|
-
channel.fanout(topic_name, **options)
|
23
|
+
def fanout_exchange(topic, **options)
|
24
|
+
channel.fanout(name_with_env(topic), **options)
|
29
25
|
end
|
30
26
|
|
31
27
|
# Get a channel with the Bunny::Session
|
data/lib/rabid_mq/publisher.rb
CHANGED
@@ -46,8 +46,6 @@ module RabidMQ
|
|
46
46
|
def topic_exchange(topic, include_environment_name: true, **options)
|
47
47
|
topic_name = include_environment_name ? name_with_env(topic) : topic
|
48
48
|
channel.topic(topic_name, **options)
|
49
|
-
rescue Bunny::PreconditionFailed => e
|
50
|
-
topic_exchange(topic, include_environment_name: include_environment_name, durable: !options.fetch(:durable, false), **options)
|
51
49
|
end
|
52
50
|
|
53
51
|
# Provide fanout exchange
|
data/lib/rabid_mq/version.rb
CHANGED