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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f0dacbcd0b3868a51baae61b1ae4cf61a34377bf7e947ae6f6afa955b4ee4a1
4
- data.tar.gz: b4b0b338a1b4a14a31dcda1616c3dd2af3fcd3c138dcb58abdbdb2aafa0a7f8d
3
+ metadata.gz: 897831d0b7c1e2a12f2f3ccac884faa5efa81dea7fdc952307a4b206e0a70c27
4
+ data.tar.gz: 5fd27339dd30a42fc9b4102f879286c5f0525fa02638f002005e32520ba09afa
5
5
  SHA512:
6
- metadata.gz: 551add90780e2b58deb44c09009dde0206e9bb2dd3463993da91967de14c0d6696d1e305ab0472185c82261ee7b7d03af14817517bf22d84c8fb9c6c63284656
7
- data.tar.gz: 833f356df9090cdb6bc58a66bfca9e4e13892af12784c8e51d8a4e9b0bde1deece90279e6fa2442ab73221f860771a96585af15d9d0e26a4cadfb8032f38b2e6
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.133.1
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-10 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.133.1
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.1
26
+ version: 0.133.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement