Class: LicenseFinder::MergedReport

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

Constant Summary collapse

AVAILABLE_COLUMNS =
AVAILABLE_COLUMNS + ['subproject_paths']

Constants inherited from CsvReport

CsvReport::COMMA_SEP, CsvReport::MISSING_DEPENDENCY_TEXT

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
# File 'lib/license_finder/reports/merged_report.rb', line 5

def initialize(dependencies, options = {})
  options[:columns] ||= %w(name version licenses subproject_paths)
  super(dependencies, options)
end

Instance Method Details

#format_subproject_paths(merged_dep) ⇒ Object



10
11
12
# File 'lib/license_finder/reports/merged_report.rb', line 10

def format_subproject_paths(merged_dep)
  merged_dep.subproject_paths.join(self.class::COMMA_SEP)
end