dependabot-common 0.165.0 → 0.166.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/source.rb +5 -0
- data/lib/dependabot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a3aea640c5c095314a2a681e4aa83144cfa3438f15ee84a7c6e71c551536b20
|
4
|
+
data.tar.gz: e7da1c50d04f2b84379b57e804702353e1d580718698e12a4ff9448a529dff8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00ab9cb772d94a8f7d8ae82f0d0fff14d6167cbd8ef844fc698e5f81180b00f39cb3cd1dcd7dc4d74e9fb6f749def9a48ce5fdc797d0e93ab7891587735ca6c4
|
7
|
+
data.tar.gz: b847d1a4bbb1b8013caf86988a6e3e055df2294f773c3f2ef849b6a70b7f86ec90e62594e8d36195b01b13ff502206f20dbd730d7616e4b4d3f8eb20e903c642
|
data/lib/dependabot/source.rb
CHANGED
@@ -45,6 +45,8 @@ module Dependabot
|
|
45
45
|
(?:#{AZURE_SOURCE})
|
46
46
|
/x.freeze
|
47
47
|
|
48
|
+
IGNORED_PROVIDER_HOSTS = %w(gitbox.apache.org svn.apache.org).freeze
|
49
|
+
|
48
50
|
attr_accessor :provider, :repo, :directory, :branch, :commit,
|
49
51
|
:hostname, :api_endpoint
|
50
52
|
|
@@ -64,6 +66,7 @@ module Dependabot
|
|
64
66
|
def self.github_enterprise_from_url(url_string)
|
65
67
|
captures = url_string&.match(GITHUB_ENTERPRISE_SOURCE)&.named_captures
|
66
68
|
return unless captures
|
69
|
+
return if IGNORED_PROVIDER_HOSTS.include?(captures.fetch("host"))
|
67
70
|
|
68
71
|
base_url = "https://#{captures.fetch('host')}"
|
69
72
|
|
@@ -86,6 +89,8 @@ module Dependabot
|
|
86
89
|
# currently doesn't work with development environments
|
87
90
|
resp.headers["X-GitHub-Request-Id"] &&
|
88
91
|
!resp.headers["X-GitHub-Request-Id"].empty?
|
92
|
+
rescue Excon::Error
|
93
|
+
false
|
89
94
|
end
|
90
95
|
|
91
96
|
def initialize(provider:, repo:, directory: nil, branch: nil, commit: nil,
|
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.166.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-11-
|
11
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|