dependabot-common 0.180.4 → 0.180.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e96320c0d005a01e60eb0dbda0ecbef317564c601ea749f2e7161f5078af74c7
|
4
|
+
data.tar.gz: 55fede508dc3d1e527d82565a5a3516fe618645e106d4bec9821e1216d8d87d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f833e1abb07f8feb45f08c0c9bf6601a612cca37d5e61b6e2a8be5f4e72987dcc37669b6313428dfb7ece40f59c420c6bf923e152d2bc52be93eec97213cd2d0
|
7
|
+
data.tar.gz: 55f7f4c31e3caf18f4b3c9897dee9b9edfbd2c71616516411022902fefa30ee63a15d0fa0ab07bf8105178d323c41ea657397b8eea589ecad672b4599df67678
|
@@ -5,10 +5,16 @@ require "octokit"
|
|
5
5
|
module Dependabot
|
6
6
|
module Clients
|
7
7
|
class GithubWithRetries
|
8
|
+
DEFAULT_OPEN_TIMEOUT_IN_SECONDS = 2
|
9
|
+
|
10
|
+
def self.open_timeout_in_seconds
|
11
|
+
ENV.fetch("DEPENDABOT_OPEN_TIMEOUT_IN_SECONDS", DEFAULT_OPEN_TIMEOUT_IN_SECONDS).to_i
|
12
|
+
end
|
13
|
+
|
8
14
|
DEFAULT_CLIENT_ARGS = {
|
9
15
|
connection_options: {
|
10
16
|
request: {
|
11
|
-
open_timeout:
|
17
|
+
open_timeout: open_timeout_in_seconds,
|
12
18
|
timeout: 5
|
13
19
|
}
|
14
20
|
}
|
@@ -50,7 +50,7 @@ module Dependabot
|
|
50
50
|
return true if dependency.version&.start_with?(ref)
|
51
51
|
|
52
52
|
# Check the specified `ref` isn't actually a branch
|
53
|
-
!local_upload_pack.match?(
|
53
|
+
!local_upload_pack.match?(%r{ refs/heads/#{ref}$})
|
54
54
|
end
|
55
55
|
|
56
56
|
def pinned_ref_looks_like_version?
|
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.180.
|
4
|
+
version: 0.180.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|