dkastner-hutch 0.19.0.pre1 → 0.19.0.pre2

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: ca9c923df5ace74031777bc88f495b997123dbdb
4
- data.tar.gz: a0e464a895e6c8f58dc58909ce3afb42e9a0e565
3
+ metadata.gz: 74ae8c1f6d6041944504191e3a6d519b41d6f631
4
+ data.tar.gz: 3b67754fa695df76425a459905864540c1f6eb8b
5
5
  SHA512:
6
- metadata.gz: fbc9df84841ec14bc014d255f7ba7ac097ff662ee93e345e9866582393ced2ccd0c5bf054b1358e5d808439d170f81b66e295c37dfe92ce528e3ef23eb908e09
7
- data.tar.gz: 0fbf1b852344c3e42849725a1ceba069665efaafe6dcc20851e6fe18105e94cff5ff862af9188380c1da34c32adfecb118900b7db69caa9b43613f215095dbf1
6
+ metadata.gz: 16fb65b6590ce9d6159d0f0b529e1d8a428335a9be432212b98c2c2313730ed5ad608ff3b0dd7fbb63f90be5627e0c7a5d87e121db7e9ab87dd5bb4f32bdc565
7
+ data.tar.gz: ce108b0c3836c08d5f8d834c3ba320e436f3ec404d8f5fe3e26f09ca9cc56a7d1cf4b119332fcee3234c2cc43379c0e0b12044f66ab4412d291a44f97711479d
data/lib/hutch/broker.rb CHANGED
@@ -52,10 +52,12 @@ module Hutch
52
52
  open_channel!
53
53
 
54
54
  exchange_name = @config[:mq_exchange]
55
+ default_options = { durable: true }
56
+ exchange_options = default_options.merge @config[:mq_exchange_options]
55
57
  logger.info "using topic exchange '#{exchange_name}'"
56
58
 
57
59
  with_bunny_precondition_handler('exchange') do
58
- @exchange = @channel.topic(exchange_name, durable: true)
60
+ @exchange = @channel.topic(exchange_name, exchange_options)
59
61
  end
60
62
  end
61
63
 
data/lib/hutch/config.rb CHANGED
@@ -13,6 +13,7 @@ module Hutch
13
13
  mq_host: 'localhost',
14
14
  mq_port: 5672,
15
15
  mq_exchange: 'hutch', # TODO: should this be required?
16
+ mq_exchange_options: {},
16
17
  mq_vhost: '/',
17
18
  mq_tls: false,
18
19
  mq_tls_cert: nil,
data/lib/hutch/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Hutch
2
- VERSION = '0.19.0.pre1'.freeze
2
+ VERSION = '0.19.0.pre2'.freeze
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dkastner-hutch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0.pre1
4
+ version: 0.19.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Marr