dependabot-common 0.154.3 → 0.154.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/update_checkers/version_filters.rb +19 -0
- data/lib/dependabot/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db112d90ccd776ed7e343b38e963fa9612bf4e5b814e6a9c4a5867aea1a3c32b
|
4
|
+
data.tar.gz: 414df7ccf9cca26acf0d9eb2d95341657b27b0b635662ce001b059fd19cbbb09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 613c7b103e9184a4b53f20abf6b9ddb8089642d5beb5036908d8429bfc68e6215115d575ac6162172be2910063d432004d25e10841457119ba65e7e3060870e3
|
7
|
+
data.tar.gz: ddb0f753e6b5039f4103378c45abc9981e9607ca33b2da31274c5b22a934cd1e19fc8bae4a7f47e682ccff54f1f6fa8e64fe55d5e6e7b2d8aa32fde6b1ad1d9d
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Dependabot
|
4
|
+
module UpdateCheckers
|
5
|
+
module VersionFilters
|
6
|
+
def self.filter_vulnerable_versions(versions_array, security_advisories)
|
7
|
+
versions_array.reject do |v|
|
8
|
+
security_advisories.any? do |a|
|
9
|
+
if v.is_a?(Gem::Version)
|
10
|
+
a.vulnerable?(v)
|
11
|
+
else
|
12
|
+
a.vulnerable?(v.fetch(:version))
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/dependabot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.154.
|
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-
|
11
|
+
date: 2021-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -446,6 +446,7 @@ files:
|
|
446
446
|
- lib/dependabot/update_checkers.rb
|
447
447
|
- lib/dependabot/update_checkers/README.md
|
448
448
|
- lib/dependabot/update_checkers/base.rb
|
449
|
+
- lib/dependabot/update_checkers/version_filters.rb
|
449
450
|
- lib/dependabot/utils.rb
|
450
451
|
- lib/dependabot/version.rb
|
451
452
|
- lib/rubygems_version_patch.rb
|