lib/licensee/project_files/license_file.rb in licensee-8.3.1 vs lib/licensee/project_files/license_file.rb in licensee-8.4.0
- old
+ new
@@ -18,8 +18,13 @@
return 0.8 if filename =~ /\Acopy(ing|right)(\.[^.]+)?\z/i
return 0.7 if filename =~ /\A(un)?licen[sc]e\.[^.]+\z/i
return 0.5 if filename =~ /licen[sc]e/i
0.0
end
+
+ # case-insensitive block to determine if the given file is LICENSE.lesser
+ def self.lesser_gpl_score(filename)
+ filename.casecmp('copying.lesser').zero? ? 1 : 0
+ end
end
end
end