dependabot-docker 0.131.2 → 0.133.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 809ac92837a99c7d815b35254a5b557e517e5bd21a77f38e9254c5607d9e4b08
4
- data.tar.gz: 626aec282dfe1935227eceb698b13468d1f1491b85bc74aa19af9225aaa42bc1
3
+ metadata.gz: 897831d0b7c1e2a12f2f3ccac884faa5efa81dea7fdc952307a4b206e0a70c27
4
+ data.tar.gz: 5fd27339dd30a42fc9b4102f879286c5f0525fa02638f002005e32520ba09afa
5
5
  SHA512:
6
- metadata.gz: fdffc332958de758eebfc374f79280263f241c79eb42ab64be71b4ac9d9bc138bf4c309bb8a8589fe0a4157d6a109c1257b57ebcec0b5b35e8f12cfc3d26367d
7
- data.tar.gz: ae7e12b64be4d25ecefe7ee6d4d3fc751efeb51bfcd4b9bc5ca3bf9d17aa0a68d69dfe607e98f0e777d0f153efaf8f94a022c789515ed5a165281d850b6f4ac2
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
- # This results in the digest of a specific platform to be returned, we
19
- # want to override this header so we can fetch the generic digest
20
- # associated with the given repo/tag.
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
- "application/vnd.docker.distribution.manifest.list.v2+json, application/json"
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.131.2
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-05 00:00:00.000000000 Z
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.131.2
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.131.2
26
+ version: 0.133.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement