dependabot-composer 0.148.7 → 0.148.8

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: a613fdb3aa21af55cf74e933adfb52a18efa61bd35e7a3fff5929b08b93231da
4
- data.tar.gz: 641d9ac50c19b3be20ad01e76d586c54fadc300d5db70348173b8d192903bfe0
3
+ metadata.gz: 63a0158c54de172fab190eed3de3b2184b4370d8c71468dd801ba991a5598c96
4
+ data.tar.gz: 8c94e36b34e49d3d31c7777d8b324c0ca4646d02a043ce0e7b054806feb4fd93
5
5
  SHA512:
6
- metadata.gz: ea6d74ff4dfd0a6c7f477447b35b0d7063f5e4dc9912907ece62a9236601f5ae837b2aa599b0fdaf11c0d6eb04b46948413dcf334a07f89a5ef83f006d9ac656
7
- data.tar.gz: 2d39a98f5b398cd6ee7d77a4cf4fa7386ca03e32cb132d604402d4decb897c026e21ec0d9a18cd72e9cec0b426d7a36b38241f9538b66172bc2b0864eec69a02
6
+ metadata.gz: f9546dfb7a5c8bcc0aa64f787c46d652da4781bd73f605cdf82d5771d710e3255ceb0dbef19926b240a3bc4070a9bf3ed93570c75c3166d7e0ef0993db3003e9
7
+ data.tar.gz: 96d24dc6d13a96852621b5ebd86ed7be7c4f83a7ecae52ed9f775f15232d64f64dd281e442c5087fdc69acacab99e1abb176a62d85d238ce441b40eda55fd75a
@@ -37,6 +37,8 @@ module Dependabot
37
37
  VERSION_REGEX = /[0-9]+(?:\.[A-Za-z0-9\-_]+)*/.freeze
38
38
  SOURCE_TIMED_OUT_REGEX =
39
39
  /The "(?<url>[^"]+packages\.json)".*timed out/.freeze
40
+ FAILED_GIT_CLONE_WITH_MIRROR = /Failed to execute git clone --mirror[^']*'(?<url>.*?)'/.freeze
41
+ FAILED_GIT_CLONE = /Failed to clone (?<url>.*?) via/.freeze
40
42
 
41
43
  def initialize(credentials:, dependency:, dependency_files:,
42
44
  requirements_to_unlock:, latest_allowable_version:)
@@ -244,15 +246,11 @@ module Dependabot
244
246
  raise PrivateSourceAuthenticationFailure, "nova.laravel.com"
245
247
  end
246
248
 
247
- if error.message.start_with?("Failed to execute git clone")
248
- dependency_url =
249
- error.message.match(/--mirror '(?<url>.*?)'/).
250
- named_captures.fetch("url")
249
+ if error.message.match?(FAILED_GIT_CLONE_WITH_MIRROR)
250
+ dependency_url = error.message.match(FAILED_GIT_CLONE_WITH_MIRROR).named_captures.fetch("url")
251
251
  raise Dependabot::GitDependenciesNotReachable, dependency_url
252
- elsif error.message.start_with?("Failed to clone")
253
- dependency_url =
254
- error.message.match(/Failed to clone (?<url>.*?) via/).
255
- named_captures.fetch("url")
252
+ elsif error.message.match?(FAILED_GIT_CLONE)
253
+ dependency_url = error.message.match(FAILED_GIT_CLONE).named_captures.fetch("url")
256
254
  raise Dependabot::GitDependenciesNotReachable, dependency_url
257
255
  elsif unresolvable_error?(error)
258
256
  raise Dependabot::DependencyFileNotResolvable, sanitized_message
@@ -304,13 +302,10 @@ module Dependabot
304
302
  nil
305
303
  elsif error.message.include?("URL required authentication") ||
306
304
  error.message.include?("403 Forbidden")
307
- source =
308
- error.message.match(%r{https?://(?<source>[^/]+)/}).
309
- named_captures.fetch("source")
305
+ source = error.message.match(%r{https?://(?<source>[^/]+)/}).named_captures.fetch("source")
310
306
  raise Dependabot::PrivateSourceAuthenticationFailure, source
311
307
  elsif error.message.match?(SOURCE_TIMED_OUT_REGEX)
312
- url = error.message.match(SOURCE_TIMED_OUT_REGEX).
313
- named_captures.fetch("url")
308
+ url = error.message.match(SOURCE_TIMED_OUT_REGEX).named_captures.fetch("url")
314
309
  raise if url.include?("packagist.org")
315
310
 
316
311
  source = url.gsub(%r{/packages.json$}, "")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.148.7
4
+ version: 0.148.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.148.7
19
+ version: 0.148.8
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.148.7
26
+ version: 0.148.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement