class Licensee::Project::Readme
Constants
- CONTENT_REGEX
- SCORES
Public Class Methods
license_content(content)
click to toggle source
# File lib/licensee/project_files/readme.rb, line 28 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.rb, line 21 def self.name_score(filename) SCORES.each do |pattern, score| return score if pattern =~ filename end 0.0 end