net-ssh 4.0.1.rc1 → 4.0.1.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a85d8ffe356b4c518f3b9f03e5db8e988d305c8
4
- data.tar.gz: 814f1bd93b849e89d6210d84ec53a4eafa617a91
3
+ metadata.gz: aba6d69a2220edc663f0ec373e350ba8d6a543a7
4
+ data.tar.gz: 745579f681c0b55582842c6109070fbf68e6ab0a
5
5
  SHA512:
6
- metadata.gz: 59055d104360f2ddb71cb09747dc4a0cc3df52714d97b966cce35e13cc731d913114f873c6ccc3a937c2ecb2bce2ed84850bcbfe5a9e5f554ada3f725eb47c15
7
- data.tar.gz: 0f7d6af33dfe71f9d34a06d2a7eddbd3350cf135bb9da9e13e494c1c1284db46a4f226bbfbed5d8c608ab4eb963bd4dfeb3099a167a5b58d8b7dae3cdd519521
6
+ metadata.gz: ebbc659079daf238edefea37133fbd240d94fc365450f9e143b4e5dc5129e17d4a2ecafdcd09f6f9295ff96a74cc1bfd682b62987b7f5e1bac30111cd20d8afa
7
+ data.tar.gz: 1bdbaba91c178ed9416ac7697041d752c35ba779c4ec325c6563395a314c723cc9c91103bf9d3001ae851dedcf51ceb2ce9e7ede586e958eaf32b81428c97047
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,7 @@
1
+ === 4.0.1.rc2
2
+
3
+ * ENV["HOME"] might be empty so filter non expandable paths [Matt Casper, #351]
4
+
1
5
  === 4.0.1.rc1
2
6
 
3
7
  * support of rbnacl 4.0 and better error message [#479]
@@ -262,7 +262,7 @@ module Net
262
262
  # See Net::SSH::Config for the full description of all supported options.
263
263
  def self.configuration_for(host, use_ssh_config)
264
264
  files = case use_ssh_config
265
- when true then Net::SSH::Config.default_files
265
+ when true then Net::SSH::Config.expandable_default_files
266
266
  when false, nil then return {}
267
267
  else Array(use_ssh_config)
268
268
  end
@@ -248,18 +248,19 @@ module Net; module SSH
248
248
  merge_challenge_response_with_keyboard_interactive(ret)
249
249
  end
250
250
 
251
- private
252
-
253
- def expandable_default_files
254
- default_files.keep_if do |path|
255
- begin
256
- File.expand_path(path)
257
- true
258
- rescue ArgumentError
259
- false
260
- end
251
+ # Filters default_files down to the files that are expandable.
252
+ def expandable_default_files
253
+ default_files.keep_if do |path|
254
+ begin
255
+ File.expand_path(path)
256
+ true
257
+ rescue ArgumentError
258
+ false
261
259
  end
262
260
  end
261
+ end
262
+
263
+ private
263
264
 
264
265
  # Converts an ssh_config pattern into a regex for matching against
265
266
  # host names.
@@ -55,7 +55,7 @@ module Net; module SSH
55
55
 
56
56
  # The prerelease component of this version of the Net::SSH library
57
57
  # nil allowed
58
- PRE = "rc1"
58
+ PRE = "rc2"
59
59
 
60
60
  # The current version of the Net::SSH library as a Version instance
61
61
  CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1.rc1
4
+ version: 4.0.1.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -32,7 +32,7 @@ cert_chain:
32
32
  L4d54WIy4HkZCqQXoTSiK5HZMIdXkPk3F1bZdJ8Dy1sMRru0rUkkM5mW7TQ75mfW
33
33
  Zp0QrZyNZhtitrXFbZneGRrIA/8G2Krft5Ly/A==
34
34
  -----END CERTIFICATE-----
35
- date: 2017-01-01 00:00:00.000000000 Z
35
+ date: 2017-01-03 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file