queueing_rabbit 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGM2ODNhMTMxNGE4ZWY0MTY1OTE4MzdlODdlOGU1Mzk0MGIxM2I5OQ==
4
+ ZTk3ODlhMzY4N2ZkOGVmYWRkZmE3YzM2NDRkNzdkZDE3ZjhlZTZlMA==
5
5
  data.tar.gz: !binary |-
6
- OGM3YjhhYTRhNGZkOWQzZmI0YjQ2MDdjZTg0ODQ0OWNlYjg0YzZjMw==
6
+ Y2QzZDZkNzdiMmM1NmY4ZWZhMTE4ZGQzNTFmM2U5N2YyMDMyZmEwMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzBiODU5NjAwMDMzN2VjYWRmNzUzNzNjMTE5OGZmMmEzNmM3NGM0ZDU3ZjVi
10
- NDE3MzQxNGJhMWNiZWFlODAyMzJmMGRlNGRhYTY2ZmQ1YTNhYjEyZDRhZGZh
11
- M2I5MWRmZDc0YjI4Yjk0YjJiOGFlZmYxNmEzYzI3ZmExYWRmMjA=
9
+ MjFlYjE1ZmQ4ZGQ4MGQ1MGRmNjVjNGQzYzgxMGQ5NzAwNmE0NTY3M2IyMGI2
10
+ ZDNlYzRlZjFkZGQ3MTE0YmZmMGIzZjA3Njk0MjdiNTQ0ZWFkYmJiNzJlZDVj
11
+ NjRkZTllYTQwYzU5OWFlMmU4Njc0YjU5YTRhNDE2ZDcxOGYwODk=
12
12
  data.tar.gz: !binary |-
13
- M2Q4NmQ2MTUwNzM4ZDE2MjkxMGE4NDA4YmI2OTNlMzQ1MzU1OTIzZjA5YjBh
14
- OGI1Zjk4NWNiMjQ2OGM2ZDA4MmY4YjJiNWQ2OTY1YjYwMGI3NGEwMWQ5NWU5
15
- ODY3MWYzYTA3NjU1NGM3NGQ2ZmZhMGQ1ZjhiYjM4M2Y3YWQzNDI=
13
+ OTNlYTBiMjJiNjcyYzEyZGQ4N2YzMjJjMTA1Yjg2NTRiZmQyNzc3OWQyOWZl
14
+ YWFiOTEzMTIwNTY3NzNhNzZkZDVhYWJlYmFlOWYxY2JiMjdlODQ0MjlkYTcx
15
+ ODI3NTJjOTEyZThlNTYyNTg4YWVlODk1MDg1MGQ1ODVjNjFmMGM=
@@ -115,6 +115,7 @@ module QueueingRabbit
115
115
  end
116
116
 
117
117
  def define_exchange(channel, name = '', options = {})
118
+ options = options.dup
118
119
  type = options.delete(:type)
119
120
  with_exchange = Proc.new do |exchange, _|
120
121
  yield exchange if block_given?
@@ -35,6 +35,7 @@ module QueueingRabbit
35
35
  alias_method :publish, :enqueue
36
36
 
37
37
  def define_exchange(channel = nil, name = '', options = {})
38
+ options = options.dup
38
39
  type = options.delete(:type)
39
40
 
40
41
  exchange = type ? channel.send(type.to_sym, name, options) :
@@ -1,3 +1,3 @@
1
1
  module QueueingRabbit
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -216,11 +216,11 @@ describe QueueingRabbit::Client::AMQP do
216
216
  context 'with arguments and type' do
217
217
  let(:channel) { mock }
218
218
  let(:name) { 'some_exchange_name' }
219
- let(:options) { {:type => 'direct'} }
219
+ let(:options) { {:type => 'direct', :durable => true} }
220
220
  let(:exchange) { mock }
221
221
 
222
222
  it 'creates an exchange of given type and options' do
223
- channel.should_receive(:direct).with(name, options).
223
+ channel.should_receive(:direct).with(name, :durable => true).
224
224
  and_return(exchange)
225
225
  client.define_exchange(channel, name, options).should == exchange
226
226
  end
@@ -101,11 +101,11 @@ describe QueueingRabbit::Client::Bunny do
101
101
  context 'with arguments and type' do
102
102
  let(:channel) { mock }
103
103
  let(:name) { 'some_exchange_name' }
104
- let(:options) { {:type => 'direct'} }
104
+ let(:options) { {:type => 'direct', :durable => true} }
105
105
  let(:exchange) { mock }
106
106
 
107
107
  it 'creates an exchange of given type and options' do
108
- channel.should_receive(:direct).with(name, options).
108
+ channel.should_receive(:direct).with(name, :durable => true).
109
109
  and_return(exchange)
110
110
  client.define_exchange(channel, name, options).should == exchange
111
111
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queueing_rabbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Chistyakov