lib/nexpose/vulnerability.rb in dradis-nexpose-4.10.0 vs lib/nexpose/vulnerability.rb in dradis-nexpose-4.11.0

- old
+ new

@@ -18,12 +18,12 @@ # List of supported tags. They can be attributes, simple descendans or # collections (e.g. <references/>, <tags/>) def supported_tags [ # attributes - :nexpose_id, :title, :severity, :pci_severity, :cvss_score, :cvss_vector, - :published, :added, :modified, + :added, :cvss_score, :cvss_vector, :modified, :nexpose_id, :pci_severity, + :published, :risk_score, :severity, :title, # simple tags :description, :solution, # multiple tags @@ -62,9 +62,10 @@ # First we try the attributes. In Ruby we use snake_case, but in XML # CamelCase is used for some attributes translations_table = { :nexpose_id => 'id', :pci_severity => 'pciSeverity', + :risk_score => 'riskScore', :cvss_score => 'cvssScore', :cvss_vector =>'cvssVector' } method_name = translations_table.fetch(method, method.to_s)