Implement lesser? method #862

This commit is contained in:
ethicalhack3r
2015-09-08 17:54:32 +02:00
parent a4a14c7e63
commit 2208f2a8c0
5 changed files with 156 additions and 25 deletions

View File

@@ -10,11 +10,6 @@ class WpItem
!readme_url.nil?
end
# @return [ Boolean ]
def outdated?(installed_version, latest_version)
installed_version < latest_version
end
# @return [ String,nil ] The url to the readme file, nil if not found
def readme_url
# See https://github.com/wpscanteam/wpscan/pull/737#issuecomment-66375445