dependabot-composer 0.98.24 → 0.98.25
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 +4 -4
- data/lib/dependabot/composer/file_fetcher.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0dfd34af1015e5a0214efdf3202cf8d13f79595eb81a9c4a39852310a2f8fc9
|
|
4
|
+
data.tar.gz: e4202b3932d6a3c78a874b39b50a2c41d5bda3426c2f764d55443d5a74c2e32f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e0c475ba01b24f500d13a5f7fd142d22acbadfd0d174163e08302785ea17cf8a31978a867c265f2148ad5ca88eee770e71af752bf4c38b5ef610b075ae244ba
|
|
7
|
+
data.tar.gz: 242e6441aae747fa81a11888b79275c315f3aacf5ed97d9de6dd35a5648b145a0c3b855cf01715a2f0c8cb3c2dbe03b2b052020e34bb8f0e3caee3860a12ba6a
|
|
@@ -110,7 +110,7 @@ module Dependabot
|
|
|
110
110
|
# If the directory isn't found at the full path, try looking for it
|
|
111
111
|
# at the root of the repository.
|
|
112
112
|
depth = directory.gsub(%r{^/}, "").gsub(%r{/$}, "").split("/").count
|
|
113
|
-
dir = "../" * depth + path.gsub(/\*$/, "")
|
|
113
|
+
dir = "../" * depth + path.gsub(/\*$/, "").gsub(/^\.*/, "")
|
|
114
114
|
|
|
115
115
|
repo_contents(dir: dir).
|
|
116
116
|
select { |file| file.type == "dir" }.
|
|
@@ -126,7 +126,8 @@ module Dependabot
|
|
|
126
126
|
# If the file isn't found at the full path, try looking for it
|
|
127
127
|
# without considering the directory (i.e., check if the path should
|
|
128
128
|
# have been relevative to the root of the repository).
|
|
129
|
-
cleaned_filename =
|
|
129
|
+
cleaned_filename = filename.gsub(/^\./, "")
|
|
130
|
+
cleaned_filename = Pathname.new(cleaned_filename).cleanpath.to_path
|
|
130
131
|
|
|
131
132
|
DependencyFile.new(
|
|
132
133
|
name: cleaned_filename,
|
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.98.
|
|
4
|
+
version: 0.98.25
|
|
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.98.
|
|
19
|
+
version: 0.98.25
|
|
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.98.
|
|
26
|
+
version: 0.98.25
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: byebug
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|