dependabot-python 0.145.0 → 0.146.0

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: c1ddaf11dd75f70f5492a471ac28fef268cbc382ed9cbc701556cbffcf509084
4
- data.tar.gz: b8e14570178b2d2baeba62564c6c2c4d548611e91364f9ee3f013ac0311ac298
3
+ metadata.gz: c9d53c9398976003bffddf68fe254ced4c2578732b8c4a016d0a4be088755553
4
+ data.tar.gz: 68d566e3f234d177ffd7fc478a03bd872a5f5eb5500a0e5584b98fe94ce12b2a
5
5
  SHA512:
6
- metadata.gz: 430a572237e8a7ba4f9ba63ec5bb12025e5c2fcf0ef52df21f898522828aed517808c1cfaf55a316addb37be6be6c3e2a85f0b50fe9d64381ae30f52ff6ae15c
7
- data.tar.gz: 1b41b62bfacf9a00ce94c0dd213caeebc99a1846cbd53631f74fafdb9cb7ce3db8036bbd6cf5b3ce2c6ed244b62eedf03ec1676b5cc3a641c26fe66479c438ba
6
+ metadata.gz: 63a49e6df53275d67c67a03fb9fb81db8e854d70be5eae447bb51d038ce1b26d11c876c4b4baf33aa92c79774c508d0a8616ea48fd18e3b66d17d8c8033166f9
7
+ data.tar.gz: bffd02971ca41f3b73e443a452067c44ec1c8735a522e027669d89032279af10d7ba79a966dff2c877ce40f7b085dce00aa449cfc7016ae00d8f7e502077630b
@@ -15,6 +15,7 @@ from pip._internal.req.constructors import (
15
15
  # https://github.com/pypa/pip/blob/0bb3ac87f5bb149bd75cceac000844128b574385/src/pip/_internal/req/req_file.py#L35
16
16
  COMMENT_RE = re.compile(r'(^|\s+)#.*$')
17
17
 
18
+
18
19
  def parse_requirements(directory):
19
20
  # Parse the requirements.txt
20
21
  requirement_packages = []
@@ -101,7 +101,9 @@ module Dependabot
101
101
  def filter_ignored_versions(versions_array)
102
102
  filtered = versions_array.
103
103
  reject { |v| ignore_requirements.any? { |r| r.satisfied_by?(v) } }
104
- raise Dependabot::AllVersionsIgnored if @raise_on_ignored && filtered.empty? && versions_array.any?
104
+ if @raise_on_ignored && filter_lower_versions(filtered).empty? && filter_lower_versions(versions_array).any?
105
+ raise Dependabot::AllVersionsIgnored
106
+ end
105
107
 
106
108
  filtered
107
109
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.145.0
4
+ version: 0.146.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-05 00:00:00.000000000 Z
11
+ date: 2021-05-11 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.145.0
19
+ version: 0.146.0
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.145.0
26
+ version: 0.146.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.13.0
103
+ version: 1.14.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.13.0
110
+ version: 1.14.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement