lib/bundler/audit/cli.rb in mrjoy-bundler-audit-0.2.1 vs lib/bundler/audit/cli.rb in mrjoy-bundler-audit-0.3.1

- old
+ new

@@ -55,9 +55,17 @@ else say "No unpatched versions found", :green end end + desc 'update', 'Updates the ruby-advisory-db' + def update + say "Updating ruby-advisory-db ..." + + Database.update! + puts "ruby-advisory-db: #{Database.new.size} advisories" + end + desc 'version', 'Prints the bundler-audit version' def version database = Database.new puts "#{File.basename($0)} #{VERSION} (advisories: #{database.size})"