lib/licensed/reporters/reporter.rb
# Generate a report for a licensed dependency
# Yields a report object which can be used to view or add
# data generated for this dependency
#
# dependency - An application dependency
#
# Returns the result of the yielded method
# Note - must be called from inside the `report_source` scope
Generate a report for a licensed dependency
Yields a report object which can be used to view or add
data generated for this dependency

An application dependency

Returns the result of the yielded method
Note - must be called from inside the `report_source` scope
Generate a report for a licensed dependency Yields a report object which can be used to view or add data generated for this dependency An application dependency Returns the result of the yielded method Note - must be called from inside the ` report_source ` scope
def report_dependency(dependency)
        raise ReportingError.new("Call report_source before report_dependency") if @source_report.nil?
        dependency_report = Report.new(name: [@source_report.name, dependency.name].join("."), target: dependency)
        @source_report.reports << dependency_report
        yield dependency_report
      end
def report_dependency ( dependency ) raise ReportingError . new ( "Call report_source before report_dependency" ) if @source_report . nil? dependency_report = Report . new ( name : [ @source_report . name , dependency . name ] . join ( "." ) , target : dependency ) @source_report . reports << dependency_report yield dependency_report end
Generate a report for a licensed dependency
Yields a report object which can be used to view or add
data generated for this dependency
Generate a report for a licensed dependency Yields a report object which can be used to view or add data generated for this dependency
dependency
<not_specific>