dependabot-maven 0.154.3 → 0.156.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: 25971b3fb99e69096ca3145d0aa3aabdc91f9ccdd972957906489dc7e985beb4
4
- data.tar.gz: 578b973a08261e2595aca8f1b09249839e02413e0d6d367938af38c28cf1978e
3
+ metadata.gz: 397834bcc624f32fe3e64b6aadb46733fbcf1724ffcc04ab93839ead558b255b
4
+ data.tar.gz: 83934569c012d656cdc3ae1bf59ea78a2b0860fec169bf98c8c321f5c92ff7fe
5
5
  SHA512:
6
- metadata.gz: fbd3644ce02c8475364e1e08527d48c5d3f9ac04986fcbaa62ab9da0fd763d85f27d61376d2e5d9dc0d50412e201ea9868ea398dd257fb2fd23a768b62422313
7
- data.tar.gz: 8849832a73ed35013042921cdb4f0c4900f7bfbef13591cc3e329ae0665af32a418d86fc21b54fb04692ab65f8fe770966cdf565776d000d2cfc2d6139fa4e30
6
+ metadata.gz: 37a7542e15ff370bed475342257915842761642bcc9432d4faef47613facf23dde43575079d11170a2b4c630bf840757b740f618f3c2042d0607fe6c552bdc62
7
+ data.tar.gz: a7be6d8eb7eb028fd02536cb7e7e3c405caa41623e1f7f489915fda63ae647be0b9552e0b99680f440b72c0f5c217fbb72cdd565b9b68ac87dcb8d764c5e00e0
@@ -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.3
4
+ version: 0.156.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-06-21 00:00:00.000000000 Z
11
+ date: 2021-06-23 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.3
19
+ version: 0.156.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.154.3
26
+ version: 0.156.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement