Hello community,

here is the log from the commit of package rubygem-bunny for openSUSE:Factory 
checked in at 2018-01-17 21:58:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-bunny (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-bunny.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-bunny"

Wed Jan 17 21:58:01 2018 rev:40 rq:566445 version:2.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-bunny/rubygem-bunny.changes      
2017-12-20 10:40:09.981676578 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-bunny.new/rubygem-bunny.changes 
2018-01-17 21:59:11.648730864 +0100
@@ -1,0 +2,10 @@
+Tue Jan  9 13:21:44 UTC 2018 - [email protected]
+
+- Update to version 2.9.0
+
+  * Bunny now requires Ruby 2.2.
+  * Support for Additional URI Query Parameters
+
+  Please refer to the upstream changelog for detailed information.
+
+-------------------------------------------------------------------

Old:
----
  bunny-2.8.0.gem

New:
----
  bunny-2.9.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-bunny.spec ++++++
--- /var/tmp/diff_new_pack.fwnrPp/_old  2018-01-17 21:59:12.440693743 +0100
+++ /var/tmp/diff_new_pack.fwnrPp/_new  2018-01-17 21:59:12.444693556 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-bunny
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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,12 +24,18 @@
 #
 
 Name:           rubygem-bunny
-Version:        2.8.0
+Version:        2.9.0
 Release:        0
 %define mod_name bunny
 %define mod_full_name %{mod_name}-%{version}
+# MANUAL
+%if 0%{?suse_version} && 0%{?suse_version} < 1330
+%define rb_build_versions ruby22
+%define rb_default_ruby_abi ruby:2.2.0
+%endif
+# /MANUAL
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{ruby >= 2.0}
+BuildRequires:  %{ruby >= 2.2}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  ruby-macros >= 5
 Url:            http://rubybunny.info
@@ -45,12 +51,13 @@
 %description
 Easy to use, feature complete Ruby client for RabbitMQ 3.3 and later versions.
 
-%prep
 %gem_unpack
 %patch0 -p1
 find -type f -print0 | xargs -0 touch -r %{S:0}
 %gem_build
 
+%prep
+
 %build
 
 %install

++++++ bunny-2.8.0.gem -> bunny-2.9.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CONTRIBUTING.md new/CONTRIBUTING.md
--- old/CONTRIBUTING.md 2017-12-18 15:45:32.000000000 +0100
+++ new/CONTRIBUTING.md 2018-01-08 13:09:43.000000000 +0100
@@ -39,7 +39,8 @@
 
 #### Using a locally installed RabbitMQ server
 
-Run the following command from the base directory of the gem:
+It is possible to start a local RabbitMQ node from the repository root. It is 
not necessarily
+optimal but can be a good starting point but is a useful example:
 
 ```
 RABBITMQ_NODENAME=bunny RABBITMQ_CONFIG_FILE=./spec/config/rabbitmq 
RABBITMQ_ENABLED_PLUGINS_FILE=./spec/config/enabled_plugins rabbitmq-server
@@ -51,10 +52,17 @@
 the tests allow for expecting hostname overriding using the 
`BUNNY_RABBITMQ_HOSTNAME`
 environment variables (default value is `127.0.0.1`).
 
-Server, CA and client certificates can be found under `spec/tls`.
-The location can be overridden via the `BUNNY_CERTIFICATE_DIR` environment 
variable.
+By default there's a set of CA, server, and client certificates pre-generated 
at `spec/tls`. Since x509 certificates
+contain a hardcoded CN and your hostname is unlikely to match it,
+the location can be overridden via the `BUNNY_CERTIFICATE_DIR` environment 
variable.
 It is supposed to target 
[tls-gen](https://github.com/michaelklishin/tls-gen)'s basic profile
-output (result) directory on the host where specs are to be executed.
+output (result) directory on the host where specs are to be executed. Combine 
it with `BUNNY_RABBITMQ_HOSTNAME`
+when running TLS connection tests:
+
+```
+BUNNY_CERTIFICATE_DIR="/path/to/tls-gen/basic/result" 
BUNNY_RABBITMQ_HOSTNAME="mayflower" bundle exec rspec
+
+```
 
 Next up you'll need to prepare your node for the specs (just once):
 
@@ -104,8 +112,8 @@
 
 It is possible to run all tests:
 
-    bundle exec rspec -c
+    bundle exec rspec
 
 It is possible to run only integration and regression tests but exclude unit 
and stress tests:
 
-    CI=true bundle exec rspec -c spec/higher_level_api/ spec/lower_level_api 
spec/issues && bundle exec rspec -c 
spec/higher_level_api/integration/connection_recovery_spec.rb
+    CI=true bundle exec rspec spec/higher_level_api/ spec/lower_level_api 
spec/issues spec/higher_level_api/integration/connection_recovery_spec.rb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ChangeLog.md new/ChangeLog.md
--- old/ChangeLog.md    2017-12-18 15:45:32.000000000 +0100
+++ new/ChangeLog.md    2018-01-08 13:09:43.000000000 +0100
@@ -1,4 +1,18 @@
-## Changes between Bunny 2.7.0 and 2.8.0 (unreleased)
+## Changes between Bunny 2.8.0 and 2.9.0 (Jan 8th, 2018)
+
+### Ruby 2.2 Requirement
+
+Bunny now requires Ruby 2.2.
+
+
+### Support for Additional URI Query Parameters
+
+GitHub issue: [#534](https://github.com/ruby-amqp/bunny/pull/534).
+
+Contributed by Andrew Babichev.
+
+
+## Changes between Bunny 2.7.0 and 2.8.0 (Dec 18th, 2018)
 
 This release has **minor breaking public API changes**.
 
@@ -17,7 +31,7 @@
 Note that JRuby users are recommended to use [March 
Hare](http://rubymarchhare.info/), a JRuby-oriented client, instead
 of Bunny.
 
-GitHub issue: [bunny#529](https://github.com/ruby-amqp/bunny/pull/529)
+GitHub issue: [#529](https://github.com/ruby-amqp/bunny/pull/529)
 
 ### Connection Exceptions are Logged as Warning with Automatic Recovery
 
@@ -26,7 +40,7 @@
 
 Contributed by Merten Falk.
 
-GitHub issue: [bunny#531](https://github.com/ruby-amqp/bunny/pull/531)
+GitHub issue: [#531](https://github.com/ruby-amqp/bunny/pull/531)
 
 ### Server Heartbeat Value as a String
 
@@ -35,7 +49,7 @@
 
 Contributed by Tyrone Wilson.
 
-GitHub issue: [bunny#524](https://github.com/ruby-amqp/bunny/pull/524)
+GitHub issue: [#524](https://github.com/ruby-amqp/bunny/pull/524)
 
 
 ## Changes between Bunny 2.7.0 and 2.7.1 (Sep 25th, 2017)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2017-12-18 15:45:32.000000000 +0100
+++ new/Gemfile 2018-01-08 13:09:43.000000000 +0100
@@ -33,7 +33,7 @@
 
 group :test do
   gem "rspec", "~> 3.5.0"
-  gem "rabbitmq_http_api_client", "~> 1.9.1"
+  gem "rabbitmq_http_api_client", "~> 1.9.1", require: "rabbitmq/http/client"
 end
 
 gemspec
@@ -43,7 +43,7 @@
 def custom_gem(name, options = Hash.new)
   local_path = File.expand_path("../vendor/#{name}", __FILE__)
   if File.exist?(local_path)
-    # puts "Using #{name} from #{local_path}..."
+    puts "Using #{name} from #{local_path}..."
     gem name, options.merge(:path => local_path).delete_if { |key, _| [:git, 
:branch].include?(key) }
   else
     gem name, options
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2017-12-18 15:45:32.000000000 +0100
+++ new/README.md       2018-01-08 13:09:43.000000000 +0100
@@ -88,7 +88,7 @@
 To use Bunny in a project managed with Bundler:
 
 ``` ruby
-gem "bunny", ">= 2.7.2"
+gem "bunny", ">= 2.8.0"
 ```
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bunny.gemspec new/bunny.gemspec
--- old/bunny.gemspec   2017-12-18 15:45:32.000000000 +0100
+++ new/bunny.gemspec   2018-01-08 13:09:43.000000000 +0100
@@ -11,7 +11,7 @@
   s.summary = "Popular easy to use Ruby client for RabbitMQ"
   s.description = "Easy to use, feature complete Ruby client for RabbitMQ 3.3 
and later versions."
   s.license = "MIT"
-  s.required_ruby_version = Gem::Requirement.new(">= 2.0")
+  s.required_ruby_version = Gem::Requirement.new(">= 2.2")
 
   # Sorted alphabetically.
   s.authors = [
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/docker/docker-entrypoint.sh 
new/docker/docker-entrypoint.sh
--- old/docker/docker-entrypoint.sh     2017-12-18 15:45:32.000000000 +0100
+++ new/docker/docker-entrypoint.sh     2018-01-08 13:09:43.000000000 +0100
@@ -1,7 +1,7 @@
 #!/bin/sh
 server=rabbitmq-server
 ctl=rabbitmqctl
-delay=3
+delay=5
 
 echo "[Configuration] $(eval cat $RABBITMQ_CONFIG_FILE.config)"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/docker-compose.yml new/docker-compose.yml
--- old/docker-compose.yml      2017-12-18 15:45:32.000000000 +0100
+++ new/docker-compose.yml      2018-01-08 13:09:43.000000000 +0100
@@ -5,6 +5,8 @@
     container_name: bunny_rabbitmq
     environment:
       RABBITMQ_NODENAME: bunny
+      # see CONTRIBUTING.md
+      BUNNY_RABBITMQ_HOSTNAME: mercurio
       # link to spec specific configuration
       RABBITMQ_CONFIG_FILE: /spec/config/rabbitmq
       RABBITMQ_ENABLED_PLUGINS_FILE: /spec/config/enabled_plugins
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bunny/session.rb new/lib/bunny/session.rb
--- old/lib/bunny/session.rb    2017-12-18 15:45:32.000000000 +0100
+++ new/lib/bunny/session.rb    2018-01-08 13:09:43.000000000 +0100
@@ -464,7 +464,7 @@
     # @param [String] uri amqp or amqps URI to parse
     # @return [Hash] Parsed URI as a hash
     def self.parse_uri(uri)
-      AMQ::Settings.parse_amqp_url(uri)
+      AMQ::Settings.configure(uri)
     end
 
     # Checks if a queue with given name exists.
@@ -742,7 +742,7 @@
     rescue HostListDepleted
       reset_address_index
       retry
-    rescue TCPConnectionFailedForAllHosts, TCPConnectionFailed, 
AMQ::Protocol::EmptyResponseError, SystemCallError => e
+    rescue TCPConnectionFailedForAllHosts, TCPConnectionFailed, 
AMQ::Protocol::EmptyResponseError, SystemCallError, Timeout::Error => e
       @logger.warn "TCP connection failed, reconnecting in 
#{@network_recovery_interval} seconds"
       if should_retry_recovery?
         decrement_recovery_attemp_counter!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bunny/transport.rb new/lib/bunny/transport.rb
--- old/lib/bunny/transport.rb  2017-12-18 15:45:32.000000000 +0100
+++ new/lib/bunny/transport.rb  2018-01-08 13:09:43.000000000 +0100
@@ -26,7 +26,7 @@
     DEFAULT_WRITE_TIMEOUT = 30.0
 
     attr_reader :session, :host, :port, :socket, :connect_timeout, 
:read_timeout, :write_timeout, :disconnect_timeout
-    attr_reader :tls_context
+    attr_reader :tls_context, :verify_peer, :tls_ca_certificates, 
:tls_certificate_path, :tls_key_path
 
     attr_writer :read_timeout
 
@@ -298,17 +298,21 @@
     protected
 
     def tls_enabled?(opts)
-      return opts[:tls] unless opts[:tls].nil?
-      return opts[:ssl] unless opts[:ssl].nil?
+      return !!opts[:tls] unless opts[:tls].nil?
+      return !!opts[:ssl] unless opts[:ssl].nil?
       (opts[:port] == AMQ::Protocol::TLS_PORT) || false
     end
 
+    def tls_ca_certificates_paths_from(opts)
+      Array(opts[:cacertfile] || opts[:tls_ca_certificates] || 
opts[:ssl_ca_certificates])
+    end
+
     def tls_certificate_path_from(opts)
-      opts[:tls_cert] || opts[:ssl_cert] || opts[:tls_cert_path] || 
opts[:ssl_cert_path] || opts[:tls_certificate_path] || 
opts[:ssl_certificate_path]
+      opts[:certfile] || opts[:tls_cert] || opts[:ssl_cert] || 
opts[:tls_cert_path] || opts[:ssl_cert_path] || opts[:tls_certificate_path] || 
opts[:ssl_certificate_path]
     end
 
     def tls_key_path_from(opts)
-      opts[:tls_key] || opts[:ssl_key] || opts[:tls_key_path] || 
opts[:ssl_key_path]
+      opts[:keyfile] || opts[:tls_key] || opts[:ssl_key] || 
opts[:tls_key_path] || opts[:ssl_key_path]
     end
 
     def tls_certificate_from(opts)
@@ -337,7 +341,7 @@
     end
 
     def prepare_tls_context(opts)
-      if (opts[:verify_ssl] || opts[:verify_peer]).nil?
+      if (opts[:verify_ssl] || opts[:verify_peer] || opts[:verify]).nil?
         opts[:verify_peer] = true
       end
 
@@ -349,12 +353,23 @@
       @tls_key               = tls_key_from(opts)
       @tls_certificate_store = opts[:tls_certificate_store]
 
-      @tls_ca_certificates   = opts.fetch(:tls_ca_certificates, 
default_tls_certificates)
-      @verify_peer           = (opts[:verify_ssl] || opts[:verify_peer])
+      @tls_ca_certificates   = tls_ca_certificates_paths_from(opts) || 
default_tls_certificates
+      @verify_peer           = as_boolean(opts[:verify_ssl] || 
opts[:verify_peer] || opts[:verify])
 
       @tls_context = initialize_tls_context(OpenSSL::SSL::SSLContext.new, opts)
     end
 
+    def as_boolean(val)
+      case val
+      when true    then true
+      when false   then false
+      when "true"  then true
+      when "false" then false
+      else
+        !!val
+      end
+    end
+
     def wrap_in_tls_socket(socket)
       raise ArgumentError, "cannot wrap nil into TLS socket, @tls_context is 
nil. This is a Bunny bug." unless socket
       raise "cannot wrap a socket into TLS socket, @tls_context is nil. This 
is a Bunny bug." unless @tls_context
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bunny/version.rb new/lib/bunny/version.rb
--- old/lib/bunny/version.rb    2017-12-18 15:45:32.000000000 +0100
+++ new/lib/bunny/version.rb    2018-01-08 13:09:43.000000000 +0100
@@ -2,5 +2,5 @@
 
 module Bunny
   # @return [String] Version of the library
-  VERSION = "2.8.0"
+  VERSION = "2.9.0"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-12-18 15:45:32.000000000 +0100
+++ new/metadata        2018-01-08 13:09:43.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: bunny
 version: !ruby/object:Gem::Version
-  version: 2.8.0
+  version: 2.9.0
 platform: ruby
 authors:
 - Chris Duncan
@@ -12,7 +12,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-12-18 00:00:00.000000000 Z
+date: 2018-01-08 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: amq-protocol
@@ -224,7 +224,7 @@
   requirements:
   - - ">="
     - !ruby/object:Gem::Version
-      version: '2.0'
+      version: '2.2'
 required_rubygems_version: !ruby/object:Gem::Requirement
   requirements:
   - - ">="
@@ -232,7 +232,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.6.11
+rubygems_version: 2.6.13
 signing_key: 
 specification_version: 4
 summary: Popular easy to use Ruby client for RabbitMQ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/higher_level_api/integration/connection_spec.rb 
new/spec/higher_level_api/integration/connection_spec.rb
--- old/spec/higher_level_api/integration/connection_spec.rb    2017-12-18 
15:45:32.000000000 +0100
+++ new/spec/higher_level_api/integration/connection_spec.rb    2018-01-08 
13:09:43.000000000 +0100
@@ -1,5 +1,9 @@
 require "spec_helper"
 
+def local_hostname
+  ENV.fetch("BUNNY_RABBITMQ_HOSTNAME", "127.0.0.1")
+end
+
 describe Bunny::Session do
   let(:port)     { AMQ::Protocol::DEFAULT_PORT }
   let(:username) { "guest" }
@@ -319,9 +323,9 @@
           password: "bunny_password",
           vhost: "bunny_testbed",
           ssl:                 true,
-          ssl_cert:            "spec/tls/client_cert.pem",
+          ssl_cert:            "spec/tls/client_certificate.pem",
           ssl_key:             "spec/tls/client_key.pem",
-          ssl_ca_certificates: ["./spec/tls/cacert.pem"])
+          ssl_ca_certificates: ["./spec/tls/ca_certificate.pem"])
       end
 
       it "uses TLS port" do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spec/higher_level_api/integration/tls_connection_spec.rb 
new/spec/higher_level_api/integration/tls_connection_spec.rb
--- old/spec/higher_level_api/integration/tls_connection_spec.rb        
2017-12-18 15:45:33.000000000 +0100
+++ new/spec/higher_level_api/integration/tls_connection_spec.rb        
2018-01-08 13:09:43.000000000 +0100
@@ -2,7 +2,7 @@
 require "spec_helper"
 
 unless ENV["CI"]
-  CERTIFICATE_DIR=ENV.fetch("BUNNY_CERTIFICATE_DIR", "./spec/tls")
+  CERTIFICATE_DIR = ENV.fetch("BUNNY_CERTIFICATE_DIR", "./spec/tls")
   puts "Will use certificates from #{CERTIFICATE_DIR}"
 
   shared_examples_for "successful TLS connection" do
@@ -40,14 +40,16 @@
 
   context "initialized with :tls => true" do
     let(:subject) do
-      Bunny.new(:user     => "bunny_gem",
-        :password => "bunny_password",
-        :vhost    => "bunny_testbed",
-        :tls                   => true,
-        :verify_peer           => verify_peer,
-        :tls_cert              => "#{CERTIFICATE_DIR}/client_certificate.pem",
-        :tls_key               => "#{CERTIFICATE_DIR}/client_key.pem",
-        :tls_ca_certificates   => ["#{CERTIFICATE_DIR}/ca_certificate.pem"])
+      Bunny.new(
+        hostname:  local_hostname(),
+        user:     "bunny_gem",
+        password: "bunny_password",
+        vhost:    "bunny_testbed",
+        tls: true,
+        verify_peer: verify_peer,
+        tls_cert: "#{CERTIFICATE_DIR}/client_certificate.pem",
+        tls_key: "#{CERTIFICATE_DIR}/client_key.pem",
+        tls_ca_certificates: ["#{CERTIFICATE_DIR}/ca_certificate.pem"])
     end
 
     context "peer verification is off" do
@@ -79,7 +81,9 @@
 
   describe "TLS connection to RabbitMQ with client certificates" do
     let(:subject) do
-      c = Bunny.new(username: "bunny_gem",
+      c = Bunny.new(
+        hostname: local_hostname(),
+        username: "bunny_gem",
         password: "bunny_password",
         vhost: "bunny_testbed",
         tls: true,
@@ -101,7 +105,9 @@
 
   describe "TLS connection to RabbitMQ without client certificates" do
     let(:subject) do
-      c = Bunny.new(username: "bunny_gem",
+      c = Bunny.new(
+        hostname: local_hostname(),
+        username: "bunny_gem",
         password: "bunny_password",
         vhost: "bunny_testbed",
         tls: true,
@@ -121,7 +127,7 @@
 
   describe "TLS connection to RabbitMQ with a connection string" do
     let(:subject) do
-      c = 
Bunny.new("amqps://bunny_gem:bunny_password@#{local_hostname}/bunny_testbed",
+      c = 
Bunny.new("amqps://bunny_gem:bunny_password@#{local_hostname()}/bunny_testbed",
         tls_cert: "#{CERTIFICATE_DIR}/client_certificate.pem",
         tls_key: "#{CERTIFICATE_DIR}/client_key.pem",
         tls_ca_certificates: ["#{CERTIFICATE_DIR}/ca_certificate.pem"],
@@ -135,12 +141,28 @@
     end
 
     include_examples "successful TLS connection"
+
+    context "when URI contains query parameters" do
+      subject(:session) do
+        
Bunny.new("amqps://bunny_gem:bunny_password@#{local_hostname()}/bunny_testbed?heartbeat=10&connection_timeout=100&channel_max=1000&verify=false&cacertfile=#{CERTIFICATE_DIR}/ca_certificate.pem&certfile=#{CERTIFICATE_DIR}/client_certificate.pem&keyfile=#{CERTIFICATE_DIR}/client_key.pem")
+      end
+
+      it "parses extra connection parameters" do
+        session.start
+
+        expect(session.uses_tls?).to eq(true)
+        expect(session.transport.verify_peer).to eq(false)
+        expect(session.transport.tls_ca_certificates).to 
eq(["#{CERTIFICATE_DIR}/ca_certificate.pem"])
+        expect(session.transport.tls_certificate_path).to 
eq("#{CERTIFICATE_DIR}/client_certificate.pem")
+        expect(session.transport.tls_key_path).to 
eq("#{CERTIFICATE_DIR}/client_key.pem")
+      end
+    end
   end
 
 
   describe "TLS connection to RabbitMQ with a connection string and w/o client 
certificate and key" do
     let(:subject) do
-      c = 
Bunny.new("amqps://bunny_gem:bunny_password@#{local_hostname}/bunny_testbed",
+      c = 
Bunny.new("amqps://bunny_gem:bunny_password@#{local_hostname()}/bunny_testbed",
         tls_ca_certificates: ["#{CERTIFICATE_DIR}/ca_certificate.pem"],
         verify_peer: verify_peer)
       c.start
@@ -177,7 +199,9 @@
 
   describe "TLS connection to RabbitMQ with client certificates provided 
inline" do
     let(:subject) do
-      c = Bunny.new(username: "bunny_gem",
+      c = Bunny.new(
+        hostname: local_hostname(),
+        username: "bunny_gem",
         password: "bunny_password",
         vhost: "bunny_testbed",
         tls: true,
@@ -198,7 +222,9 @@
 
   describe "TLS connection to RabbitMQ with tls_version TLSv1.1 specified" do
     let(:subject) do
-      c = Bunny.new(username: "bunny_gem",
+      c = Bunny.new(
+        hostname: local_hostname(),
+        username: "bunny_gem",
         password: "bunny_password",
         vhost: "bunny_testbed",
         tls: true,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/spec_helper.rb new/spec/spec_helper.rb
--- old/spec/spec_helper.rb     2017-12-18 15:45:33.000000000 +0100
+++ new/spec/spec_helper.rb     2018-01-08 13:09:43.000000000 +0100
@@ -3,15 +3,10 @@
 $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
 
 require 'bundler'
-Bundler.setup(:default, :test)
+Bundler.require(:default, :test)
 
-
-require "effin_utf8"
 require "bunny"
-require "rabbitmq/http/client"
-
 
-require "amq/protocol/version"
 puts "Using Ruby #{RUBY_VERSION}, amq-protocol #{AMQ::Protocol::VERSION}"
 
 module RabbitMQ

++++++ gem2rpm.yml ++++++
--- /var/tmp/diff_new_pack.fwnrPp/_old  2018-01-17 21:59:12.648683994 +0100
+++ /var/tmp/diff_new_pack.fwnrPp/_new  2018-01-17 21:59:12.648683994 +0100
@@ -15,6 +15,11 @@
 # ## used by gem2rpm
 # :disable_automatic_rdoc_dep: true
 # ## used by gem2rpm
+:preamble: |-
+  %if 0%{?suse_version} && 0%{?suse_version} < 1330
+  %define rb_build_versions ruby22
+  %define rb_default_ruby_abi ruby:2.2.0
+  %endif
 # :preamble: |-
 #   BuildRequires: foobar
 #   Requires: foobar


Reply via email to