dependabot-maven 0.154.1 → 0.155.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: 868ff94976969e6e989fa730d1be019ce48c27566ce1d732044cece5a281e158
4
- data.tar.gz: 49bc594a30463fba30a82613de0deb0102c652e6e89ce8d564d95b78775764f1
3
+ metadata.gz: 555355298c28266e728988e39d85bb52d016351cffcee60bd28da40202872af9
4
+ data.tar.gz: 811ba8724fadf53682380c4756eb3acb20d903d560c0fdf15b966f78ed023caa
5
5
  SHA512:
6
- metadata.gz: 96f37fcd25129342a2afd6813fabf56368b2bd280a955fbfcbcf8d2fdbc2ee79f4103923f2dc4c337e1c424ab82054f57601fdd06952d83af012bdf2164f2670
7
- data.tar.gz: 704846d2e3aa82c5a845f48f755d5365435a768fd074aaa887c92540175a79d118a0a646650fb3d3d60aedf6184b01f83b5bbe06546f244a43e467aa73d94694
6
+ metadata.gz: 44b87cab2683cae17cda874b222c21497f82d7b13fb329187c3ab6d489c39ed4a5e8481f4cd9b12b037b9561d469f7895dc6a4a44c9a1fe3a208348c155be526
7
+ data.tar.gz: aed4f139dc617b07a5edc8316aecb8222db7d8aa25ba4aabcbe15f7bc3b96dfdab707fc82aa35df4a4d7a02810ebc70bdcdbbfeb9e969c1434a642773f497057
@@ -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.1
4
+ version: 0.155.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-16 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.1
19
+ version: 0.155.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.1
26
+ version: 0.155.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement