apollo-tools 0.1.6 → 0.1.7
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/apollo.rb +6 -1
- data/lib/apollo/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: 2a1c879fc08ef3677d38481f8561cb88473ff1a6
|
4
|
+
data.tar.gz: 164df96e3c6a6a4b303a899a3c34ec4289accc7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0559ca47fdc5474b43bfa7be5fe721cf03c8e9c485253a94465b376c4ec9b8c3a086bfff61893ac37be8c85799246ec9e8c88c18f00878136708a99f62459789
|
7
|
+
data.tar.gz: 45e0f31c41bdba7b72cb26950ac000343c61d2c70c7a6c2e6d258b6d04e38e19f051ea800f782254c0e568db8c4702e4176918adfd13bc7cffd018caef309a00
|
data/lib/apollo.rb
CHANGED
@@ -86,10 +86,15 @@ module Apollo
|
|
86
86
|
# @param host [Symbol] the host that the queue is on
|
87
87
|
# @param exchange [String] the exchange to bind the queue to
|
88
88
|
# @param key [String] The routing key to use to bind the queue to the specified exchange
|
89
|
+
#
|
90
|
+
# @param opts [Hash]
|
91
|
+
# @option opts [String] :vhost The vhost to create the listener on
|
92
|
+
#
|
89
93
|
# @return [Apollo::Rabbitmq::Listener] A listener listening on the specified queue
|
90
|
-
def create_rmq_listener(host, exchange, key)
|
94
|
+
def create_rmq_listener(host, exchange, key, opts = {})
|
91
95
|
sym_hash = Hash.new
|
92
96
|
@hosts[host].each { |k, v| sym_hash[k.to_sym] = v}
|
97
|
+
sym_hash = sym_hash.merge(opts)
|
93
98
|
Apollo::Rabbitmq::Listener.new(exchange, key, sym_hash)
|
94
99
|
end
|
95
100
|
|
data/lib/apollo/version.rb
CHANGED