dependabot-python 0.108.0 → 0.108.1

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: 1ffb21785e67528f02c72a891fb61f177ea5864cb9d2c2174c7507cbbf356c19
4
- data.tar.gz: 75c2fc3d3e79226bfc10e0f4fd8fd79171a236e25349e6a7daac4a5cf8b95bef
3
+ metadata.gz: 41e8294ac601f6d0ac6591e89576793206e3e320acbb6280595e5a8900ffda45
4
+ data.tar.gz: 43e17cd7b3b0c1b02404ec7f89dc81357a9661b8fd84a176b67d5acb33e614a7
5
5
  SHA512:
6
- metadata.gz: 8d7afac251a63f0760e6950062c6afcd5d98326420ee810e39cdd09123f4d77f18e3a107c673dd9d0b5aa781d574ba8d99b41e3f40b08b98f74c3d3c83c05c3a
7
- data.tar.gz: ad4aa6e72d35301c29d90cecf5b7a12bf964f88c6842a1011f1fdaf98aa14a5d53be1ba75c4c0433cbf538898abff73804936d40fc5667829edb8714531a7a74
6
+ metadata.gz: ec1855f82ef6dcb2f0af6b3da57ec04c87204383591dbf9ba510dc9479919042923fd6c265d353b6df1a48580cea0f99e052ef721f08bd53f0d6f0ead45855b0
7
+ data.tar.gz: 3fd230cc1164538f6e506eb9dcea7bb70956cd37e31fd0e408ba86c2a8f5d10c004c8f47e8d28dc4b5e8a0d797097741d2c0b309251028e8b8fcf919b7967034
@@ -188,6 +188,7 @@ module Dependabot
188
188
  repo_contents(dir: relative_reqs_dir).
189
189
  select { |f| f.type == "file" }.
190
190
  select { |f| f.name.end_with?(".txt", ".in") }.
191
+ reject { |f| f.size > 100_000 }.
191
192
  map { |f| fetch_file_from_host("#{relative_reqs_dir}/#{f.name}") }.
192
193
  select { |f| requirements_file?(f) }
193
194
  end
@@ -313,6 +314,7 @@ module Dependabot
313
314
  end
314
315
 
315
316
  def requirements_file?(file)
317
+ return false unless file.content.valid_encoding?
316
318
  return true if file.name.match?(/requirements/x)
317
319
 
318
320
  file.content.lines.all? do |line|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.108.0
4
+ version: 0.108.1
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.108.0
19
+ version: 0.108.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.108.0
26
+ version: 0.108.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement