Hello community,

here is the log from the commit of package rubygem-bunny for openSUSE:Factory 
checked in at 2016-11-14 20:13:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-bunny (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-bunny.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-bunny"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-bunny/rubygem-bunny.changes      
2016-11-07 12:23:10.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-bunny.new/rubygem-bunny.changes 
2016-11-14 20:13:54.000000000 +0100
@@ -1,0 +2,6 @@
+Sat Oct 29 04:31:09 UTC 2016 - [email protected]
+
+- updated to version 2.6.1
+ see installed ChangeLog.md
+
+-------------------------------------------------------------------

Old:
----
  bunny-2.6.0.gem

New:
----
  bunny-2.6.1.gem

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

Other differences:
------------------
++++++ rubygem-bunny.spec ++++++
--- /var/tmp/diff_new_pack.40hUJB/_old  2016-11-14 20:13:55.000000000 +0100
+++ /var/tmp/diff_new_pack.40hUJB/_new  2016-11-14 20:13:55.000000000 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-bunny
-Version:        2.6.0
+Version:        2.6.1
 Release:        0
 %define mod_name bunny
 %define mod_full_name %{mod_name}-%{version}

++++++ bunny-2.6.0.gem -> bunny-2.6.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ChangeLog.md new/ChangeLog.md
--- old/ChangeLog.md    2016-10-14 19:03:22.000000000 +0200
+++ new/ChangeLog.md    2016-10-22 23:18:27.000000000 +0200
@@ -1,4 +1,16 @@
-## Changes between Bunny 2.5.0 and 2.6.0 (unreleased)
+## Changes between Bunny 2.6.0 and 2.6.1 (October 23rd, 2016)
+
+### Bunny::ConsumerWorkPool#shutdown Terminates Early When It's Safe to Do So
+
+`Bunny::ConsumerWorkPool#shutdown(true)` waited for consumer shutdown
+even if the pool wasn't active (there were no consumers on its
+channel).
+
+GitHub issue: [#438](https://github.com/ruby-amqp/bunny/issues/438).
+
+
+
+## Changes between Bunny 2.5.0 and 2.6.0 (October 15th, 2016)
 
 ### Graceful Shutdown of Consumers
 
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bunny/channel.rb new/lib/bunny/channel.rb
--- old/lib/bunny/channel.rb    2016-10-14 19:03:22.000000000 +0200
+++ new/lib/bunny/channel.rb    2016-10-22 23:18:27.000000000 +0200
@@ -952,7 +952,9 @@
         @last_basic_cancel_ok = wait_on_continuations
       end
 
-      @work_pool.shutdown(true) unless any_consumers?
+      # reduces thread usage for channels that don't have any
+      # consumers
+      @work_pool.shutdown(true) unless self.any_consumers?
 
       @last_basic_cancel_ok
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bunny/consumer_work_pool.rb 
new/lib/bunny/consumer_work_pool.rb
--- old/lib/bunny/consumer_work_pool.rb 2016-10-14 19:03:22.000000000 +0200
+++ new/lib/bunny/consumer_work_pool.rb 2016-10-22 23:18:27.000000000 +0200
@@ -57,6 +57,7 @@
     end
 
     def shutdown(wait_for_workers = false)
+      was_running = running?
       @running = false
 
       @size.times do
@@ -65,7 +66,7 @@
         end
       end
 
-      return unless wait_for_workers && @shutdown_timeout
+      return if !(wait_for_workers && @shutdown_timeout && was_running)
 
       @shutdown_mutex.synchronize do
         @shutdown_conditional.wait(@shutdown_mutex, @shutdown_timeout)
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    2016-10-14 19:03:22.000000000 +0200
+++ new/lib/bunny/version.rb    2016-10-22 23:18:27.000000000 +0200
@@ -2,5 +2,5 @@
 
 module Bunny
   # @return [String] Version of the library
-  VERSION = "2.6.0"
+  VERSION = "2.6.1"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-10-14 19:03:22.000000000 +0200
+++ new/metadata        2016-10-22 23:18:27.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: bunny
 version: !ruby/object:Gem::Version
-  version: 2.6.0
+  version: 2.6.1
 platform: ruby
 authors:
 - Chris Duncan
@@ -12,7 +12,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-10-14 00:00:00.000000000 Z
+date: 2016-10-22 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: amq-protocol
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spec/higher_level_api/integration/basic_cancel_spec.rb 
new/spec/higher_level_api/integration/basic_cancel_spec.rb
--- old/spec/higher_level_api/integration/basic_cancel_spec.rb  2016-10-14 
19:03:22.000000000 +0200
+++ new/spec/higher_level_api/integration/basic_cancel_spec.rb  2016-10-22 
23:18:27.000000000 +0200
@@ -97,8 +97,10 @@
       sleep 1.0
 
       ch = connection.create_channel
+      ch.confirm_select
       ch.default_exchange.publish("", :routing_key => queue_name)
-      sleep 0.7
+      ch.wait_for_confirms
+      sleep 0.5
 
       consumer.cancel
       sleep 1.0
@@ -126,8 +128,10 @@
       sleep 1.0
 
       ch = connection.create_channel
+      ch.confirm_select
       ch.default_exchange.publish("", :routing_key => queue_name)
-      sleep 0.7
+      ch.wait_for_confirms
+      sleep 0.5
 
       consumer.cancel
       sleep 1.0


Reply via email to