dependabot-common 0.149.4 → 0.152.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/clients/azure.rb +21 -12
- data/lib/dependabot/version.rb +1 -1
- 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: df71ebefe835a5dcc3ce7b067fe3044d36ba4d18898eae0a94b00403936dc7de
|
4
|
+
data.tar.gz: 4b54a35869fa0e366dd6d62931535f0f2f7a6761fb019f3807dc94ef074f162a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecb34fee2a18b042c38c5fc02d36e6d9f2e8bc64fb22da7edae5a2bdaa2d8efcadd6edd25e91978c35a369546ea5af792618a367bf6b33b85cde69c30d1f8645
|
7
|
+
data.tar.gz: 273b011695d020b8a101ec335f2c44d942d55545025d379e89d073fa3474f959522de74bbac5efec24df1561a8fbd922ac5687ad92c3f615542b0dbfe50d9b20
|
@@ -234,20 +234,29 @@ module Dependabot
|
|
234
234
|
end
|
235
235
|
|
236
236
|
def post(url, json)
|
237
|
-
response =
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
237
|
+
response = nil
|
238
|
+
|
239
|
+
retry_connection_failures do
|
240
|
+
response = Excon.post(
|
241
|
+
url,
|
242
|
+
body: json,
|
243
|
+
user: credentials&.fetch("username", nil),
|
244
|
+
password: credentials&.fetch("password", nil),
|
245
|
+
idempotent: true,
|
246
|
+
**SharedHelpers.excon_defaults(
|
247
|
+
headers: auth_header.merge(
|
248
|
+
{
|
249
|
+
"Content-Type" => "application/json"
|
250
|
+
}
|
251
|
+
)
|
248
252
|
)
|
249
253
|
)
|
250
|
-
|
254
|
+
|
255
|
+
raise InternalServerError if response.status == 500
|
256
|
+
raise BadGateway if response.status == 502
|
257
|
+
raise ServiceNotAvailable if response.status == 503
|
258
|
+
end
|
259
|
+
|
251
260
|
raise NotFound if response.status == 404
|
252
261
|
|
253
262
|
response
|
data/lib/dependabot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.152.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -298,14 +298,14 @@ dependencies:
|
|
298
298
|
requirements:
|
299
299
|
- - "~>"
|
300
300
|
- !ruby/object:Gem::Version
|
301
|
-
version: 1.
|
301
|
+
version: 1.16.0
|
302
302
|
type: :development
|
303
303
|
prerelease: false
|
304
304
|
version_requirements: !ruby/object:Gem::Requirement
|
305
305
|
requirements:
|
306
306
|
- - "~>"
|
307
307
|
- !ruby/object:Gem::Version
|
308
|
-
version: 1.
|
308
|
+
version: 1.16.0
|
309
309
|
- !ruby/object:Gem::Dependency
|
310
310
|
name: simplecov
|
311
311
|
requirement: !ruby/object:Gem::Requirement
|