dependabot-common 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 +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: 29784de7cf9f3259f4609baf0c204e2ccda7376442e16f6646f1777666ae4b9d
|
4
|
+
data.tar.gz: a1f65677de7e75cdd27e2fabebe5cb10ce789674e60e669b996c94c9a1231f70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcb516edc2caff94638f57d082638c86a148557eba5a7764eb1d6965e0f9f703a8ae747e586cd571da0ed67d8e8b8f04282109927a19ec89d37f9d37142237bb
|
7
|
+
data.tar.gz: d1892a7de0bef8bd47a50b92561ee72cfa1716ccdae29ca6202b75d862eb2c4293802d5c4778d60420760d5123e2985ecf758d43ee6e34f4f1e4f61db84b7469
|
@@ -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.
|
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-
|
11
|
+
date: 2021-06-23 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
|