dependabot-maven 0.153.0 → 0.154.4

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: dd0e467d494dfbd4ed422490f4fc5aae3fb619bd1c23435e537546e9c00eeac6
4
- data.tar.gz: 80cb93b4316a3bf2277d1cb3a6245aee38e7fc17afc969708565dacee5ae6253
3
+ metadata.gz: 6399044de3046afe8246cb31a6e93dfb31f69b42d92c03cd62be833216dbd425
4
+ data.tar.gz: f5bcda3632f9a685a5e438da62ada49cb31e4d97d58159c78d6fcb96b5b02fc3
5
5
  SHA512:
6
- metadata.gz: 31752448433afdf490767174edb7dbbf164c9601bd2bcf0014e538aa5ba3c8ac61f592d768c1e77749c7c6db640da1bb5d1c90a686f9cef9eea3fb953f6c9307
7
- data.tar.gz: e2050fe578201610d35c7c2ab58a2291b80885645bab3f49f208ccf35d24d638df1cd8d27d3048aa738eea64c978b84f5986c527025a901130308884ea4fcd8b
6
+ metadata.gz: 5e81fb1f64410b82a58ab6534187a046322985a2033a05923bb715481fb1c649bcc8c484fc5d4ce1a04320d8cb00a28071b3f381118b0d2a03771a275bc9eccb
7
+ data.tar.gz: 7046291d924cd5df2c18a277a5b41c45458e5a280d0db2cfbb7026836f6c6a62d30ed935c673caabd9c19845038605ab21e61f6677795018c45466fb7f52428e
@@ -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.153.0
4
+ version: 0.154.4
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-14 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.153.0
19
+ version: 0.154.4
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.153.0
26
+ version: 0.154.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement