lib/licensee/project_files/package_info.rb in licensee-8.5.0 vs lib/licensee/project_files/package_info.rb in licensee-8.6.0

- old
+ new

@@ -6,16 +6,21 @@ when '.gemspec' [Matchers::Gemspec] when '.json' [Matchers::NpmBower] else - [] + if filename == 'DESCRIPTION' && content.start_with?('Package:') + [Matchers::Cran] + else + [] + end end end def self.name_score(filename) return 1.0 if ::File.extname(filename) == '.gemspec' return 1.0 if filename == 'package.json' + return 0.9 if filename == 'DESCRIPTION' return 0.75 if filename == 'bower.json' 0.0 end end end