lib/spandx/cli/printers/table.rb in spandx-0.16.0 vs lib/spandx/cli/printers/table.rb in spandx-0.16.1

- old
+ new

@@ -6,17 +6,17 @@ class Table < Printer HEADINGS = ['Name', 'Version', 'Licenses', 'Location'].freeze def initialize(output: $stderr) @spinner = TTY::Spinner.new('[:spinner] Scanning...', output: output, clear: true, format: :dots) - @spinner.auto_spin end def match?(format) format.to_sym == :table end def print_header(_io) + @spinner.auto_spin @dependencies = SortedSet.new end def print_line(dependency, _io) @dependencies << dependency