sshkit 1.13.0 → 1.13.1

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
  SHA1:
3
- metadata.gz: 63716bfbb3150fe84235f1161bc7ecc9d303155c
4
- data.tar.gz: 91103b89d73d2c9f56ade1ebd21ae80f85f6fb24
3
+ metadata.gz: 1e6e753e52f903eae9ac0ecb2475a33ec5b96c31
4
+ data.tar.gz: 00e47def1aa6b84b43395c9ff39377a16c893de2
5
5
  SHA512:
6
- metadata.gz: 0cd4182399d780bc1a760be58589ee74bcbd1a8428d6ba1007c1f5a47ff587d3ce5f4a93258cac4be3d38f3e9a5f0bbc6e546ce5b4b72469b31195bdf2060dee
7
- data.tar.gz: b022fccb0e7c55965b5a58420878fd6340eea1fd3a0ac5a47a50573e1149719fc784970c1f1956cfd3ea7ccb5b11ae413082c306806030059b5e0d2e0b0ada64
6
+ metadata.gz: 223c11ff64f9a19d422e789883e66d7d48b4d0d7a143f5b60c3f03553c81655780c2e2f3070ac146f04ef9eb592eba5e453ed0ec7d9a6475dbccbaadb4c9ea76
7
+ data.tar.gz: 78b90ecb8e2cd4efd4c9760de40d5338b6d8cd4efc2034264a53bf15073301e2dd1b5347c24ba3ea2064050922caf07e47a954983051379191180f4774ddb8bd
@@ -7,6 +7,16 @@ appear at the top.
7
7
 
8
8
  * Your contribution here!
9
9
 
10
+ ## [1.13.1][] (2017-03-31)
11
+
12
+ ### Breaking changes
13
+
14
+ * None
15
+
16
+ ### Bug fixes
17
+
18
+ * [#397](https://github.com/capistrano/sshkt/pull/397): Fix NoMethodError assign_defaults with net-ssh older than 4.0.0 - [@shirosaki](https://github.com/shirosaki)
19
+
10
20
  ## [1.13.0][] (2017-03-24)
11
21
 
12
22
  ### Breaking changes
@@ -687,7 +697,9 @@ version `0.0.5`.
687
697
 
688
698
  First release.
689
699
 
690
- [Unreleased]: https://github.com/capistrano/sshkit/compare/v1.12.0...HEAD
700
+ [Unreleased]: https://github.com/capistrano/sshkit/compare/v1.13.1...HEAD
701
+ [1.13.1]: https://github.com/capistrano/sshkit/compare/v1.13.0...v1.13.1
702
+ [1.13.0]: https://github.com/capistrano/sshkit/compare/v1.12.0...v1.13.0
691
703
  [1.12.0]: https://github.com/capistrano/sshkit/compare/v1.11.5...v1.12.0
692
704
  [1.11.5]: https://github.com/capistrano/sshkit/compare/v1.11.4...v1.11.5
693
705
  [1.11.4]: https://github.com/capistrano/sshkit/compare/v1.11.3...v1.11.4
@@ -47,7 +47,16 @@ module SSHKit
47
47
 
48
48
  # Set default options early for ConnectionPool cache key
49
49
  def assign_defaults
50
- Net::SSH.assign_defaults(@default_options)
50
+ if Net::SSH.respond_to?(:assign_defaults)
51
+ Net::SSH.assign_defaults(@default_options)
52
+ else
53
+ # net-ssh < 4.0.0 doesn't have assign_defaults
54
+ unless @default_options.key?(:logger)
55
+ require 'logger'
56
+ @default_options[:logger] = ::Logger.new(STDERR)
57
+ @default_options[:logger].level = ::Logger::FATAL
58
+ end
59
+ end
51
60
  @default_options
52
61
  end
53
62
  end
@@ -1,3 +1,3 @@
1
1
  module SSHKit
2
- VERSION = "1.13.0".freeze
2
+ VERSION = "1.13.1".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.13.0
4
+ version: 1.13.1
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-03-25 00:00:00.000000000 Z
12
+ date: 2017-03-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh