dependabot-docker 0.133.1 → 0.133.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/docker/update_checker.rb +13 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 897831d0b7c1e2a12f2f3ccac884faa5efa81dea7fdc952307a4b206e0a70c27
|
4
|
+
data.tar.gz: 5fd27339dd30a42fc9b4102f879286c5f0525fa02638f002005e32520ba09afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 165960e7b54abe81266916d058d3f48065b7ca3ba3744fc8b4551433c20d612e773dd71fe654a49cc88d7839522bcb01c14f5bf74104a0e1ffdbdc6525372b99
|
7
|
+
data.tar.gz: 843c254440d5dfe07068435af389541383944713d107ae164e8834547b754144b3288e6108cc25e7794ed2d39ed9af69440e1af1ca974c21f9f7aebd1f7c9556
|
@@ -14,16 +14,23 @@ module DockerRegistry2
|
|
14
14
|
private
|
15
15
|
|
16
16
|
# By default the Docker Registry client sets the Accept header to
|
17
|
-
# `application/vnd.docker.distribution.manifest.v2+json
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
17
|
+
# `application/vnd.docker.distribution.manifest.v2+json`. This is fine for
|
18
|
+
# most images, but for multi-architecture images, it fetches the digest of a
|
19
|
+
# specific architecture instead of the digest for the multi-architecture
|
20
|
+
# image. We override the header to tell the Docker API to vary its behavior
|
21
|
+
# depending on whether the image is a uses a traditional (non-list) manifest
|
22
|
+
# or a manifest list. If the image uses a traditional manifest, the API will
|
23
|
+
# return the manifest digest. If the image uses a manifest list, the API
|
24
|
+
# will return the manifest list digest.
|
21
25
|
def headers(payload: nil, bearer_token: nil)
|
22
26
|
headers = {}
|
23
27
|
headers["Authorization"] = "Bearer #{bearer_token}" unless bearer_token.nil?
|
24
28
|
if payload.nil?
|
25
|
-
headers["Accept"] =
|
26
|
-
|
29
|
+
headers["Accept"] = %w(
|
30
|
+
application/vnd.docker.distribution.manifest.v2+json
|
31
|
+
application/vnd.docker.distribution.manifest.list.v2+json
|
32
|
+
application/json"
|
33
|
+
).join(",")
|
27
34
|
end
|
28
35
|
headers["Content-Type"] = "application/vnd.docker.distribution.manifest.v2+json" unless payload.nil?
|
29
36
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-docker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.133.
|
4
|
+
version: 0.133.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.133.
|
19
|
+
version: 0.133.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.133.
|
26
|
+
version: 0.133.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|