specinfra 2.82.15 → 2.82.16

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: e4bbeedbd93346478be080cccaa8c690a2dab1d4
4
- data.tar.gz: 06860c7283922f58de2599abdfed56ded6006b0f
3
+ metadata.gz: 081c5fe3e3d544ed5e60bab131c08253c686a159
4
+ data.tar.gz: 410cef0c65354b9e3de79aa4fd1a496650067512
5
5
  SHA512:
6
- metadata.gz: 23d0eb2edb19432f9ffe8dfb8e352a0d60fc6da010e74cfa2b2601554737996444763914c292f854a7b41a492c940400d0fca56cff40a4a62d25eb2f0991c652
7
- data.tar.gz: 415baa53796260ae23d3a69414d51b0c7bad7def0483cfdf4afbc96d08a265dc3997e0735c918c579bd7f19d0b2c843c78baf39deaf85b689d68ade76688fabc
6
+ metadata.gz: 851092951f6e2c01b78ac3dc11ca74263fd7f3257966c9e44ec9d75398ea1b78bdd489274f584f4c687b5008ed94529151fdc854580c5626a27068d11f432bd2
7
+ data.tar.gz: c3bd863bd7b130e33c3e3e3a68650347c9cf4b6459fea435a2b6fa90f8b12b1d92ac00dc73f22bb4f3d024ec1839f4b3154aa2aea5602cfc789ec45400bcc9e8
@@ -5,9 +5,10 @@ function IsPortListening
5
5
  $networkIPs = (Get-WmiObject Win32_NetworkAdapterConfiguration | ? {$_.IPEnabled}) | %{ $_.IPAddress[0] }
6
6
  [array] $networkIPs += "0.0.0.0"
7
7
  [array] $networkIPs += "127.0.0.1"
8
+ [array] $networkIPs += "[::1]"
8
9
  foreach ($ipaddress in $networkIPs)
9
10
  {
10
- $matchExpression = ("$ipaddress" + ":" + $portNumber)
11
+ $matchExpression = ("$ipaddress" + ":" + $portNumber + ".*LISTENING")
11
12
  if ($protocol) { $matchExpression = ($protocol.toUpper() + "\s+$matchExpression") }
12
13
  if ($netstatOutput -match $matchExpression) { return $true }
13
14
  }
@@ -73,10 +73,16 @@ module Specinfra
73
73
  end
74
74
 
75
75
  def create_ssh
76
+ options = get_config(:ssh_options)
77
+
78
+ if !Net::SSH::VALID_OPTIONS.include?(:strict_host_key_checking)
79
+ options.delete(:strict_host_key_checking)
80
+ end
81
+
76
82
  Net::SSH.start(
77
83
  get_config(:host),
78
- get_config(:ssh_options)[:user],
79
- get_config(:ssh_options)
84
+ options[:user],
85
+ options
80
86
  )
81
87
  end
82
88
 
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.82.15"
2
+ VERSION = "2.82.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.82.15
4
+ version: 2.82.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-09 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp