amq-protocol 1.4.0 → 1.5.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f186e3bf24e927b6711cda58c42003a46cd481c
4
- data.tar.gz: f77baf1386daf522b006608a90714df0e97781bb
3
+ metadata.gz: 4fa26c5e78c043c383954d7b7f67ae8d0bbeb09a
4
+ data.tar.gz: ce7b5322fe94fc597c4160ac63544fc8e9e66b32
5
5
  SHA512:
6
- metadata.gz: 703d318cd4bddf254866c15b2870e14e28d2817687763f294e5d7c66e6c1b6026a9f60243803e29d4868129478a89ba07805610dcbbf6515159a293949b9ccad
7
- data.tar.gz: 187fa32ab85369862486497e5663f229b741d9034b7e8bba2a869c9f9968b18f223df79decdf705cc00277e9ca8f1e169829edc7b3d65d2f1804cfbb48acb65d
6
+ metadata.gz: e456da4a6eb6407df3cfff9fe36f8d7f61706734d309992c416c8500dad0683c6d82ff00e8bf6a9f99436364955e3bc6526380eef7248247bb30e6582d6072de
7
+ data.tar.gz: 9913720373247017750e250836cf7c3f01ee66570105e4082de150de7534515ed1d03de02f44a9e7344eeed5e3059d6f48b14818c6fc1d2486e1dc2459da56f7
@@ -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, self.size].pack(PACK_CHAR_UINT16_UINT32)
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
- encode_to_array.join
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
 
@@ -1,5 +1,5 @@
1
1
  module AMQ
2
2
  module Protocol
3
- VERSION = "1.4.0"
3
+ VERSION = "1.5.0"
4
4
  end # Protocol
5
5
  end # AMQ
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.0
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-04-30 00:00:00.000000000 Z
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