Class: LicenseFinder::MergedReport

Inherits:
CsvReport show all
Defined in:
lib/license_finder/reports/merged_report.rb

Constant Summary collapse

AVAILABLE_COLUMNS =
AVAILABLE_COLUMNS + ['aggregate_paths']

Constants inherited from CsvReport

CsvReport::COMMA_SEP, CsvReport::MISSING_DEPENDENCY_TEXT, CsvReport::NEWLINE_SEP

Instance Method Summary collapse

Methods inherited from CsvReport

#to_s

Methods inherited from Report

of

Constructor Details

#initialize(dependencies, options = {}) ⇒ MergedReport

Returns a new instance of MergedReport.



5
6
7
8
9
10
# File 'lib/license_finder/reports/merged_report.rb', line 5

def initialize(dependencies, options = {})
  options=options.dup
  options[:columns] ||= %w[name version licenses aggregate_paths]

  super(dependencies, options)
end

Instance Method Details

#format_aggregate_paths(merged_dep) ⇒ Object



12
13
14
# File 'lib/license_finder/reports/merged_report.rb', line 12

def format_aggregate_paths(merged_dep)
  merged_dep.aggregate_paths.join(self.class::COMMA_SEP)
end