Better version output #862

This commit is contained in:
ethicalhack3r
2015-09-08 17:24:10 +02:00
parent aa464b476c
commit a4a14c7e63
3 changed files with 24 additions and 2 deletions

View File

@@ -10,6 +10,11 @@ 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