Removes support for Ruby 2.4 as EOL

This commit is contained in:
erwanlr
2020-04-12 18:21:23 +02:00
parent c362527903
commit 57c6c2d471
6 changed files with 23 additions and 29 deletions

View File

@@ -68,11 +68,9 @@ module WPScan
extracted_versions = extracted_versions.select { |x| x =~ /[0-9]+/ }
sorted = extracted_versions.sort do |x, y|
begin
Gem::Version.new(x) <=> Gem::Version.new(y)
rescue StandardError
0
end
Gem::Version.new(x) <=> Gem::Version.new(y)
rescue StandardError
0
end
sorted.last