dependabot-maven 0.154.0 → 0.154.5

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: 5eeb084e2376280fd0393c72129ba81bec97f6dcc9ef4abd1c5e092c37afdae4
4
- data.tar.gz: 406d8f128975efc5b3ff392bd9bd7e8a479e6212c6c6024cb0b58cf53fe47d24
3
+ metadata.gz: b0d6b08bc5f5c644274935652e82753fa7bb978865814da0320f02345eb4176c
4
+ data.tar.gz: a4e45b1192ae096d288acd893a8e5192a8b2a50b24228a19c09426072d715d7b
5
5
  SHA512:
6
- metadata.gz: ee5a3ad51781c5911cdb8b28d3d785bbdc8e7e886ed4b56dac2f5ff310d13a6f369f8b3fa962a0e210a4ad014710fdd17255e8068bebe7bc15f98732cf922beb
7
- data.tar.gz: 0573d0301ecdc06f092119fbc9a8e48e0ac437df08a7a14e9e4c5aecde6e92958ddd534f48be67781aa268dc58e79b5ded319f621b10cdd6681be3008ee8f3a2
6
+ metadata.gz: 42ea6c86b7eab77e0931c4bc037e71d063b132e34e1de91a22b04b9e2ea63196dc78b2c3631a8e824b909c73bb1f544d44f1ed081a8b47565ccd303e5cec77d6
7
+ data.tar.gz: d1441789a049fec180cd646cd7d496ef73a62162996d8301951c406e5ea54bdd82ba77b0c933f6579e325528340859e909190021d8d6e3a45f8dd11e0b3a6c8b
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "nokogiri"
4
4
  require "dependabot/shared_helpers"
5
+ require "dependabot/update_checkers/version_filters"
5
6
  require "dependabot/maven/file_parser/repositories_finder"
6
7
  require "dependabot/maven/update_checker"
7
8
  require "dependabot/maven/version"
@@ -43,7 +44,8 @@ module Dependabot
43
44
  possible_versions = filter_prereleases(possible_versions)
44
45
  possible_versions = filter_date_based_versions(possible_versions)
45
46
  possible_versions = filter_version_types(possible_versions)
46
- possible_versions = filter_vulnerable_versions(possible_versions)
47
+ possible_versions = Dependabot::UpdateCheckers::VersionFilters.filter_vulnerable_versions(possible_versions,
48
+ security_advisories)
47
49
  possible_versions = filter_ignored_versions(possible_versions)
48
50
  possible_versions = filter_lower_versions(possible_versions)
49
51
 
@@ -107,18 +109,6 @@ module Dependabot
107
109
  filtered
108
110
  end
109
111
 
110
- def filter_vulnerable_versions(possible_versions)
111
- versions_array = possible_versions
112
-
113
- security_advisories.each do |advisory|
114
- versions_array =
115
- versions_array.
116
- reject { |v| advisory.vulnerable?(v.fetch(:version)) }
117
- end
118
-
119
- versions_array
120
- end
121
-
122
112
  def filter_lower_versions(possible_versions)
123
113
  return possible_versions unless dependency.version && version_class.correct?(dependency.version)
124
114
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-maven
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.154.0
4
+ version: 0.154.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-15 00:00:00.000000000 Z
11
+ date: 2021-06-22 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.154.0
19
+ version: 0.154.5
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.154.0
26
+ version: 0.154.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement