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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '01582f4e6af1cd2526988f23545637527bc5bfaf8860bc4c5fd964c71a1da905'
4
- data.tar.gz: 9a2b2d63bb77138f8ef1cd278403c605bdc559b64fceca90ef3a4cce7ef293a6
3
+ metadata.gz: a228900d547d72f07db549728cf5d29e610ac89d623f41ffef4b69903a93692d
4
+ data.tar.gz: 5907cbcfe731accd8c0be129b894e96efd3f4d2ab0407e0d5accd380c46e73c9
5
5
  SHA512:
6
- metadata.gz: 96dcdabb126fe52488da7faa1de7121b092a88bcc06fd30694adeca5d8bb6ccdea9f594f013b42aad916c1c74e6337f40273ceb3923b748bcfb0635a38ff16b6
7
- data.tar.gz: 7154b80c394c70d49930d49c34a03ddfa34e0c1c76d8e9048644836ceca055b6bc64fecd1edeffbf71504e1eb6ed02778d34eef66d5818c7e3657829ba67c23e
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: Dir.exist?(File.join(repo_path, name)) ? "dir" : "file",
248
+ type: type,
240
249
  size: 0 # NOTE: added for parity with github contents API
241
250
  )
242
251
  end.compact
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.156.7"
4
+ VERSION = "0.156.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.156.7
4
+ version: 0.156.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot