dependabot-composer 0.305.0 → 0.306.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ba29c7692c42a1236de82e5fb3ab8748f284b5381f2c389243ca846c04bbc94
|
4
|
+
data.tar.gz: 0a5aace9e512d0fbe3641763d03a42936e0e28df1f2f08fc04e842d48c2c44c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6adb479e65085d626a0efc7b1dc4f53cbd1303729a261179db093760ea8ff863c347e4530ca7bd09bb1063480245be150b2903220e732c00f399d538628924b3
|
7
|
+
data.tar.gz: 1f0b0f8c17153be17b6ffb1e551f27c0e1b24cdd99a7c3dcb067ea801b80f903d9c0a843e10f36319981dc5732ab2dbd9363d3945a9fa36d4604741dc7782cdd
|
@@ -37,8 +37,9 @@ module Dependabot
|
|
37
37
|
(?<=require\s)php(?:\-[^\s\/]+)?\s.*?\s(?=->) # composer v2
|
38
38
|
}x
|
39
39
|
VERSION_REGEX = /[0-9]+(?:\.[A-Za-z0-9\-_]+)*/
|
40
|
-
|
41
|
-
|
40
|
+
|
41
|
+
# Example Timeout error from Composer 2.7.7: "curl error 28 while downloading https://example.com:81/packages.json: Failed to connect to example.com port 81 after 9853 ms: Connection timed out" # rubocop:disable Layout/LineLength
|
42
|
+
SOURCE_TIMED_OUT_REGEX = %r{curl error 28 while downloading (?<url>https?://.+/packages\.json): }
|
42
43
|
|
43
44
|
def initialize(credentials:, dependency:, dependency_files:,
|
44
45
|
requirements_to_unlock:, latest_allowable_version:)
|
@@ -263,8 +264,16 @@ module Dependabot
|
|
263
264
|
# league/csv 9.21.0 requires php ^8.1.2 -> your php version 8.1
|
264
265
|
if error.message.include?("your php version")
|
265
266
|
tool_name = "PHP"
|
266
|
-
|
267
|
-
|
267
|
+
# Match for the detected PHP version
|
268
|
+
detected_version_match =
|
269
|
+
error.message.match(/your php version \((\d+\.\d+\.\d+)\)/) ||
|
270
|
+
error.message.match(/your php version \((.*?)\s*;/)
|
271
|
+
detected_version = detected_version_match ? detected_version_match[1] : nil
|
272
|
+
|
273
|
+
# Match for the supported PHP versions
|
274
|
+
supported_versions_match = error.message.match(/requires php\s(.*?)\s->/)
|
275
|
+
supported_versions = supported_versions_match ? supported_versions_match[1] : nil
|
276
|
+
|
268
277
|
raise ToolVersionNotSupported.new(tool_name, detected_version, supported_versions)
|
269
278
|
end
|
270
279
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.306.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.306.0
|
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.
|
26
|
+
version: 0.306.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -280,7 +280,7 @@ licenses:
|
|
280
280
|
- MIT
|
281
281
|
metadata:
|
282
282
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
283
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
283
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.306.0
|
284
284
|
post_install_message:
|
285
285
|
rdoc_options: []
|
286
286
|
require_paths:
|