rabid_mq 0.1.46 → 0.1.47

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4e8b5c55eea4b26cf3c348dfbb2853a9e6adf7a
4
- data.tar.gz: b85a88179e240aff23dded9e0fdadffc00714b42
3
+ metadata.gz: 395f09bbabc3b8f5fe593820579df72225daa801
4
+ data.tar.gz: dca966aa92beab9359473758ae9fa551c0f5d525
5
5
  SHA512:
6
- metadata.gz: ae4ffb7d91cba2a5e29144e8f1209cb9cc595c2c7f5cc8787d9f2c1ce3befae747151d7c1cae49a1666b7e865ff3dacec9ec37b0140c137239d28930eb10a056
7
- data.tar.gz: 54deb4e48f3d8698067582e09e43f993835cfb9583d87ad9abc704dbcf210eea4b2757c1cc4038e78cae3115dcd7e80ef181ed8b2733d139f05bbea166582379
6
+ metadata.gz: fc42ae2512c3dcafc6d6dc429dde9ac4ca7fef7d0762961e2c187dc786d72cd9b8d54e425ddb1e98407748c518bc224b6f7f4be48cb63b5d266bcb4644b5dba3
7
+ data.tar.gz: ce89694186b3bbec6da20120361518aae7f586ad827ca95b49b318f033bc83bd2604b226d0798ba6774329f941c6ba83ab523f553564a87e889f0b972d1850d5
@@ -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, include_environment_name: true, **options)
19
- topic_name = include_environment_name ? name_with_env(topic) : topic
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, include_environment_name: true, **options)
27
- topic_name = include_environment_name ? name_with_env(topic) : topic
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RabidMQ
2
- VERSION = "0.1.46"
2
+ VERSION = "0.1.47"
3
3
  end
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.46
4
+ version: 0.1.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyrone Wilson