bunny 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
data/lib/bunny/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Bunny
4
- VERSION = "0.7.8"
4
+ VERSION = "0.7.9"
5
5
  end
@@ -123,6 +123,12 @@ module Qrack
123
123
  table.read(:timestamp)
124
124
  when 70 # 'F'
125
125
  table.read(:table)
126
+ when 65 # 'A'
127
+ table.read(:array)
128
+ when 108 # 'l'
129
+ table.read(:longlong)
130
+ when 116 # 't'
131
+ table.read(:octet)
126
132
  end
127
133
  end
128
134
 
@@ -134,6 +140,19 @@ module Qrack
134
140
  end
135
141
 
136
142
  @bits.shift
143
+ when :array
144
+ a = Array.new
145
+
146
+ array = Buffer.new(read(:longstr))
147
+ until array.empty?
148
+ type = array.read(:octet)
149
+ a << case type
150
+ when 70 # 'F'
151
+ array.read(:table)
152
+ end
153
+ end
154
+
155
+ a
137
156
  else
138
157
  raise Qrack::InvalidTypeError, "Cannot read data of type #{type}"
139
158
  end
@@ -123,6 +123,10 @@ module Qrack
123
123
  table.read(:timestamp)
124
124
  when 70 # 'F'
125
125
  table.read(:table)
126
+ when 65 # 'A'
127
+ table.read(:array)
128
+ when 108 # 'l'
129
+ table.read(:longlong)
126
130
  when 116 # 't'
127
131
  table.read(:octet)
128
132
  end
@@ -136,6 +140,19 @@ module Qrack
136
140
  end
137
141
 
138
142
  @bits.shift
143
+ when :array
144
+ a = Array.new
145
+
146
+ array = Buffer.new(read(:longstr))
147
+ until array.empty?
148
+ type = array.read(:octet)
149
+ a << case type
150
+ when 70 # 'F'
151
+ array.read(:table)
152
+ end
153
+ end
154
+
155
+ a
139
156
  else
140
157
  raise Qrack::InvalidTypeError, "Cannot read data of type #{type}"
141
158
  end
metadata CHANGED
@@ -1,10 +1,15 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bunny
3
- version: !ruby/object:Gem::Version
4
- version: 0.7.8
3
+ version: !ruby/object:Gem::Version
4
+ hash: 17
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 9
10
+ version: 0.7.9
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Chris Duncan
9
14
  - Eric Lindvall
10
15
  - Jakub Stastny aka botanicus
@@ -13,22 +18,24 @@ authors:
13
18
  autorequire:
14
19
  bindir: bin
15
20
  cert_chain: []
16
- date: 2011-10-11 00:00:00.000000000 +02:00
17
- default_executable:
21
+
22
+ date: 2012-02-07 00:00:00 Z
18
23
  dependencies: []
19
- description: A synchronous Ruby AMQP client that enables interaction with AMQP-compliant
20
- brokers.
21
- email:
24
+
25
+ description: A synchronous Ruby AMQP client that enables interaction with AMQP-compliant brokers.
26
+ email:
22
27
  - celldee@gmail.com
23
28
  - eric@5stops.com
24
29
  - stastny@101ideas.cz
25
30
  - michael@novemberain.com
26
31
  - skaes@railsexpress.de
27
32
  executables: []
33
+
28
34
  extensions: []
29
- extra_rdoc_files:
35
+
36
+ extra_rdoc_files:
30
37
  - README.textile
31
- files:
38
+ files:
32
39
  - .gitignore
33
40
  - .rspec
34
41
  - .travis.yml
@@ -96,35 +103,41 @@ files:
96
103
  - spec/spec_09/connection_spec.rb
97
104
  - spec/spec_09/exchange_spec.rb
98
105
  - spec/spec_09/queue_spec.rb
99
- has_rdoc: true
100
106
  homepage: http://github.com/ruby-amqp/bunny
101
107
  licenses: []
102
- post_install_message: ! "[\e[32mVersion 0.7.8\e[0m] test suite cleanup (eliminated
103
- some race conditions related to queue.message_count)\n"
104
- rdoc_options:
108
+
109
+ post_install_message: "[\e[32mVersion 0.7.8\e[0m] test suite cleanup (eliminated some race conditions related to queue.message_count)\n"
110
+ rdoc_options:
105
111
  - --main
106
112
  - README.rdoc
107
- require_paths:
113
+ require_paths:
108
114
  - lib
109
- required_ruby_version: !ruby/object:Gem::Requirement
115
+ required_ruby_version: !ruby/object:Gem::Requirement
110
116
  none: false
111
- requirements:
112
- - - ! '>='
113
- - !ruby/object:Gem::Version
114
- version: '0'
115
- required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ hash: 3
121
+ segments:
122
+ - 0
123
+ version: "0"
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
125
  none: false
117
- requirements:
118
- - - ! '>='
119
- - !ruby/object:Gem::Version
120
- version: '0'
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ hash: 3
130
+ segments:
131
+ - 0
132
+ version: "0"
121
133
  requirements: []
134
+
122
135
  rubyforge_project: bunny-amqp
123
- rubygems_version: 1.6.2
136
+ rubygems_version: 1.8.10
124
137
  signing_key:
125
138
  specification_version: 3
126
139
  summary: Synchronous Ruby AMQP 0.9.1 client
127
- test_files:
140
+ test_files:
128
141
  - spec/spec_08/bunny_spec.rb
129
142
  - spec/spec_08/connection_spec.rb
130
143
  - spec/spec_08/exchange_spec.rb