docker-remote 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/docker/remote/client.rb +2 -1
- data/lib/docker/remote/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: 9219a19199767fbceaf6728af153b87d3ce3fbc1d134ac84652064f52497abd4
|
4
|
+
data.tar.gz: 8206bcd50b87f57bf2f361623bff376937563a129df1ab6d542c4e1d4272d296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccc0ae007d8a34b79bcea3cecb10cf4daa7d6881f37eab895b5785a40392463ef410b98828e3de48b4d520046dfcc5859419854a4ca1dba13912c318775fb476
|
7
|
+
data.tar.gz: 7d49f75c74d551b3e6ddcd458115983bc09cee8b63844ef9536e9c0f29a809c32476c9e81349695e7ecb45ad1cbbddede89b8284eb28da4138c0192ddddf2148
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.8.0
|
2
|
+
* Raise a more specific `TooManyRetriesError` when the client tries too many times with various scopes, etc.
|
3
|
+
- This can happen if the repo doesn't exist yet and the API keeps responding with an error message of `insufficient_scope`.
|
4
|
+
|
1
5
|
## 0.7.0
|
2
6
|
* Support Azure Container Registry (ACR)
|
3
7
|
- ACR does two things differently than other registries like DockerHub, GitHub, etc:
|
data/lib/docker/remote/client.rb
CHANGED
@@ -8,6 +8,7 @@ module Docker
|
|
8
8
|
class DockerRemoteError < StandardError; end
|
9
9
|
class UnsupportedVersionError < DockerRemoteError; end
|
10
10
|
class UnexpectedResponseCodeError < DockerRemoteError; end
|
11
|
+
class TooManyRetriesError < DockerRemoteError; end
|
11
12
|
|
12
13
|
class Client
|
13
14
|
include Utils
|
@@ -71,7 +72,7 @@ module Docker
|
|
71
72
|
|
72
73
|
def get(path, http: registry_http, use_auth: auth, limit: 5)
|
73
74
|
if limit == 0
|
74
|
-
raise
|
75
|
+
raise TooManyRetriesError, "too many retries contacting #{registry_uri.host}"
|
75
76
|
end
|
76
77
|
|
77
78
|
request = use_auth.make_get(path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-remote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Ruby client for communicating with the Docker registry API v2.
|
14
14
|
email:
|