dependabot-common 0.165.0 → 0.166.0

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: fded763414c9d5eec2fcdcbde94cc2f6feb6cc28218b4505ebd3a05250a02140
4
- data.tar.gz: 405ae147644579eb70e84cb0dbf9a3bb9b27cfc5ed144597a08ad5286eb1925f
3
+ metadata.gz: 8a3aea640c5c095314a2a681e4aa83144cfa3438f15ee84a7c6e71c551536b20
4
+ data.tar.gz: e7da1c50d04f2b84379b57e804702353e1d580718698e12a4ff9448a529dff8d
5
5
  SHA512:
6
- metadata.gz: 01aea5b71061b178a252555fa59f828d9f86a89d41d7d58e2a7d58c15cfae40a752eaf6f0858bb3b6e8dc5c224fc8b83c935e1dc3e7d264fab069d24244f6b64
7
- data.tar.gz: 918375276fbc3ef7e735df189f1dfd9821f0473651959a0aad38a7932214f0fc02e0348139ae321c4944ea2ba6f0b7d013cb9ef7a054eb8373c0ab6a8f84cb9b
6
+ metadata.gz: 00ab9cb772d94a8f7d8ae82f0d0fff14d6167cbd8ef844fc698e5f81180b00f39cb3cd1dcd7dc4d74e9fb6f749def9a48ce5fdc797d0e93ab7891587735ca6c4
7
+ data.tar.gz: b847d1a4bbb1b8013caf86988a6e3e055df2294f773c3f2ef849b6a70b7f86ec90e62594e8d36195b01b13ff502206f20dbd730d7616e4b4d3f8eb20e903c642
@@ -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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.165.0"
4
+ VERSION = "0.166.0"
5
5
  end
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.165.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-08 00:00:00.000000000 Z
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport