sshkit 1.11.0 → 1.11.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: 2ea6531109db4fbc073107e4d01ac242f50a4f67
4
- data.tar.gz: 70ae0a86727e7ba0659049b6b3abfb07e84f4f2b
3
+ metadata.gz: e19c67f924ef3a2dd33905c2ced117daa369d81d
4
+ data.tar.gz: e15d65a99e71fa5b1370cc338271751c99c2009f
5
5
  SHA512:
6
- metadata.gz: 58a524ef9892ad8563de08e5f24eac198d22b78b5c193b72dbb8990712bf67cc0346b8a84e2281627a84c0bde28ed14a23d74059b5cb6f9a6ed14b31e69bb9df
7
- data.tar.gz: ac0d03ae20ca9ef8b72727000d7cdbfb55f74a7806f2e9897d90eb1368b8c1f47ba281ef7e4b5e83deaf1b60d96006640f8eb5ed226aa695ebb45231b6b52c9f
6
+ metadata.gz: 3fb1764bbe94f71bd91ba99a7c4350f0e3623823f186389be3c053840cfe2b0ae7a144fd9d552c26da2e95fd69ce5c69879edc4696bd50c0e95dc5e6f1127ec8
7
+ data.tar.gz: aaf509fe9fcb25dbf545bccefd220f1e99241d23c72fa55241c721a127080b54db5427d771caf26a9f97598c3d70a835d9413b30514a4c3f900aa0a943baff73
data/CHANGELOG.md CHANGED
@@ -8,6 +8,14 @@ appear at the top.
8
8
  * Add your entries below here, remember to credit yourself however you want
9
9
  to be credited!
10
10
 
11
+ ## [1.11.1][] (2016-06-17)
12
+
13
+ ### Bug fixes
14
+
15
+ * Fixed a regression in 1.11.0 that would cause
16
+ `ArgumentError: invalid option(s): known_hosts` in some older versions of
17
+ net-ssh. @byroot [#357](https://github.com/capistrano/sshkit/issues/357)
18
+
11
19
  ## [1.11.0][] (2016-06-14)
12
20
 
13
21
  ### Bug fixes
@@ -629,5 +637,6 @@ version `0.0.5`.
629
637
 
630
638
  First release.
631
639
 
632
- [Unreleased]: https://github.com/capistrano/sshkit/compare/v1.11.0...HEAD
640
+ [Unreleased]: https://github.com/capistrano/sshkit/compare/v1.11.1...HEAD
641
+ [1.11.1]: https://github.com/capistrano/sshkit/compare/v1.11.0...v1.11.1
633
642
  [1.11.0]: https://github.com/capistrano/sshkit/compare/v1.10.0...v1.11.0
data/README.md CHANGED
@@ -259,7 +259,7 @@ desirable.
259
259
  first argument before attempting to find it in the *command map*.
260
260
 
261
261
  ## Interactive commands
262
- > (BETA) (Added in version #.##)
262
+ > (Added in version 1.8.0)
263
263
 
264
264
  By default, commands against remote servers are run in a *non-login, non-interactive* ssh session.
265
265
  This is by design, to try and isolate the environment and make sure that things work as expected,
@@ -335,7 +335,7 @@ You can also pass a Proc object to map the output line from the server:
335
335
  execute(:passwd, interaction_handler: lambda { |server_data|
336
336
  case server_data
337
337
  when '(current) UNIX password: '
338
- "old_pw\n",
338
+ "old_pw\n"
339
339
  when /(Enter|Retype) new UNIX password: /
340
340
  "new_pw\n"
341
341
  end
@@ -362,14 +362,14 @@ in response. This can be helpful if you don't know exactly what the server is se
362
362
 
363
363
  ```ruby
364
364
  # Start with this and run your script
365
- execute(:unfamiliar_command, MappingInteractionHandler.new({}, :debug))
366
- # DEBUG log => Unable to find interaction handler mapping for stdout:
367
- # "Please type your input:\r\n" so no response was sent"
368
-
369
- # Update mapping:
370
- execute(:unfamiliar_command, MappingInteractionHandler.new(
371
- {"Please type your input:\r\n" => "Some input\n"}
372
- :debug
365
+ execute(:unfamiliar_command, interaction_handler: MappingInteractionHandler.new({}, :info))
366
+ # INFO log => Unable to find interaction handler mapping for stdout:
367
+ # "Please type your input:\r\n" so no response was sent"
368
+
369
+ # Add missing mapping:
370
+ execute(:unfamiliar_command, interaction_handler: MappingInteractionHandler.new(
371
+ {"Please type your input:\r\n" => "Some input\n"},
372
+ :info
373
373
  ))
374
374
  ```
375
375
 
@@ -33,8 +33,14 @@ module SSHKit
33
33
 
34
34
  private
35
35
 
36
- def default_options
37
- @default_options ||= {known_hosts: SSHKit::Backend::Netssh::KnownHosts.new}
36
+ if Net::SSH::VALID_OPTIONS.include?(:known_hosts)
37
+ def default_options
38
+ @default_options ||= {known_hosts: SSHKit::Backend::Netssh::KnownHosts.new}
39
+ end
40
+ else
41
+ def default_options
42
+ @default_options ||= {}
43
+ end
38
44
  end
39
45
  end
40
46
 
@@ -1,3 +1,3 @@
1
1
  module SSHKit
2
- VERSION = "1.11.0".freeze
2
+ VERSION = "1.11.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.11.0
4
+ version: 1.11.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: 2016-06-14 00:00:00.000000000 Z
12
+ date: 2016-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh