Sha256: b5b7979b5af485caf763f83c980b4cc8b23a579baa8cf5068be181355e19bc80

Contents?: true

Size: 822 Bytes

Versions: 29

Compression:

Stored size: 822 Bytes

Contents

# frozen_string_literal: true

module LicenseFinder
  class Report
    def self.of(dependencies, options)
      new(dependencies, options).to_s
    end

    def initialize(dependencies, options)
      @dependencies = dependencies
      @project_name = options[:project_name]
    end

    private

    attr_reader :dependencies, :project_name

    def sorted_dependencies
      dependencies.sort
    end
  end
end

require 'license_finder/reports/erb_report'
require 'license_finder/reports/csv_report'
require 'license_finder/reports/text_report'
require 'license_finder/reports/diff_report'
require 'license_finder/reports/merged_report'
require 'license_finder/reports/html_report'
require 'license_finder/reports/markdown_report'
require 'license_finder/reports/xml_report'
require 'license_finder/reports/json_report'

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
license_finder-6.9.0 lib/license_finder/report.rb
license_finder-6.8.2 lib/license_finder/report.rb
license_finder-6.8.1 lib/license_finder/report.rb
license_finder-6.8.0 lib/license_finder/report.rb
license_finder-6.7.0 lib/license_finder/report.rb
license_finder-6.6.2 lib/license_finder/report.rb
license_finder-6.6.1 lib/license_finder/report.rb
license_finder-6.6.0 lib/license_finder/report.rb
license_finder-6.5.0 lib/license_finder/report.rb
license_finder-6.4.0 lib/license_finder/report.rb
license_finder-6.3.0 lib/license_finder/report.rb
license_finder-6.2.0 lib/license_finder/report.rb
license_finder-6.1.2 lib/license_finder/report.rb
license_finder-6.1.0 lib/license_finder/report.rb
license_finder-6.0.0 lib/license_finder/report.rb
license_finder-5.11.1 lib/license_finder/report.rb
license_finder-5.11.0 lib/license_finder/report.rb
license_finder-5.10.2 lib/license_finder/report.rb
license_finder-5.10.1 lib/license_finder/report.rb
license_finder-5.10.0 lib/license_finder/report.rb