amq-protocol 1.0.0.pre6 → 1.0.0.pre7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -2
- 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,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amq-protocol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1823835302
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
9
|
- 0
|
10
10
|
- pre
|
11
|
-
-
|
12
|
-
version: 1.0.0.
|
11
|
+
- 7
|
12
|
+
version: 1.0.0.pre7
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Jakub Stastny
|
@@ -20,7 +20,7 @@ autorequire:
|
|
20
20
|
bindir: bin
|
21
21
|
cert_chain: []
|
22
22
|
|
23
|
-
date: 2012-
|
23
|
+
date: 2012-09-24 00:00:00 Z
|
24
24
|
dependencies: []
|
25
25
|
|
26
26
|
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"
|