amq-protocol 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/codegen_helpers.py +6 -14
- data/lib/amq/protocol/client.rb +182 -317
- data/lib/amq/protocol/version.rb +1 -1
- data/spec/amq/protocol/exchange_spec.rb +18 -4
- metadata +4 -4
data/lib/amq/protocol/version.rb
CHANGED
@@ -25,10 +25,24 @@ module AMQ
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
28
|
+
describe Declare, "encoded with a symbol name" do
|
29
|
+
describe '.encode' do
|
30
|
+
it 'encodes the parameters into a MethodFrame' do
|
31
|
+
channel = 1
|
32
|
+
exchange = :exchange2
|
33
|
+
type = 'fanout'
|
34
|
+
passive = false
|
35
|
+
durable = false
|
36
|
+
auto_delete = false
|
37
|
+
internal = false
|
38
|
+
nowait = false
|
39
|
+
arguments = nil
|
40
|
+
method_frame = Declare.encode(channel, exchange, type, passive, durable, auto_delete, internal, nowait, arguments)
|
41
|
+
method_frame.payload.should == "\x00(\x00\n\x00\x00\texchange2\x06fanout\x00\x00\x00\x00\x00"
|
42
|
+
method_frame.channel.should == 1
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
32
46
|
|
33
47
|
describe Delete do
|
34
48
|
describe '.encode' do
|
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:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 5
|
10
|
+
version: 0.9.5
|
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: 2012-
|
21
|
+
date: 2012-09-24 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"
|