amq-protocol 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amq/protocol/frame.rb +8 -2
- data/lib/amq/protocol/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fa26c5e78c043c383954d7b7f67ae8d0bbeb09a
|
4
|
+
data.tar.gz: ce7b5322fe94fc597c4160ac63544fc8e9e66b32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e456da4a6eb6407df3cfff9fe36f8d7f61706734d309992c416c8500dad0683c6d82ff00e8bf6a9f99436364955e3bc6526380eef7248247bb30e6582d6072de
|
7
|
+
data.tar.gz: 9913720373247017750e250836cf7c3f01ee66570105e4082de150de7534515ed1d03de02f44a9e7344eeed5e3059d6f48b14818c6fc1d2486e1dc2459da56f7
|
data/lib/amq/protocol/frame.rb
CHANGED
@@ -95,16 +95,22 @@ This functionality is part of the https://github.com/ruby-amqp/amq-client librar
|
|
95
95
|
@payload.bytesize
|
96
96
|
end
|
97
97
|
|
98
|
+
# TODO: remove once we are sure none of the clients
|
99
|
+
# uses this method directly
|
100
|
+
# @api private
|
98
101
|
def encode_to_array
|
99
102
|
components = []
|
100
|
-
components << [self.class.id, @channel,
|
103
|
+
components << [self.class.id, @channel, @payload.bytesize].pack(PACK_CHAR_UINT16_UINT32)
|
101
104
|
components << self.class.encoded_payload(@payload)
|
102
105
|
components << FINAL_OCTET
|
103
106
|
components
|
104
107
|
end
|
105
108
|
|
106
109
|
def encode
|
107
|
-
|
110
|
+
s = [self.class.id, @channel, @payload.bytesize].pack(PACK_CHAR_UINT16_UINT32)
|
111
|
+
s << self.class.encoded_payload(@payload)
|
112
|
+
s << FINAL_OCTET
|
113
|
+
s
|
108
114
|
end
|
109
115
|
end
|
110
116
|
|
data/lib/amq/protocol/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amq-protocol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Stastny
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-05-06 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: |2
|
17
17
|
amq-protocol is an AMQP 0.9.1 serialization library for Ruby. It is not an
|