dependabot-common 0.156.7 → 0.156.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/file_fetchers/base.rb +10 -1
- data/lib/dependabot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a228900d547d72f07db549728cf5d29e610ac89d623f41ffef4b69903a93692d
|
4
|
+
data.tar.gz: 5907cbcfe731accd8c0be129b894e96efd3f4d2ab0407e0d5accd380c46e73c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e541559edf31b7567d2b3f84277ae1db8bad6c3675f12e1ba1286c285f6a679920f3f56e0128394aecb50f4a491cba3e754349235e59d0d02334a39b62adc2e
|
7
|
+
data.tar.gz: a31eda6e8d5d4fab9e7bf1c602532b1bf3f8b63935c18e1ded6432096884aaac249e6a478cad5ac83f79f69b95c8945511fc6c205162e811004fc6ce51ebba65
|
@@ -233,10 +233,19 @@ module Dependabot
|
|
233
233
|
Dir.entries(repo_path).map do |name|
|
234
234
|
next if [".", ".."].include?(name)
|
235
235
|
|
236
|
+
absolute_path = File.join(repo_path, name)
|
237
|
+
type = if File.symlink?(absolute_path)
|
238
|
+
"symlink"
|
239
|
+
elsif Dir.exist?(absolute_path)
|
240
|
+
"dir"
|
241
|
+
else
|
242
|
+
"file"
|
243
|
+
end
|
244
|
+
|
236
245
|
OpenStruct.new(
|
237
246
|
name: name,
|
238
247
|
path: Pathname.new(File.join(relative_path, name)).cleanpath.to_path,
|
239
|
-
type:
|
248
|
+
type: type,
|
240
249
|
size: 0 # NOTE: added for parity with github contents API
|
241
250
|
)
|
242
251
|
end.compact
|
data/lib/dependabot/version.rb
CHANGED