goldfinger 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/goldfinger/client.rb +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86e84a0c8748697ba17c1291e699810185a21353
4
- data.tar.gz: 26f8ed3895e9f991b6ff93c9505ebc4583a2780c
3
+ metadata.gz: 4ccb83bc7919c4a975043eb396ad2918eed58d66
4
+ data.tar.gz: b8ca3a1309fd418c5ee8e5cd57cc2b274e3d454e
5
5
  SHA512:
6
- metadata.gz: 147f996f20676112150309e1d622a9ab95ca4a6df174bf10d51be7ade0206001073f047987e2afa98986a320ab4df741830e37d47622aa4757c75b4bbb465b7b
7
- data.tar.gz: 25a53efb11942a4ce3af8239a554243d2d8c617b41cdef88ff6084e61049390adb5774f31a18bb40e4181432d18a26bb7cd7c3b924e048ef16345c25009c4bdd
6
+ metadata.gz: 65e977f822f5eaa7ff38528bcb55c363b75aae26cedf05bb7c14c25719aa899d05147881a502fefcdb1f2cd253faadf0d22514dedc2e3ea17341b53d5bd5a0e0
7
+ data.tar.gz: b7efffe3f7de0d3fcb75ee63e99e91985d6b074af0a210c79f6191d2ceb0695ded59619fbd3d0a9d8400e56ca6a4e6081b0aed16f28d078eb2452a6b4e37e871
@@ -23,17 +23,19 @@ module Goldfinger
23
23
  end
24
24
  end
25
25
 
26
- raise Goldfinger::NotFoundError, "No host-meta on the server" if template.code != 200
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, "No such user on the server" if response.code != 200
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goldfinger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Rochko