specinfra 0.7.2 → 0.7.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a8389569d770c22c4bca42552eef6a1ec767fd6
|
4
|
+
data.tar.gz: e5ac166c60ea3b00672f862c4fa7dd569e7437b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2ccd1dc40d8777188fd05d6c94e6ae0ec8db52b99e80dab2e2c903e63148297d52c3f450c4e26c53d13282d457e8b3939cc247cbd58c037b42a751e6e9ad7ec
|
7
|
+
data.tar.gz: 35d6956665c667c04453e8c4a8aef5b7199ed7feae0fbe7c00a150dc9af5c3741eb5566805703fc1c02798561fc3f6aa7c74d5604c9eba2b80f494f1b47c631f
|
@@ -3,6 +3,7 @@ function IsPortListening
|
|
3
3
|
param($portNumber, $protocol)
|
4
4
|
$netstatOutput = netstat -an | Out-String
|
5
5
|
$networkIPs = (Get-WmiObject Win32_NetworkAdapterConfiguration | ? {$_.IPEnabled}) | %{ $_.IPAddress[0] }
|
6
|
+
[array] $networkIPs += "0.0.0.0"
|
6
7
|
foreach ($ipaddress in $networkIPs)
|
7
8
|
{
|
8
9
|
$matchExpression = ("$ipaddress" + ":" + $portNumber)
|
@@ -10,4 +11,4 @@ function IsPortListening
|
|
10
11
|
if ($netstatOutput -match $matchExpression) { return $true }
|
11
12
|
}
|
12
13
|
$false
|
13
|
-
}
|
14
|
+
}
|
data/lib/specinfra/version.rb
CHANGED
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: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|