Sha256: 77949204e978079cd1a11e1d9bc500f8cbeb049eb71cefff2cfff809a190032e

Contents?: true

Size: 418 Bytes

Versions: 7

Compression:

Stored size: 418 Bytes

Contents

require 'csv'

module LicenseFinder
  class DetailedTextReport < DependencyReport
    def to_s
      CSV.generate(col_sep: ",") do |csv|
        sorted_dependencies.each do |s|
          csv << [
            s.name,
            s.version,
            s.license.name,
            s.summary ? s.summary.strip : "",
            s.description ? s.description.strip : ""
          ]
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
license_finder-1.1.1-java lib/license_finder/reports/detailed_text_report.rb
license_finder-1.1.1 lib/license_finder/reports/detailed_text_report.rb
license_finder-1.1.0 lib/license_finder/reports/detailed_text_report.rb
license_finder-1.0.1 lib/license_finder/reports/detailed_text_report.rb
license_finder-1.0.0.1 lib/license_finder/reports/detailed_text_report.rb
license_finder-1.0.0.0 lib/license_finder/reports/detailed_text_report.rb
license_finder-1.0.0.0-java lib/license_finder/reports/detailed_text_report.rb