dependabot-composer 0.203.0 → 0.205.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/composer/file_fetcher.rb +19 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b6048d264d8d8bc4e96466dac9e5411c34cf5da507400f673303cb778594e42
|
4
|
+
data.tar.gz: 03b0795055483a25beee34fac7620524be5798d089615b54f51b6d888efb7577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cc2fc68199781a5eae0b9deff558be7a8fe8587b4a438400de9cf43ab399795dd0efb5c12410df55fbe7b57133bb1192af8b339dfc25513201580004ceab991
|
7
|
+
data.tar.gz: adb8cb814f2d128d2906ea58052d67a2e0e9356cad6d6342d8b55955802ee53bfd3be47d0eea009bf5fb182eb38085c0b7e4df3df5f6abe67c2899b240953666
|
@@ -103,9 +103,25 @@ module Dependabot
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def expand_path(path)
|
106
|
-
|
107
|
-
|
108
|
-
|
106
|
+
wildcard_depth = 0
|
107
|
+
path = path.gsub(/\*$/, "")
|
108
|
+
while path.end_with?("*/")
|
109
|
+
path = path.gsub(%r{\*/$}, "")
|
110
|
+
wildcard_depth += 1
|
111
|
+
end
|
112
|
+
directories = repo_contents(dir: path).
|
113
|
+
select { |file| file.type == "dir" }.
|
114
|
+
map { |f| File.join(path, f.name) }
|
115
|
+
|
116
|
+
while wildcard_depth.positive?
|
117
|
+
directories.each do |dir|
|
118
|
+
directories += repo_contents(dir: dir).
|
119
|
+
select { |file| file.type == "dir" }.
|
120
|
+
map { |f| File.join(dir, f.name) }
|
121
|
+
end
|
122
|
+
wildcard_depth -= 1
|
123
|
+
end
|
124
|
+
directories
|
109
125
|
rescue Octokit::NotFound, Gitlab::Error::NotFound
|
110
126
|
lockfile_path_dependency_paths.
|
111
127
|
select { |p| p.to_s.start_with?(path.gsub(/\*$/, "")) }
|
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.205.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-08 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.205.1
|
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.205.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debase
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
285
|
- !ruby/object:Gem::Version
|
286
286
|
version: 2.7.0
|
287
287
|
requirements: []
|
288
|
-
rubygems_version: 3.
|
288
|
+
rubygems_version: 3.1.6
|
289
289
|
signing_key:
|
290
290
|
specification_version: 4
|
291
291
|
summary: PHP (Composer) support for dependabot
|