amq-protocol 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/amq/protocol/client.rb +2 -2
- data/lib/amq/protocol/version.rb +1 -1
- data/protocol.rb.pytemplate +2 -2
- metadata +4 -4
data/lib/amq/protocol/client.rb
CHANGED
@@ -1467,8 +1467,8 @@ module AMQ
|
|
1467
1467
|
def self.encode_properties(body_size, properties)
|
1468
1468
|
pieces, flags = [], 0
|
1469
1469
|
|
1470
|
-
properties.each do |key, value|
|
1471
|
-
i, f, result = self.
|
1470
|
+
properties.reject {|key, value| value.nil?}.each do |key, value|
|
1471
|
+
i, f, result = self.__send__(:"encode_#{key}", value)
|
1472
1472
|
flags |= f
|
1473
1473
|
pieces[i] = result
|
1474
1474
|
end
|
data/lib/amq/protocol/version.rb
CHANGED
data/protocol.rb.pytemplate
CHANGED
@@ -244,8 +244,8 @@ module AMQ
|
|
244
244
|
def self.encode_properties(body_size, properties)
|
245
245
|
pieces, flags = [], 0
|
246
246
|
|
247
|
-
properties.each do |key, value|
|
248
|
-
i, f, result = self.
|
247
|
+
properties.reject {|key, value| value.nil?}.each do |key, value|
|
248
|
+
i, f, result = self.__send__(:"encode_#{key}", value)
|
249
249
|
flags |= f
|
250
250
|
pieces[i] = result
|
251
251
|
end
|
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: 61
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 3
|
10
|
+
version: 0.9.3
|
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-06-
|
21
|
+
date: 2012-06-27 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"
|