specinfra 1.27.2 → 1.27.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: a9ad6a0d41b4d2e044a1633dd553839cfa53a02f
4
- data.tar.gz: dcf04dc1d7931eb174861aa688f0cf06de44ab49
3
+ metadata.gz: 355b5a2e8127dd8307a13dd3448aae847ccd7695
4
+ data.tar.gz: e1cb6ddf6b727a8c24487f7eae112184f37c3611
5
5
  SHA512:
6
- metadata.gz: 66c7cfb7506629b687a9adb564873656a744ce9e7adf4129ae18dee4cfeb677236cf2477b5438b6dd2d441bfbef8ffa39149d104b725406c3102d83a22265d0a
7
- data.tar.gz: 7905529a78e906927033ec524de8be9a8160feda3a2c1cb6d81a659a9a7ddaa083c96f352b39e275a3b18aa40f192f99592783bb3c2d9e4050daab35233dfb04
6
+ metadata.gz: 23ebf9e8ff3712c0d2a497b70e44f6a68f7491f5dcaf798885524c58c004c78804a95fb722e980d5d174f81c0c3d071ede2a58293fdc2995039fc5bbd9dc8cf5
7
+ data.tar.gz: a390eeb4e2f959ea5fa4cb7e1c286ab12fd6d2905523b8a4cbf529e6cb3fcda6d8663adfc2ab0c9861a728e666c41906c0fa13691115d1632a6a1b335f09013f
@@ -17,8 +17,13 @@ function FindIISAppPool
17
17
  param($name)
18
18
 
19
19
  Import-Module WebAdministration
20
-
21
- Get-Item "IIS:\AppPools\$name" -Erroraction silentlycontinue
20
+ Try {
21
+ Get-Item "IIS:\AppPools\$name" -Erroraction silentlycontinue
22
+ }
23
+ Catch [System.IO.FileNotFoundException] {
24
+ Get-Item "IIS:\AppPools\$name" -Erroraction silentlycontinue
25
+
26
+ }
22
27
  }
23
28
 
24
29
  function FindSiteBindings
@@ -26,8 +31,12 @@ function FindSiteBindings
26
31
  param($name, $protocol, $hostHeader, $port, $ipAddress)
27
32
 
28
33
  Import-Module WebAdministration
29
-
30
- Get-WebBinding -Name $name -Protocol $protocol -HostHeader $hostHeader -Port $port -IPAddress $ipAddress
34
+ Try {
35
+ Get-WebBinding -Name $name -Protocol $protocol -HostHeader $hostHeader -Port $port -IPAddress $ipAddress
36
+ }
37
+ Catch [System.IO.FileNotFoundException] {
38
+ Get-WebBinding -Name $name -Protocol $protocol -HostHeader $hostHeader -Port $port -IPAddress $ipAddress
39
+ }
31
40
  }
32
41
 
33
42
  function FindSiteVirtualDir
@@ -77,4 +86,4 @@ function FindSiteApplication
77
86
  }
78
87
 
79
88
  $result
80
- }
89
+ }
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.27.2"
2
+ VERSION = "1.27.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: 1.27.2
4
+ version: 1.27.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-09-17 00:00:00.000000000 Z
11
+ date: 2014-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler