lib/bundler/audit/cli.rb in bundler-audit-0.1.0 vs lib/bundler/audit/cli.rb in bundler-audit-0.1.1
- old
+ new
@@ -89,11 +89,17 @@
say "Title: ", :red
say advisory.title
end
- say "Patched Versions: ", :red
- say advisory.patched_versions.join(', ')
+ unless advisory.patched_versions.empty?
+ say "Solution: upgrade to ", :red
+ say advisory.patched_versions.join(', ')
+ else
+ say "Solution: ", :red
+ say "remove or disable this gem until a patch is available!", [:red, :bold]
+ end
+
say
end
end
end