goldfinger 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/goldfinger/client.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ccb83bc7919c4a975043eb396ad2918eed58d66
|
4
|
+
data.tar.gz: b8ca3a1309fd418c5ee8e5cd57cc2b274e3d454e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e977f822f5eaa7ff38528bcb55c363b75aae26cedf05bb7c14c25719aa899d05147881a502fefcdb1f2cd253faadf0d22514dedc2e3ea17341b53d5bd5a0e0
|
7
|
+
data.tar.gz: b7efffe3f7de0d3fcb75ee63e99e91985d6b074af0a210c79f6191d2ceb0695ded59619fbd3d0a9d8400e56ca6a4e6081b0aed16f28d078eb2452a6b4e37e871
|
data/lib/goldfinger/client.rb
CHANGED
@@ -23,17 +23,19 @@ module Goldfinger
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
raise Goldfinger::NotFoundError,
|
26
|
+
raise Goldfinger::NotFoundError, 'No host-meta on the server' if template.code != 200
|
27
27
|
|
28
28
|
response = perform_get(url_from_template(template.body))
|
29
29
|
|
30
|
-
raise Goldfinger::NotFoundError,
|
30
|
+
raise Goldfinger::NotFoundError, 'No such user on the server' if response.code != 200
|
31
31
|
|
32
32
|
Goldfinger::Result.new(response)
|
33
33
|
rescue HTTP::Error
|
34
34
|
raise Goldfinger::NotFoundError
|
35
35
|
rescue OpenSSL::SSL::SSLError
|
36
36
|
raise Goldfinger::SSLError
|
37
|
+
rescue Addressable::URI::InvalidURIError
|
38
|
+
raise Goldfinger::NotFoundError, 'Invalid URI'
|
37
39
|
end
|
38
40
|
|
39
41
|
private
|