rabid_mq 0.1.29 → 0.1.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7276a907744909efa4b46c144adcc79b0d568b57
4
- data.tar.gz: d626970cab6813447ca0b5e14d9c77fe49422f42
3
+ metadata.gz: 97a994357baf82e1c1b8647810760c6711c3d000
4
+ data.tar.gz: 5ce6886aa4eb78f1d66a09dc610207bdd26eae75
5
5
  SHA512:
6
- metadata.gz: 9c24a49f62404c76119e4b6df54a2644c5bfc0bd5bb0417806f94da3f48952f8b65ab6edb4ace1aabc3229d8c27be06a09e04407f59f4c1fa79bf34c131c81cc
7
- data.tar.gz: 25b115d7d0fdea1814079ca3e087d86aa544bbd3646ded22a10310c696ce842382ce01dcfd049cf6fe314829d0e5bceb5a7ec7e7a7ef6e38f8e0da8ea3f81bc7
6
+ metadata.gz: 7a678059c9597b8366dc777598a0811ec5c5edf9883a1ee6b739ce5607f3152726885e8ca7000f06a76aa3de9677c1acdced648cdc6f8f91a15df2147e89e7bc
7
+ data.tar.gz: 11f439a4eaa597b6e7f2633192609a92efe6d61b1a2b0e7cb839c63c2c0e5eb146be0c9314c035f7c96137a08e3949cd95472ec110744589603fb08eda256155
@@ -24,7 +24,7 @@ module RabidMQ
24
24
 
25
25
  class << self
26
26
  def amqp_broadcast(topic, payload, routing_key: self.default_amqp_routing_key)
27
- exchange = topic_exchange(topic)
27
+ exchange = topic_exchange(topic, durable: true)
28
28
  exchange.publish(payload, routing_key: routing_key)
29
29
  rescue => e
30
30
  if defined? ::Rails
@@ -1,3 +1,3 @@
1
1
  module RabidMQ
2
- VERSION = "0.1.29"
2
+ VERSION = "0.1.30"
3
3
  end
data/lib/rabid_mq.rb CHANGED
@@ -15,13 +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, **options)
19
- channel.topic(name_with_env(topic), **options)
18
+ def topic_exchange(topic, durable: true, **options)
19
+ channel.topic(name_with_env(topic), durable: durable, **options)
20
20
  end
21
21
 
22
22
  # Provide fanout exchange
23
- def fanout_exchange(topic, **options)
24
- channel.fanout(name_with_env(topic), **options)
23
+ def fanout_exchange(topic, durable: true, **options)
24
+ channel.fanout(name_with_env(topic), durable: durable, **options)
25
25
  end
26
26
 
27
27
  # Get a channel with the Bunny::Session
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabid_mq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyrone Wilson