From ac9647d2b2362f9479d0ceee731cd56914bf32ca Mon Sep 17 00:00:00 2001 From: Peter van der Laan Date: Tue, 29 Oct 2013 13:42:40 +0100 Subject: [PATCH] Output the vulnerability fix if available It just shows if there is a vulnerability fix. It doesn't check if the fix matches with the current plugin version. So you should check manually if you need to upgrade or not. --- lib/common/models/vulnerability/output.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/common/models/vulnerability/output.rb b/lib/common/models/vulnerability/output.rb index a910cb1d..1a71051b 100644 --- a/lib/common/models/vulnerability/output.rb +++ b/lib/common/models/vulnerability/output.rb @@ -14,7 +14,9 @@ class Vulnerability puts ' | ' + red("* Reference: #{url}") if url end end - end - + if !fixed_in.empty? + puts " | * Fixed in: #{fixed_in}" + end + end end end