Hello community,
here is the log from the commit of package rubygem-amq-protocol for
openSUSE:Factory checked in at 2017-04-11 09:31:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-amq-protocol (Old)
and /work/SRC/openSUSE:Factory/.rubygem-amq-protocol.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-amq-protocol"
Tue Apr 11 09:31:24 2017 rev:14 rq:456605 version:2.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-amq-protocol/rubygem-amq-protocol.changes
2016-01-28 17:22:34.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-amq-protocol.new/rubygem-amq-protocol.changes
2017-04-11 09:31:27.101295088 +0200
@@ -1,0 +2,22 @@
+Sun Jan 29 05:29:11 UTC 2017 - [email protected]
+
+- updated to version 2.1.0
+ see installed ChangeLog.md
+
+ ## Changes between 2.0.0 and 2.1.0
+
+ ### Ruby Warnings Squashed
+
+ Contributed by Akira Matsuda.
+
+ GitHub issue: [#62](https://github.com/ruby-amqp/amq-protocol/pull/62)
+
+ ### Byte Array Decoding
+
+ Byte array values in types now can be
+ decoded (to the extent Ruby type system
+ permits) by this library.
+
+ GitHub issue: [#58](https://github.com/ruby-amqp/amq-protocol/issues/58)
+
+-------------------------------------------------------------------
Old:
----
amq-protocol-2.0.1.gem
New:
----
amq-protocol-2.1.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-amq-protocol.spec ++++++
--- /var/tmp/diff_new_pack.Kdxl3I/_old 2017-04-11 09:31:27.753203018 +0200
+++ /var/tmp/diff_new_pack.Kdxl3I/_new 2017-04-11 09:31:27.757202453 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-amq-protocol
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-amq-protocol
-Version: 2.0.1
+Version: 2.1.0
Release: 0
%define mod_name amq-protocol
%define mod_full_name %{mod_name}-%{version}
++++++ amq-protocol-2.0.1.gem -> amq-protocol-2.1.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml 2015-12-17 14:41:10.000000000 +0100
+++ new/.travis.yml 2017-01-28 06:55:25.000000000 +0100
@@ -1,7 +1,9 @@
language: ruby
bundler_args: --without development
+cache: bundler
script: "bundle exec rspec spec"
rvm:
+ - 2.3.0
- 2.2
- 2.1
- 2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ChangeLog.md new/ChangeLog.md
--- old/ChangeLog.md 2015-12-17 14:41:10.000000000 +0100
+++ new/ChangeLog.md 2017-01-28 06:55:25.000000000 +0100
@@ -1,3 +1,21 @@
+## Changes between 2.0.0 and 2.1.0
+
+### Ruby Warnings Squashed
+
+Contributed by Akira Matsuda.
+
+GitHub issue: [#62](https://github.com/ruby-amqp/amq-protocol/pull/62)
+
+### Byte Array Decoding
+
+Byte array values in types now can be
+decoded (to the extent Ruby type system
+permits) by this library.
+
+GitHub issue: [#58](https://github.com/ruby-amqp/amq-protocol/issues/58)
+
+
+
## Changes between 1.9.x and 2.0.0
2.0.0 has **breaking changes** in header encoding.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2015-12-17 14:41:10.000000000 +0100
+++ new/Gemfile 2017-01-28 06:55:25.000000000 +0100
@@ -10,7 +10,7 @@
end
group :test do
- gem "rspec"
+ gem "rspec", ">= 3.4.0"
gem "rspec-its"
gem "effin_utf8"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/LICENSE new/LICENSE
--- old/LICENSE 2015-12-17 14:41:10.000000000 +0100
+++ new/LICENSE 2017-01-28 06:55:25.000000000 +0100
@@ -1,5 +1,5 @@
Copyright (c) 2010 – 2011 Jakub Šťastný aka Botanicus
-Copyright (c) 2011 – 2015 Michael S. Klishin <[email protected]>
+Copyright (c) 2011 – 2016 Michael S. Klishin <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/codegen/protocol.rb.pytemplate
new/codegen/protocol.rb.pytemplate
--- old/codegen/protocol.rb.pytemplate 2015-12-17 14:41:10.000000000 +0100
+++ new/codegen/protocol.rb.pytemplate 2017-01-28 06:55:25.000000000 +0100
@@ -114,7 +114,7 @@
body.force_encoding("ASCII-8BIT") if RUBY_VERSION.to_f >= 1.9
array = Array.new
- while body
+ while body && !body.empty?
payload, body = body[0, limit], body[limit, body.length - limit]
array << BodyFrame.new(payload, channel)
end
@@ -167,7 +167,8 @@
result = [${klass.index}, 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
@@ -235,7 +236,7 @@
% if (spec.type == "client" and method.accepted_by("client")) or
(spec.type == "server" and method.accepted_by("server") or spec.type == "all"):
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
% for line in helpers.genDecodeMethodDefinition(spec, method):
${line}
% endfor
@@ -285,7 +286,7 @@
% if "payload" in method.args() or "user_headers" in method.args():
frames = [MethodFrame.new(buffer, channel)]
% if "user_headers" in method.args():
- properties, headers = self.split_headers(user_headers)
+ properties, _headers = self.split_headers(user_headers)
if properties.nil? or properties.empty?
raise RuntimeError.new("Properties can not be empty!")
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/amq/int_allocator.rb new/lib/amq/int_allocator.rb
--- old/lib/amq/int_allocator.rb 2015-12-17 14:41:10.000000000 +0100
+++ new/lib/amq/int_allocator.rb 2017-01-28 06:55:25.000000000 +0100
@@ -36,12 +36,12 @@
end # initialize(hi, lo)
# Attempts to allocate next available integer. If allocation succeeds,
allocated value is returned.
- # Otherwise, nil is returned.
+ # Otherwise, -1 is returned.
#
# Current implementation of this method is O(n), where n is number of bits
in the range available for
# allocation.
#
- # @return [Integer] Allocated integer if allocation succeeded. nil
otherwise.
+ # @return [Integer] Allocated integer if allocation succeeded. -1
otherwise.
def allocate
if n = @free_set.next_clear_bit
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-12-17 14:41:10.000000000 +0100
+++ new/lib/amq/protocol/client.rb 2017-01-28 06:55:25.000000000 +0100
@@ -204,7 +204,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
version_major = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
version_minor = data[offset, 1].unpack(PACK_CHAR).first
@@ -275,7 +275,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
length = data[offset, 4].unpack(PACK_UINT32).first
offset += 4
challenge = data[offset, length]
@@ -326,7 +326,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
channel_max = data[offset, 2].unpack(PACK_UINT16).first
offset += 2
frame_max = data[offset, 4].unpack(PACK_UINT32).first
@@ -412,7 +412,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
length = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
known_hosts = data[offset, length]
@@ -440,7 +440,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
reply_code = data[offset, 2].unpack(PACK_UINT16).first
offset += 2
length = data[offset, 1].unpack(PACK_CHAR).first
@@ -489,7 +489,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -518,7 +518,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
length = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
reason = data[offset, length]
@@ -555,7 +555,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -614,7 +614,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
length = data[offset, 4].unpack(PACK_UINT32).first
offset += 4
channel_id = data[offset, length]
@@ -642,7 +642,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
bit_buffer = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
active = (bit_buffer & (1 << 0)) != 0
@@ -678,7 +678,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
bit_buffer = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
active = (bit_buffer & (1 << 0)) != 0
@@ -714,7 +714,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
reply_code = data[offset, 2].unpack(PACK_UINT16).first
offset += 2
length = data[offset, 1].unpack(PACK_CHAR).first
@@ -762,7 +762,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -832,7 +832,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -882,7 +882,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -936,7 +936,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -990,7 +990,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -1052,7 +1052,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
length = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
queue = data[offset, length]
@@ -1118,7 +1118,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -1167,7 +1167,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
message_count = data[offset, 4].unpack(PACK_UINT32).first
offset += 4
self.new(message_count)
@@ -1222,7 +1222,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
message_count = data[offset, 4].unpack(PACK_UINT32).first
offset += 4
self.new(message_count)
@@ -1277,7 +1277,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -1561,7 +1561,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -1616,7 +1616,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
length = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
consumer_tag = data[offset, length]
@@ -1644,7 +1644,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
length = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
consumer_tag = data[offset, length]
@@ -1687,7 +1687,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
length = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
consumer_tag = data[offset, length]
@@ -1733,7 +1733,7 @@
bit_buffer = bit_buffer | (1 << 1) if immediate
buffer << [bit_buffer].pack(PACK_CHAR)
frames = [MethodFrame.new(buffer, channel)]
- properties, headers = self.split_headers(user_headers)
+ properties, _headers = self.split_headers(user_headers)
if properties.nil? or properties.empty?
raise RuntimeError.new("Properties can not be empty!")
end
@@ -1753,7 +1753,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
reply_code = data[offset, 2].unpack(PACK_UINT16).first
offset += 2
length = data[offset, 1].unpack(PACK_CHAR).first
@@ -1794,7 +1794,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
length = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
consumer_tag = data[offset, length]
@@ -1866,7 +1866,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
delivery_tag = AMQ::Pack.unpack_uint64_big_endian(data[offset,
8]).first
offset += 8
bit_buffer = data[offset, 1].unpack(PACK_CHAR).first
@@ -1909,7 +1909,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
length = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
cluster_id = data[offset, length]
@@ -1937,7 +1937,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
delivery_tag = AMQ::Pack.unpack_uint64_big_endian(data[offset,
8]).first
offset += 8
bit_buffer = data[offset, 1].unpack(PACK_CHAR).first
@@ -2047,7 +2047,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -2069,7 +2069,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
delivery_tag = AMQ::Pack.unpack_uint64_big_endian(data[offset,
8]).first
offset += 8
bit_buffer = data[offset, 1].unpack(PACK_CHAR).first
@@ -2140,7 +2140,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -2182,7 +2182,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -2224,7 +2224,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
@@ -2254,7 +2254,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
bit_buffer = data[offset, 1].unpack(PACK_CHAR).first
offset += 1
nowait = (bit_buffer & (1 << 0)) != 0
@@ -2290,7 +2290,7 @@
# @return
def self.decode(data)
- offset = 0
+ offset = offset = 0 # self-assigning offset to eliminate "assigned
but unused variable" warning even if offset is not used in this method
self.new()
end
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-12-17 14:41:10.000000000 +0100
+++ new/lib/amq/protocol/table.rb 2017-01-28 06:55:25.000000000 +0100
@@ -1,6 +1,5 @@
# encoding: binary
-require "amq/protocol/client"
require "amq/protocol/type_constants"
require "amq/protocol/table_value_encoder"
require "amq/protocol/table_value_decoder"
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-12-17 14:41:10.000000000
+0100
+++ new/lib/amq/protocol/table_value_decoder.rb 2017-01-28 06:55:25.000000000
+0100
@@ -1,9 +1,7 @@
# encoding: binary
require "amq/endianness"
-require "amq/protocol/client"
require "amq/protocol/type_constants"
-require "amq/protocol/table"
require "amq/protocol/float_32bit"
module AMQ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/amq/protocol/table_value_encoder.rb
new/lib/amq/protocol/table_value_encoder.rb
--- old/lib/amq/protocol/table_value_encoder.rb 2015-12-17 14:41:10.000000000
+0100
+++ new/lib/amq/protocol/table_value_encoder.rb 2017-01-28 06:55:25.000000000
+0100
@@ -1,8 +1,6 @@
# encoding: binary
-require "amq/protocol/client"
require "amq/protocol/type_constants"
-require "amq/protocol/table"
require "date"
require "amq/protocol/float_32bit"
@@ -31,10 +29,10 @@
accumulator << [value.bytesize].pack(PACK_UINT32)
accumulator << value
when Symbol then
- v = value.to_s
+ str = value.to_s
accumulator << TYPE_STRING
- accumulator << [v.bytesize].pack(PACK_UINT32)
- accumulator << v
+ accumulator << [str.bytesize].pack(PACK_UINT32)
+ accumulator << str
when Integer then
accumulator << TYPE_SIGNED_64BIT
accumulator << [value].pack(PACK_INT64_BE)
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-12-17 14:41:10.000000000 +0100
+++ new/lib/amq/protocol/version.rb 2017-01-28 06:55:25.000000000 +0100
@@ -1,5 +1,5 @@
module AMQ
module Protocol
- VERSION = "2.0.1"
+ VERSION = "2.1.0"
end # Protocol
end # AMQ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-12-17 14:41:10.000000000 +0100
+++ new/metadata 2017-01-28 06:55:25.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: amq-protocol
version: !ruby/object:Gem::Version
- version: 2.0.1
+ version: 2.1.0
platform: ruby
authors:
- Jakub Stastny
@@ -11,7 +11,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2015-12-17 00:00:00.000000000 Z
+date: 2017-01-28 00:00:00.000000000 Z
dependencies: []
description: |2
amq-protocol is an AMQP 0.9.1 serialization library for Ruby. It is not a
@@ -102,9 +102,8 @@
version: '0'
requirements: []
rubyforge_project: amq-protocol
-rubygems_version: 2.4.8
+rubygems_version: 2.5.1
signing_key:
specification_version: 4
summary: AMQP 0.9.1 encoding & decoding library.
test_files: []
-has_rdoc: