dependabot-composer 0.305.0 → 0.308.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: e8cf83dff0ec628783dcf7ec7c9213b172c4b73b95f29f22c74360766e06fedb
|
4
|
+
data.tar.gz: a5a7275d8226e18617c650554e1f3260ff6c5d311de4de575725471a1e85fa5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82504108facc90a27aa88fc5274634b75095c9ad21f2aaae9996ad166c0021d64df43bffa8468eba5a8d6f96dd5bab7ecf5e26086edc660d6c4e8cc6dfd5bbe0
|
7
|
+
data.tar.gz: 791e9ef944a5c1352246ae1663309cda79d62cd04a7da42f39601a092abaf91ee4c635c64b14dcb429655f104d97d11400ec150a50da1117989648fc2cdd295c
|
@@ -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,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.308.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
10
|
+
date: 2025-04-12 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: dependabot-common
|
@@ -16,14 +15,14 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - '='
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.308.0
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - '='
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
25
|
+
version: 0.308.0
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
27
|
name: debug
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -280,8 +279,7 @@ licenses:
|
|
280
279
|
- MIT
|
281
280
|
metadata:
|
282
281
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
283
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
284
|
-
post_install_message:
|
282
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.308.0
|
285
283
|
rdoc_options: []
|
286
284
|
require_paths:
|
287
285
|
- lib
|
@@ -296,8 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
296
294
|
- !ruby/object:Gem::Version
|
297
295
|
version: 3.1.0
|
298
296
|
requirements: []
|
299
|
-
rubygems_version: 3.
|
300
|
-
signing_key:
|
297
|
+
rubygems_version: 3.6.3
|
301
298
|
specification_version: 4
|
302
299
|
summary: Provides Dependabot support for PHP (composer)
|
303
300
|
test_files: []
|