cf-uaa-lib 3.14.1 → 3.14.3

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: 46d432989d2af2fe4fa1a5317daffba25c752728
4
- data.tar.gz: 4daf1389ceb41788db00d04324a778b688c7397c
3
+ metadata.gz: 903c34141ef900eafea69aa67eac6e998ff8ed4d
4
+ data.tar.gz: e994669699594790f50be50a10d7c8a1b1c38dc7
5
5
  SHA512:
6
- metadata.gz: 57c54fd8ee9caddf71d4580bd909a52e4bad75a6815cb0a595b05e43536aa2a1774a2eddf5d747f9d2feca37e295d50f0a7966ccaf34b4b6e188e19f58083445
7
- data.tar.gz: 41b36b3d6df7b9b2d5a55d65b0afadc62ac73837823bca76e3cfc4820fd6f3d0c17f57e9731ce1378a3e02fa272b08262712f5deb8895429eb72785911d0c455
6
+ metadata.gz: a8c4455646d340f50b5338481bf51f8d00daf6bf8bcce5c189761bb7f43f3b5c44a93e925266632b04aed9cdd0abc6a04df53110805ab94942410e503b68a49d
7
+ data.tar.gz: 98340c72c9201bea70d77f1dd3df5fc0a7f5ca2138e0534107cdda121dd26b6f512b127ed6c628ae10e02e1257e91c0027973390c83a132c5d0de746608c7877
@@ -183,6 +183,8 @@ module Http
183
183
  raise SSLException, "Invalid SSL Cert for #{url}. Use '--skip-ssl-validation' to continue with an insecure target"
184
184
  rescue URI::Error, SocketError, SystemCallError => e
185
185
  raise BadTarget, "error: #{e.message}"
186
+ rescue HTTPClient::ConnectTimeoutError => e
187
+ raise HTTPException.new "http timeout"
186
188
  end
187
189
 
188
190
  def http_request(uri)
@@ -14,6 +14,6 @@
14
14
  # Cloud Foundry namespace
15
15
  module CF
16
16
  module UAA
17
- VERSION = '3.14.1'
17
+ VERSION = '3.14.3'
18
18
  end
19
19
  end
@@ -60,7 +60,7 @@ module CF::UAA
60
60
  Timeout.timeout(default_http_client_timeout - 1) do
61
61
  scim.get(:user, "admin")
62
62
  end
63
- }.to raise_error HTTPClient::TimeoutError
63
+ }.to raise_error HTTPException
64
64
  end
65
65
 
66
66
  it 'times out the connection at the configured time for the token issuer' do
@@ -68,7 +68,7 @@ module CF::UAA
68
68
  Timeout.timeout(default_http_client_timeout - 1) do
69
69
  token_issuer.client_credentials_grant
70
70
  end
71
- }.to raise_error HTTPClient::TimeoutError
71
+ }.to raise_error HTTPException
72
72
  end
73
73
  end
74
74
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-uaa-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.1
4
+ version: 3.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Syer