sshkit 1.15.1 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f014bf146a912a66d7378d4ed9361ad19afabead2046d5ca35b9b44f9956a7e6
4
- data.tar.gz: c7a83d9d9ac1cac5c598db99713a0d6bb1059922ebbe31f76aa9c960bb1b202c
3
+ metadata.gz: cf75e96cd318a56b4936975306dde6410ed40ca1cdc0635f694909024ae50f84
4
+ data.tar.gz: 5d249a340c75d3916d5793547eb4bff73546a2776c6d818ad76689e10f283779
5
5
  SHA512:
6
- metadata.gz: 8beca7b0370fddca01b404215d324e43222602847ee11080806e047a19967874a94838fc7913e630f473df0b9a4c115649adc1daae43bf02ff996a8959244b8e
7
- data.tar.gz: 40d829a5730abfd31ad8d06ed890a92063f30661ea6d48d05e8303f2cfef881eef0656cf464e51555cc2c0199c48866485621bec65ecddbd22433851078ac745
6
+ metadata.gz: c059b4ac0c4bef25dbccc1e3d4c954f5367acdcec3e933a5251ef1f1a0d09b4bf0863d077c185e65f2939b5fbe7211bae88de43ec1cb363435e650723fda98c5
7
+ data.tar.gz: 2694eb44390c5ed81ef44e0852c37efa5ca131639f6782ba653142773e1552373618a739af0b6e4ebf60b10b90cb92db40beea7742a3ffd7a57c8074b30fcc9e
@@ -7,6 +7,10 @@ appear at the top.
7
7
 
8
8
  * Your contribution here!
9
9
 
10
+ ## [1.16.0][] (2018-02-03)
11
+
12
+ * [#417](https://github.com/capistrano/sshkit/pull/417): Cache key generation for connections becomes slow when `known_hosts` is a valid `net/ssh` options and `known_hosts` file is big. This changes the cache key generation and fixes performance issue - [@ElvinEfendi](https://github.com/ElvinEfendi).
13
+
10
14
  ## [1.15.1][] (2017-11-18)
11
15
 
12
16
  This is a small bug-fix release that fixes problems with `upload!` and `download!` that were inadvertently introduced in 1.15.0.
@@ -734,7 +738,8 @@ version `0.0.5`.
734
738
 
735
739
  First release.
736
740
 
737
- [Unreleased]: https://github.com/capistrano/sshkit/compare/v1.15.1...HEAD
741
+ [Unreleased]: https://github.com/capistrano/sshkit/compare/v1.16.0...HEAD
742
+ [1.16.0]: https://github.com/capistrano/sshkit/compare/v1.15.1...v1.16.0
738
743
  [1.15.1]: https://github.com/capistrano/sshkit/compare/v1.15.0...v1.15.1
739
744
  [1.15.0]: https://github.com/capistrano/sshkit/compare/v1.14.0...v1.15.0
740
745
  [1.14.0]: https://github.com/capistrano/sshkit/compare/v1.13.1...v1.14.0
data/Gemfile CHANGED
@@ -18,3 +18,8 @@ end
18
18
  if Gem::Requirement.new('< 2.1').satisfied_by?(Gem::Version.new(RUBY_VERSION))
19
19
  gem 'public_suffix', '< 3'
20
20
  end
21
+
22
+ # rbnacl-libsodium > 1.0.15.1 requires Ruby 2.2.6+
23
+ if Gem::Requirement.new('< 2.2.6').satisfied_by?(Gem::Version.new(RUBY_VERSION))
24
+ gem 'rbnacl-libsodium', '<= 1.0.15.1'
25
+ end
data/README.md CHANGED
@@ -67,7 +67,7 @@ you can pass the `strip: false` option: `capture(:ls, '-l', strip: false)`
67
67
  #### Transferring files
68
68
 
69
69
  All backends also support the `upload!` and `download!` methods for transferring files.
70
- For the remote backend, the file is tranferred with scp.
70
+ For the remote backend, the file is transferred with scp.
71
71
 
72
72
  ```ruby
73
73
  on '1.example.com' do
@@ -530,7 +530,7 @@ SSHKit::Backend::Netssh.pool.idle_timeout = 0 # disabled
530
530
 
531
531
  ## Tunneling and other related SSH themes
532
532
 
533
- In order to do special gymnasitcs with SSH, tunneling, aliasing, complex options, etc with SSHKit it is possible to use [the underlying Net::SSH API](https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md#setting-global-ssh-options) however in many cases it is preferred to use the system SSH configuration file at [`~/.ssh/config`](http://man.cx/ssh_config). This allows you to have personal configuration tied to your machine that does not have to be committed with the repository. If this is not suitable (everyone on the team needs a proxy command, or some special aliasing) a file in the same format can be placed in the project directory at `~/yourproject/.ssh/config`, this will be merged with the system settings in `~/.ssh/config`, and with any configuration specified in [`SSHKit::Backend::Netssh.config.ssh_options`](https://github.com/capistrano/sshkit/blob/master/lib/sshkit/backends/netssh.rb#L133).
533
+ In order to do special gymnastics with SSH, tunneling, aliasing, complex options, etc with SSHKit it is possible to use [the underlying Net::SSH API](https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md#setting-global-ssh-options) however in many cases it is preferred to use the system SSH configuration file at [`~/.ssh/config`](http://man.cx/ssh_config). This allows you to have personal configuration tied to your machine that does not have to be committed with the repository. If this is not suitable (everyone on the team needs a proxy command, or some special aliasing) a file in the same format can be placed in the project directory at `~/yourproject/.ssh/config`, this will be merged with the system settings in `~/.ssh/config`, and with any configuration specified in [`SSHKit::Backend::Netssh.config.ssh_options`](https://github.com/capistrano/sshkit/blob/master/lib/sshkit/backends/netssh.rb#L133).
534
534
 
535
535
  These system level files are the preferred way of setting up tunneling and proxies because the system implementations of these things are faster and better than the Ruby implementations you would get if you were to configure them through Net::SSH. In cases where it's not possible (Windows?), it should be possible to make use of the Net::SSH APIs to setup tunnels and proxy commands before deferring control to Capistrano/SSHKit..
536
536
 
@@ -88,7 +88,7 @@ class SSHKit::Backend::ConnectionPool
88
88
  private
89
89
 
90
90
  def cache_key_for_connection_args(args)
91
- args.to_s
91
+ args.hash
92
92
  end
93
93
 
94
94
  def cache_enabled?
@@ -1,3 +1,3 @@
1
1
  module SSHKit
2
- VERSION = "1.15.1".freeze
2
+ VERSION = "1.16.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sshkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.1
4
+ version: 1.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Hambley
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-11-18 00:00:00.000000000 Z
12
+ date: 2018-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh
@@ -293,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
293
  version: '0'
294
294
  requirements: []
295
295
  rubyforge_project:
296
- rubygems_version: 2.7.2
296
+ rubygems_version: 2.7.4
297
297
  signing_key:
298
298
  specification_version: 4
299
299
  summary: SSHKit makes it easy to write structured, testable SSH commands in Ruby