Hello community,
here is the log from the commit of package rubygem-amq-protocol for
openSUSE:Factory checked in at 2016-01-28 17:22:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-amq-protocol (Old)
and /work/SRC/openSUSE:Factory/.rubygem-amq-protocol.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-amq-protocol"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-amq-protocol/rubygem-amq-protocol.changes
2015-12-01 09:18:45.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-amq-protocol.new/rubygem-amq-protocol.changes
2016-01-28 17:22:34.000000000 +0100
@@ -1,0 +2,6 @@
+Fri Dec 18 05:28:32 UTC 2015 - [email protected]
+
+- updated to version 2.0.1
+ see installed ChangeLog.md
+
+-------------------------------------------------------------------
Old:
----
amq-protocol-2.0.0.gem
New:
----
amq-protocol-2.0.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-amq-protocol.spec ++++++
--- /var/tmp/diff_new_pack.FeSmCv/_old 2016-01-28 17:22:35.000000000 +0100
+++ /var/tmp/diff_new_pack.FeSmCv/_new 2016-01-28 17:22:35.000000000 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-amq-protocol
-Version: 2.0.0
+Version: 2.0.1
Release: 0
%define mod_name amq-protocol
%define mod_full_name %{mod_name}-%{version}
++++++ amq-protocol-2.0.0.gem -> amq-protocol-2.0.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2015-08-15 11:07:32.000000000 +0200
+++ new/README.md 2015-12-17 14:41:10.000000000 +0100
@@ -10,8 +10,7 @@
## Supported Ruby Versions
amq-protocol `1.9.2` was the last version to support Ruby 1.8 and 1.9.
-
-amq-protocol `2.0.0` and later will only support Ruby 2.0+.
+amq-protocol `2.0.0` and later only supports Ruby 2.0+.
## Installation
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/amq/protocol/client.rb
new/lib/amq/protocol/client.rb
--- old/lib/amq/protocol/client.rb 2015-08-15 11:07:32.000000000 +0200
+++ new/lib/amq/protocol/client.rb 2015-12-17 14:41:10.000000000 +0100
@@ -1437,7 +1437,8 @@
result = [60, 0].pack(PACK_UINT16_X2)
result += AMQ::Pack.pack_uint64_big_endian(body_size)
result += [flags].pack(PACK_UINT16)
- result + pieces.join(EMPTY_STRING)
+ pieces_joined = pieces.join(EMPTY_STRING)
+ result.force_encoding(pieces_joined.encoding) + pieces_joined
end
# THIS DECODES ONLY FLAGS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/amq/protocol/table.rb
new/lib/amq/protocol/table.rb
--- old/lib/amq/protocol/table.rb 2015-08-15 11:07:32.000000000 +0200
+++ new/lib/amq/protocol/table.rb 2015-12-17 14:41:10.000000000 +0100
@@ -41,11 +41,11 @@
buffer << TYPE_HASH
buffer << self.encode(value)
else
- buffer << TableValueEncoder.encode(value)
+ buffer <<
TableValueEncoder.encode(value).force_encoding(buffer.encoding)
end
end
- [buffer.bytesize].pack(PACK_UINT32) + buffer
+ [buffer.bytesize].pack(PACK_UINT32).force_encoding(buffer.encoding) +
buffer
end
@@ -66,6 +66,12 @@
when TYPE_STRING
v, offset = TableValueDecoder.decode_string(data,
offset)
v
+ when TYPE_BYTE_ARRAY
+ # Ruby doesn't have a direct counterpart to
+ # ByteBuffer or byte[], so using a string feels
+ # more appropriate than an array of fixnums
+ v, offset = TableValueDecoder.decode_string(data,
offset)
+ v
when TYPE_INTEGER
v, offset = TableValueDecoder.decode_integer(data,
offset)
v
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/amq/protocol/table_value_decoder.rb
new/lib/amq/protocol/table_value_decoder.rb
--- old/lib/amq/protocol/table_value_decoder.rb 2015-08-15 11:07:32.000000000
+0200
+++ new/lib/amq/protocol/table_value_decoder.rb 2015-12-17 14:41:10.000000000
+0100
@@ -35,6 +35,12 @@
when TYPE_STRING
v, offset = decode_string(data, offset)
v
+ when TYPE_BYTE_ARRAY
+ # Ruby doesn't have a direct counterpart to
+ # ByteBuffer or byte[], so using a string feels
+ # more appropriate than an array of fixnums
+ v, offset = decode_string(data, offset)
+ v
when TYPE_INTEGER
v, offset = decode_integer(data, offset)
v
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/amq/protocol/version.rb
new/lib/amq/protocol/version.rb
--- old/lib/amq/protocol/version.rb 2015-08-15 11:07:32.000000000 +0200
+++ new/lib/amq/protocol/version.rb 2015-12-17 14:41:10.000000000 +0100
@@ -1,5 +1,5 @@
module AMQ
module Protocol
- VERSION = "2.0.0"
+ VERSION = "2.0.1"
end # Protocol
end # AMQ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-08-15 11:07:32.000000000 +0200
+++ new/metadata 2015-12-17 14:41:10.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: amq-protocol
version: !ruby/object:Gem::Version
- version: 2.0.0
+ version: 2.0.1
platform: ruby
authors:
- Jakub Stastny
@@ -11,7 +11,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2015-08-15 00:00:00.000000000 Z
+date: 2015-12-17 00:00:00.000000000 Z
dependencies: []
description: |2
amq-protocol is an AMQP 0.9.1 serialization library for Ruby. It is not a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/spec/amq/protocol/table_spec.rb
new/spec/amq/protocol/table_spec.rb
--- old/spec/amq/protocol/table_spec.rb 2015-08-15 11:07:32.000000000 +0200
+++ new/spec/amq/protocol/table_spec.rb 2015-12-17 14:41:10.000000000 +0100
@@ -93,6 +93,12 @@
it "is capable of decoding string table values" do
input = { "stringvalue" => "string" }
expect(Table.decode(Table.encode(input))).to eq(input)
+
+
expect(Table.decode("\x00\x00\x00\x17\vstringvalueS\x00\x00\x00\x06string")).to
eq(input)
+ end
+
+ it "is capable of decoding byte array table values (as Ruby strings)"
do
+
expect(Table.decode("\x00\x00\x00\x17\vstringvaluex\x00\x00\x00\x06string")).to
eq({"stringvalue" => "string"})
end
it "is capable of decoding string table values with UTF-8 characters"
do