Hello community,

here is the log from the commit of package rubygem-sshkit for openSUSE:Factory 
checked in at 2019-06-19 21:01:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sshkit (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-sshkit.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-sshkit"

Wed Jun 19 21:01:16 2019 rev:25 rq:706028 version:1.18.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-sshkit/rubygem-sshkit.changes    
2018-11-26 10:36:09.004617344 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-sshkit.new.4811/rubygem-sshkit.changes  
2019-06-19 21:01:20.150135235 +0200
@@ -1,0 +2,14 @@
+Sat Mar  2 15:40:04 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to version 1.18.2
+ see installed CHANGELOG.md
+
+  ## [1.18.2][] (2019-02-03)
+  
+    * [#448](https://github.com/capistrano/sshkit/pull/448): Fix misbehaving 
connection eviction loop when disabling connection pooling - [Sebastian 
Cohnen](https://github.com/tisba)
+  
+  ## [1.18.1][] (2019-01-26)
+  
+    * [#447](https://github.com/capistrano/sshkit/pull/447): Fix broken thread 
safety by widening critical section - [Takumasa 
Ochi](https://github.com/aeroastro)
+
+-------------------------------------------------------------------

Old:
----
  sshkit-1.18.0.gem

New:
----
  sshkit-1.18.2.gem

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

Other differences:
------------------
++++++ rubygem-sshkit.spec ++++++
--- /var/tmp/diff_new_pack.ucwOaQ/_old  2019-06-19 21:01:20.866135836 +0200
+++ /var/tmp/diff_new_pack.ucwOaQ/_new  2019-06-19 21:01:20.866135836 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-sshkit
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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-sshkit
-Version:        1.18.0
+Version:        1.18.2
 Release:        0
 %define mod_name sshkit
 %define mod_full_name %{mod_name}-%{version}

++++++ sshkit-1.18.0.gem -> sshkit-1.18.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2018-10-22 01:18:32.000000000 +0200
+++ new/CHANGELOG.md    2019-02-04 00:05:41.000000000 +0100
@@ -7,6 +7,14 @@
 
   * Your contribution here!
 
+## [1.18.2][] (2019-02-03)
+
+  * [#448](https://github.com/capistrano/sshkit/pull/448): Fix misbehaving 
connection eviction loop when disabling connection pooling - [Sebastian 
Cohnen](https://github.com/tisba)
+
+## [1.18.1][] (2019-01-26)
+
+  * [#447](https://github.com/capistrano/sshkit/pull/447): Fix broken thread 
safety by widening critical section - [Takumasa 
Ochi](https://github.com/aeroastro)
+
 ## [1.18.0][] (2018-10-21)
 
   * [#435](https://github.com/capistrano/sshkit/pull/435): Consistent 
verbosity configuration #capture and #test methods - 
[@NikolayRys](https://github.com/NikolayRys)
@@ -750,7 +758,9 @@
 
 First release.
 
-[Unreleased]: https://github.com/capistrano/sshkit/compare/v1.18.0...HEAD
+[Unreleased]: https://github.com/capistrano/sshkit/compare/v1.18.2...HEAD
+[1.18.2]: https://github.com/capistrano/sshkit/compare/v1.18.1...v1.18.2
+[1.18.1]: https://github.com/capistrano/sshkit/compare/v1.18.0...v1.18.1
 [1.18.0]: https://github.com/capistrano/sshkit/compare/v1.17.0...v1.18.0
 [1.17.0]: https://github.com/capistrano/sshkit/compare/v1.16.1...v1.17.0
 [1.16.1]: https://github.com/capistrano/sshkit/compare/v1.16.0...v1.16.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2018-10-22 01:18:32.000000000 +0200
+++ new/README.md       2019-02-04 00:05:41.000000000 +0100
@@ -71,7 +71,7 @@
 ```ruby
 on '1.example.com' do
   upload! 'some_local_file.txt', '/home/some_user/somewhere'
-  download! '/home/some_user/some_remote_file.txt', 'somewhere_local', 
:log_percent 25
+  download! '/home/some_user/some_remote_file.txt', 'somewhere_local', 
log_percent: 25
 end
 ```
 
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sshkit/backends/connection_pool.rb 
new/lib/sshkit/backends/connection_pool.rb
--- old/lib/sshkit/backends/connection_pool.rb  2018-10-22 01:18:32.000000000 
+0200
+++ new/lib/sshkit/backends/connection_pool.rb  2019-02-04 00:05:41.000000000 
+0100
@@ -21,7 +21,7 @@
 
 # The ConnectionPool caches connections and allows them to be reused, so long 
as
 # the reuse happens within the `idle_timeout` period. Timed out connections are
-# closed, forcing a new connection to be used in that case.
+# eventually closed, forcing a new connection to be used in that case.
 #
 # Additionally, a background thread is started to check for abandoned
 # connections that have timed out without any attempt at being reused. These
@@ -46,7 +46,11 @@
     @caches = {}
     @caches.extend(MonitorMixin)
     @timed_out_connections = Queue.new
-    Thread.new { run_eviction_loop }
+
+    # Spin up eviction loop only if caching is enabled
+    if cache_enabled?
+      Thread.new { run_eviction_loop }
+    end
   end
 
   # Creates a new connection or reuses a cached connection (if possible) and
@@ -118,9 +122,9 @@
   # Update cache key with changed args to prevent cache miss
   def update_key_if_args_changed(cache, args)
     new_key = cache_key_for_connection_args(args)
-    return if cache.same_key?(new_key)
 
     caches.synchronize do
+      return if cache.same_key?(new_key)
       caches[new_key] = caches.delete(cache.key)
       cache.key = new_key
     end
@@ -133,7 +137,7 @@
       process_deferred_close
 
       # Periodically sweep all Caches to evict stale connections
-      sleep([idle_timeout, 5].min)
+      sleep(5)
       caches.values.each(&:evict)
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sshkit/version.rb new/lib/sshkit/version.rb
--- old/lib/sshkit/version.rb   2018-10-22 01:18:32.000000000 +0200
+++ new/lib/sshkit/version.rb   2019-02-04 00:05:41.000000000 +0100
@@ -1,3 +1,3 @@
 module SSHKit
-  VERSION = "1.18.0".freeze
+  VERSION = "1.18.2".freeze
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-10-22 01:18:32.000000000 +0200
+++ new/metadata        2019-02-04 00:05:41.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: sshkit
 version: !ruby/object:Gem::Version
-  version: 1.18.0
+  version: 1.18.2
 platform: ruby
 authors:
 - Lee Hambley
@@ -9,7 +9,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-10-21 00:00:00.000000000 Z
+date: 2019-02-03 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: net-ssh
@@ -87,14 +87,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 2.1.0
+        version: 2.2.2
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 2.1.0
+        version: 2.2.2
 - !ruby/object:Gem::Dependency
   name: rake
   requirement: !ruby/object:Gem::Requirement
@@ -284,8 +284,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubyforge_project: 
-rubygems_version: 2.7.7
+rubygems_version: 3.0.1
 signing_key: 
 specification_version: 4
 summary: SSHKit makes it easy to write structured, testable SSH commands in 
Ruby
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sshkit.gemspec new/sshkit.gemspec
--- old/sshkit.gemspec  2018-10-22 01:18:32.000000000 +0200
+++ new/sshkit.gemspec  2019-02-04 00:05:41.000000000 +0100
@@ -23,7 +23,7 @@
   gem.add_development_dependency('danger')
   gem.add_development_dependency('minitest', '>= 5.0.0')
   gem.add_development_dependency('minitest-reporters')
-  gem.add_development_dependency('rainbow', '~> 2.1.0')
+  gem.add_development_dependency('rainbow', '~> 2.2.2')
   gem.add_development_dependency('rake')
   gem.add_development_dependency('rubocop', "~> 0.49.1")
   gem.add_development_dependency('mocha')


Reply via email to