jack_rabbit 0.2.0-java → 0.2.1-java

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.
@@ -36,11 +36,13 @@ module JackRabbit
36
36
  end
37
37
 
38
38
  def create_exchange(name, options)
39
- @channel.exchange(name, EXCHANGE_OPTIONS.merge(options))
39
+ exchange_options = options[:exchange] || {}
40
+ @channel.exchange(name, EXCHANGE_OPTIONS.merge(exchange_options))
40
41
  end
41
42
 
42
43
  def create_queue(name, options)
43
- @channel.queue(name, QUEUE_OPTIONS.merge(options))
44
+ queue_options = options[:queue] || {}
45
+ @channel.queue(name, QUEUE_OPTIONS.merge(queue_options))
44
46
  end
45
47
 
46
48
  private
@@ -1,3 +1,3 @@
1
1
  module JackRabbit
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jack_rabbit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: java
7
7
  authors:
8
8
  - Sebastian Ohm