class Licensee::ProjectFiles::ReadmeFile

Constants

CONTENT_REGEX
EXTENSIONS
SCORES
TITLE_REGEX
UNDERLINE_REGEX

Public Class Methods

license_content(content) click to toggle source
# File lib/licensee/project_files/readme_file.rb, line 43
def self.license_content(content)
  match = CONTENT_REGEX.match(content)
  match[1].strip if match
end
name_score(filename) click to toggle source
# File lib/licensee/project_files/readme_file.rb, line 36
def self.name_score(filename)
  SCORES.each do |pattern, score|
    return score if pattern =~ filename
  end
  0.0
end

Public Instance Methods

possible_matchers() click to toggle source
# File lib/licensee/project_files/readme_file.rb, line 32
def possible_matchers
  super.push(Matchers::Reference)
end