amq-client 0.8.6 → 0.8.7.pre1

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/.travis.yml CHANGED
@@ -13,9 +13,7 @@ gemfile:
13
13
  - gemfiles/eventmachine-pre
14
14
  notifications:
15
15
  recipients:
16
- - jakub@rabbitmq.com
17
16
  - michaelklishin@me.com
18
- - markizko@gmail.com
19
17
  branches:
20
18
  only:
21
19
  - master
@@ -509,12 +509,13 @@ module AMQ
509
509
  # @param [AMQ::Protocol::Frame] frame
510
510
  # @api plugin
511
511
  def receive_frame(frame)
512
- @frames << frame
513
- if frameset_complete?(@frames)
514
- receive_frameset(@frames)
515
- @frames.clear
516
- else
517
- # puts "#{frame.inspect} is NOT final"
512
+ @frames[frame.channel] ||= Array.new
513
+ @frames[frame.channel] << frame
514
+
515
+ if frameset_complete?(@frames[frame.channel])
516
+ receive_frameset(@frames[frame.channel])
517
+ # for channel.close, frame.channel will be nil. MK.
518
+ @frames[frame.channel].clear if @frames[frame.channel]
518
519
  end
519
520
  end
520
521
 
@@ -146,7 +146,8 @@ module AMQ
146
146
 
147
147
  self.logger = self.class.logger
148
148
 
149
- @frames = Array.new
149
+ # channel => collected frames. MK.
150
+ @frames = Hash.new { Array.new }
150
151
  @channels = Hash.new
151
152
 
152
153
  @mechanism = "PLAIN"
@@ -142,7 +142,8 @@ module AMQ
142
142
 
143
143
  self.logger = self.class.logger
144
144
 
145
- @frames = Array.new
145
+ # channel => collected frames. MK.
146
+ @frames = Hash.new { Array.new }
146
147
  @channels = Hash.new
147
148
  @callbacks = Hash.new
148
149
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AMQ
4
4
  module Client
5
- VERSION = "0.8.6"
5
+ VERSION = "0.8.7.pre1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amq-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
5
- prerelease:
4
+ hash: 1923831827
5
+ prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 6
10
- version: 0.8.6
9
+ - 7
10
+ - pre
11
+ - 1
12
+ version: 0.8.7.pre1
11
13
  platform: ruby
12
14
  authors:
13
15
  - Jakub Stastny
@@ -18,7 +20,7 @@ autorequire:
18
20
  bindir: bin
19
21
  cert_chain: []
20
22
 
21
- date: 2011-11-09 00:00:00 Z
23
+ date: 2011-11-13 00:00:00 Z
22
24
  dependencies:
23
25
  - !ruby/object:Gem::Dependency
24
26
  name: eventmachine
@@ -240,12 +242,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
242
  required_rubygems_version: !ruby/object:Gem::Requirement
241
243
  none: false
242
244
  requirements:
243
- - - ">="
245
+ - - ">"
244
246
  - !ruby/object:Gem::Version
245
- hash: 3
247
+ hash: 25
246
248
  segments:
247
- - 0
248
- version: "0"
249
+ - 1
250
+ - 3
251
+ - 1
252
+ version: 1.3.1
249
253
  requirements: []
250
254
 
251
255
  rubyforge_project: amq-client