rabid_mq 0.1.9 → 0.1.10
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/listener.rb +3 -2
- data/lib/rabid_mq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10720e7d97467c1e0a86e53be352f78e36b40932
|
|
4
|
+
data.tar.gz: d438208e4258050e06cc338aa24dcb57edfb8ced
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0bb20869a12e22072eef382562cb38ad34d4411d4d848c36191ba27b118170d2cb443a8d8e9efbc5ade78abf821d1c81fb169189991e036ceb6c40f84ab68b4
|
|
7
|
+
data.tar.gz: 89cf3a7f7e857c3ab72e04ed9aa3a4a9884f792b62f9ce1077ed263fadd2d2b2165e4e7deb2d991f6d7c4dbbfcfa01ec4ece65d83a0fc932b677ba8c3ed4a6b7
|
data/lib/rabid_mq/listener.rb
CHANGED
|
@@ -22,7 +22,8 @@ module RabidMQ
|
|
|
22
22
|
|
|
23
23
|
def amqp(queue, exchange, exclusive: false, routing_key: '#')
|
|
24
24
|
self.queue_name queue, exclusive: exclusive
|
|
25
|
-
self.exchange(exchange
|
|
25
|
+
self.exchange(exchange)
|
|
26
|
+
@routing_key = routing_key
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
# Use this as a macro in including classes like
|
|
@@ -45,7 +46,7 @@ module RabidMQ
|
|
|
45
46
|
@amqp_exchange = RabidMQ.topic_exchange name_with_env(topic), options
|
|
46
47
|
end
|
|
47
48
|
|
|
48
|
-
def bind(exchange=@amqp_exchange, routing_key:
|
|
49
|
+
def bind(exchange=@amqp_exchange, routing_key: @routing_key, **options)
|
|
49
50
|
amqp_queue.bind(exchange, routing_key: routing_key, **options)
|
|
50
51
|
end
|
|
51
52
|
|
data/lib/rabid_mq/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rabid_mq
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tyrone Wilson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bunny
|