lib/bundler/audit/cli.rb in bundler-audit-0.3.1 vs lib/bundler/audit/cli.rb in bundler-audit-0.4.0
- old
+ new
@@ -1,7 +1,7 @@
#
-# Copyright (c) 2013-2014 Hal Brodigan (postmodern.mod3 at gmail.com)
+# Copyright (c) 2013-2015 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# bundler-audit is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@@ -47,14 +47,14 @@
print_advisory result.gem, result.advisory
end
end
if vulnerable
- say "Unpatched versions found!", :red
+ say "Vulnerabilities found!", :red
exit 1
else
- say "No unpatched versions found", :green
+ say "No vulnerabilities found", :green
end
end
desc 'update', 'Updates the ruby-advisory-db'
def update
@@ -88,10 +88,15 @@
say "Version: ", :red
say gem.version
say "Advisory: ", :red
- say advisory.id
+
+ if advisory.cve
+ say "CVE-#{advisory.cve}"
+ elsif advisory.osvdb
+ say advisory.osvdb
+ end
say "Criticality: ", :red
case advisory.criticality
when :low then say "Low"
when :medium then say "Medium", :yellow