amq-protocol 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,6 +48,10 @@ This functionality is part of the https://github.com/ruby-amqp/amq-client librar
48
48
  raise FrameTypeError.new(TYPES_OPTIONS) unless type
49
49
  [type, channel, size]
50
50
  end
51
+
52
+ def final?
53
+ true
54
+ end
51
55
  end
52
56
 
53
57
  class FrameSubclass < Frame
@@ -129,14 +133,14 @@ This functionality is part of the https://github.com/ruby-amqp/amq-client librar
129
133
 
130
134
  def decode_payload
131
135
  @decoded_payload ||= begin
132
- @klass_id, @weight = @payload.unpack(PACK_UINT16_X2)
133
- # the total size of the content body, that is, the sum of the body sizes for the
134
- # following content body frames. Zero indicates that there are no content body frames.
135
- # So this is NOT related to this very header frame!
136
- @body_size = AMQ::Hacks.unpack_64_big_endian(@payload[4..11]).first
137
- @data = @payload[12..-1]
138
- @properties = Basic.decode_properties(@data)
139
- end
136
+ @klass_id, @weight = @payload.unpack(PACK_UINT16_X2)
137
+ # the total size of the content body, that is, the sum of the body sizes for the
138
+ # following content body frames. Zero indicates that there are no content body frames.
139
+ # So this is NOT related to this very header frame!
140
+ @body_size = AMQ::Hacks.unpack_64_big_endian(@payload[4..11]).first
141
+ @data = @payload[12..-1]
142
+ @properties = Basic.decode_properties(@data)
143
+ end
140
144
  end
141
145
  end
142
146
 
@@ -146,6 +150,12 @@ This functionality is part of the https://github.com/ruby-amqp/amq-client librar
146
150
  def decode_payload
147
151
  @payload
148
152
  end
153
+
154
+ def final?
155
+ # we cannot know whether it is final or not so framing code in amq-client
156
+ # checks this over the entire frameset. MK.
157
+ false
158
+ end
149
159
  end
150
160
 
151
161
  class HeartbeatFrame < FrameSubclass
@@ -1,5 +1,5 @@
1
1
  module AMQ
2
2
  module Protocol
3
- VERSION = "0.8.3"
3
+ VERSION = "0.8.4"
4
4
  end # Protocol
5
5
  end # AMQ
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amq-protocol
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
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,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-10-12 00:00:00 Z
21
+ date: 2011-11-09 00:00:00 Z
22
22
  dependencies: []
23
23
 
24
24
  description: " amq-protocol is an AMQP 0.9.1 serialization library for Ruby. It is not an\n AMQP client: amq-protocol only handles serialization and deserialization.\n If you want to write your own AMQP client, this gem can help you with that.\n"