Implemented Erwan's feedback

This commit is contained in:
ethicalhack3r
2014-07-31 11:14:22 +02:00
parent 14be7dead5
commit 08dfa4cab2
5 changed files with 16 additions and 80 deletions

View File

@@ -9,7 +9,6 @@ class WpItem
#
# @return [ Vulnerabilities ]
def vulnerabilities
# xml = xml(vulns_file)
json = json(vulns_file)
vulnerabilities = Vulnerabilities.new
@@ -24,13 +23,6 @@ class WpItem
end
end
# xml.xpath(vulns_xpath).each do |node|
# vuln = Vulnerability.load_from_xml_node(node)
# if vulnerable_to?(vuln)
# vulnerabilities << vuln
# end
# end
vulnerabilities
end
@@ -55,4 +47,9 @@ class WpItem
end
end
# @return [ String ]
def identifier
@name
end
end