dependabot-maven 0.154.2 → 0.155.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: 0aabf6351b7e1d9ad5cb5d383965fa573d95dfc9e447e1c90799c7f8eda92811
4
- data.tar.gz: '009f61e4a21a8de02155ab6a053fb9ed93db03f1ce651542a659b5b95a46af7d'
3
+ metadata.gz: 81d04eb91efbee7e3b673f00f16e9f8f85ebe789b03afd9f74e2abe85fcccecf
4
+ data.tar.gz: bcee568eddc1651d27092fbe494aa8f9e2929a3fbd26157eb7873984b73426bb
5
5
  SHA512:
6
- metadata.gz: 9ed91eb749692511a58f2103f72aa29e5e9c7eb5a974a4085e106e55a2a6124bb42c423970117c344b2d6717e5758642e0c46922002f352896a5758b80154adb
7
- data.tar.gz: 79ab36d859721fc203b0005738c2e55dc6481e054dd91d4c0d1321b85bde00add6214e62bb5514dffdefa6c3488098e2be076ce42118fdb03274e6401042b1d4
6
+ metadata.gz: 795faa7666428c64137b1230feeeb5dc182a679a3eb10feaa16619299ba6c9be0b544dfe5749098d20eadb056332e5a4cfaad21c741e248ae752b88547a6994c
7
+ data.tar.gz: 8922ba25411d320cb4ed679d4b321e6dc5f7a12b37cf102f78a94375a87110d92bc847c87fe4468abc3046ca57401fdcc3bba1870b5d5292093bb515264889b9
@@ -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.2
4
+ version: 0.155.1
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-17 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.2
19
+ version: 0.155.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.154.2
26
+ version: 0.155.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement