quayio-scanner 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quayio/scanner/repository.rb +7 -3
- data/lib/quayio/scanner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 668671ffe57f1e5b1f27d5d6f6ace098e89f5aeb3dc5999d0f091c8f9fa05bb3
|
4
|
+
data.tar.gz: 5dd2530e763c2807b2dc36355b4787d201512e3d899924232768cd91653ba3bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b55a1e1ad424c964f8a29540317dc6f8107e2dcc5f1b7724a45df76f5a40e87fb6405d0d273f58ea3eec3dd0afe29904dfeb3ef77a65950bc6614bb444389f59
|
7
|
+
data.tar.gz: 920b574586ed4ac4428076a8593aca5914cefbeb6c7909472517905830e01319a4dca816f9038c12c6bb1a6cfbe926dc1f4d1df8631cba34058a81b9f7d46f1f
|
@@ -27,11 +27,15 @@ module Quayio
|
|
27
27
|
response = RestClient.get(
|
28
28
|
"https://quay.io/api/v1/repository/#{org}/#{repo}#{uri}",
|
29
29
|
authorization: "Bearer #{quayio_token}",
|
30
|
-
accept: :json
|
30
|
+
accept: :json,
|
31
|
+
open_timeout: 15
|
31
32
|
)
|
32
33
|
return JSON.parse(response)
|
33
|
-
rescue RestClient::
|
34
|
-
raise e if
|
34
|
+
rescue RestClient::Exception => e
|
35
|
+
raise e if attempt >= MAX_ATTEMPTS
|
36
|
+
|
37
|
+
# retry later, if we hit cdn rate limiting or on connection errors
|
38
|
+
raise e unless e.http_code == 520 || e.http_code.nil?
|
35
39
|
|
36
40
|
sleep(rand(10))
|
37
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quayio-scanner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Meichsner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker-api
|