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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dad0a81ddb78aa0caeb2fc24b57dcc6fef939632
4
- data.tar.gz: 41333fbf3c7cbb2476fb4e474818c78f8e44a0c0
3
+ metadata.gz: 2a1c879fc08ef3677d38481f8561cb88473ff1a6
4
+ data.tar.gz: 164df96e3c6a6a4b303a899a3c34ec4289accc7a
5
5
  SHA512:
6
- metadata.gz: 067d2d43fb6857d9028e723309b4972bbef86579d97ed3fada1a13691dacde8cdad85e75f4937ca86f87d0bfe7e5c90500cc010c0712204611b243df8a0754b2
7
- data.tar.gz: 67bed98e61298663404bcb84c5897b6d962fb858228f1bc83e7bdbbb30a29d6ac9e17909b2aaac1b3433860bf843e33b142d05aaa21ecd740a75208eef639d48
6
+ metadata.gz: 0559ca47fdc5474b43bfa7be5fe721cf03c8e9c485253a94465b376c4ec9b8c3a086bfff61893ac37be8c85799246ec9e8c88c18f00878136708a99f62459789
7
+ data.tar.gz: 45e0f31c41bdba7b72cb26950ac000343c61d2c70c7a6c2e6d258b6d04e38e19f051ea800f782254c0e568db8c4702e4176918adfd13bc7cffd018caef309a00
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Apollo
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apollo-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brendan Tobolaski