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: fbcd416037eefd02b8099c500cbd650146d8f709
4
- data.tar.gz: 1e3eb19a2ded2b0798ebb92cb38a7b617a5fc9a1
3
+ metadata.gz: 1a8389569d770c22c4bca42552eef6a1ec767fd6
4
+ data.tar.gz: e5ac166c60ea3b00672f862c4fa7dd569e7437b8
5
5
  SHA512:
6
- metadata.gz: 876c4a91e60f531a53cc259d72ff880c9d8e0f58baafe21329db10c9653b45d280f7a5d86993d435377084da82c620e0648938d831d589a09fb7c078760ae19f
7
- data.tar.gz: d0e7f7f4249f88eb4631a1d3afb093213e12d9aff0e542ddadecdc8baa07a938434a038fca9ed98084505d320dde9e7e28a3037e64cc7f5ccdb5ca8cba925b2c
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
+ }
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
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: 0.7.2
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-17 00:00:00.000000000 Z
11
+ date: 2014-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler