dependabot-docker 0.131.3 → 0.133.3

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: 23636f4c2890bdd8d8371ed3c07f477906207fb2f507cc4e3acb05f4ca783ec4
4
- data.tar.gz: 7ef9db023b25111dd572c2b78b9c2307d622d64123b7e6b6f962fc2e946d3560
3
+ metadata.gz: d36e18043a2060974af2af4b63f9682c11c9bb4ba59177be92933e411282c161
4
+ data.tar.gz: 5d760e0137ab968e325b330c94b6a80ea2a4b8d65251b58425f8de17192f5ab6
5
5
  SHA512:
6
- metadata.gz: 83e42d5a73fb32a737729d256ddca670a2889f0edd11c7a8a7e60f120d9b0569f23ef4ee172d63b00950fd859ada345196b55c5b6d70fb064c9cc1458b384920
7
- data.tar.gz: cab52d67ceb291da841b5b33394e8d46994da965ffe00bbb0af2907b20417b3427b763ca9f61e45fc4d66f976329e62b4c6bebc247a55a639dbde6168bac7982
6
+ metadata.gz: 2a24e2e167fcab2fbf6255de9c68263d2f7872214a0c04cb60716cefb74b0ab53d00d6b22e0a693d23006bd81b68d9cd58566c313ca3c3af1ce6566552a89d34
7
+ data.tar.gz: 2cb3d81f2ae0fc47218aeef236e48e9cec4fc4d146aac5c51a0c12d8fc580c29cd9718c9de2a6ed4e54a419fd9703d6e08314ef2fb4334a51ea66aee80d6c6d2
@@ -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.3
4
+ version: 0.133.3
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-08 00:00:00.000000000 Z
11
+ date: 2021-02-16 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.3
19
+ version: 0.133.3
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.3
26
+ version: 0.133.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.9.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: stackprof
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.2.16
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.2.16
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: vcr
141
155
  requirement: !ruby/object:Gem::Requirement