amq-client 0.8.3 → 0.8.4

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.
data/.gitignore CHANGED
@@ -7,3 +7,4 @@ doc/*
7
7
  # see http://bit.ly/h2WJPm for reasoning
8
8
  Gemfile.lock
9
9
  vendor
10
+ .rbx/*
@@ -231,7 +231,7 @@ module AMQ
231
231
  channel = connection.channels[frame.channel]
232
232
  consumer = channel.consumers_awaiting_cancel_ok.shift
233
233
 
234
- consumer.handle_consume_ok(frame.decode_payload)
234
+ consumer.handle_cancel_ok(frame.decode_payload)
235
235
  end
236
236
 
237
237
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AMQ
4
4
  module Client
5
- VERSION = "0.8.3"
5
+ VERSION = "0.8.4"
6
6
  end
7
7
  end
@@ -10,7 +10,8 @@ describe AMQ::Client::EventMachineClient, "Basic.Cancel" do
10
10
  let(:messages) { (0..99).map {|i| "Message #{i}" } }
11
11
 
12
12
  it "should stop receiving messages after receiving cancel-ok" do
13
- @received_messages = []
13
+ @received_messages = []
14
+ @received_basic_cancel_ok = false
14
15
  em_amqp_connect do |client|
15
16
  channel = AMQ::Client::Channel.new(client, 1)
16
17
  channel.open do
@@ -31,12 +32,14 @@ describe AMQ::Client::EventMachineClient, "Basic.Cancel" do
31
32
  delayed(1.5) {
32
33
  @received_messages.should =~ messages
33
34
  queue.cancel do
35
+ @received_basic_cancel_ok = true
34
36
  exchange.publish("Extra message, should not be received")
35
37
  end
36
38
  }
37
39
 
38
40
  done(2.5) {
39
41
  @received_messages.should =~ messages
42
+ @received_basic_cancel_ok.should be_true
40
43
  }
41
44
  end
42
45
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amq-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 2109245151418978779
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 3
10
- version: 0.8.3
9
+ - 4
10
+ version: 0.8.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jakub Stastny
@@ -18,8 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-08-29 00:00:00 +04:00
22
- default_executable:
21
+ date: 2011-10-27 00:00:00 Z
23
22
  dependencies:
24
23
  - !ruby/object:Gem::Dependency
25
24
  name: eventmachine
@@ -29,7 +28,7 @@ dependencies:
29
28
  requirements:
30
29
  - - ">="
31
30
  - !ruby/object:Gem::Version
32
- hash: 2002549777813010636
31
+ hash: 3
33
32
  segments:
34
33
  - 0
35
34
  version: "0"
@@ -43,7 +42,7 @@ dependencies:
43
42
  requirements:
44
43
  - - ">="
45
44
  - !ruby/object:Gem::Version
46
- hash: 289844351982071926
45
+ hash: 63
47
46
  segments:
48
47
  - 0
49
48
  - 8
@@ -221,7 +220,6 @@ files:
221
220
  - spec/unit/client/settings_spec.rb
222
221
  - spec/unit/client_spec.rb
223
222
  - tasks.rb
224
- has_rdoc: true
225
223
  homepage: http://github.com/ruby-amqp/amq-client
226
224
  licenses: []
227
225
 
@@ -235,7 +233,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
235
233
  requirements:
236
234
  - - ">="
237
235
  - !ruby/object:Gem::Version
238
- hash: 2002549777813010636
236
+ hash: 3
239
237
  segments:
240
238
  - 0
241
239
  version: "0"
@@ -244,14 +242,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
242
  requirements:
245
243
  - - ">="
246
244
  - !ruby/object:Gem::Version
247
- hash: 2002549777813010636
245
+ hash: 3
248
246
  segments:
249
247
  - 0
250
248
  version: "0"
251
249
  requirements: []
252
250
 
253
251
  rubyforge_project: amq-client
254
- rubygems_version: 1.5.2
252
+ rubygems_version: 1.8.10
255
253
  signing_key:
256
254
  specification_version: 3
257
255
  summary: amq-client is a fully-featured, low-level AMQP 0.9.1 client