Sha256: 07f14d9e4f6ad0a4d15620681d7689dadb57ae57d9d1c96bf968e54750e67105
Contents?: true
Size: 720 Bytes
Versions: 3
Compression:
Stored size: 720 Bytes
Contents
module Licensee class Project class PackageInfo < Licensee::Project::File def possible_matchers case ::File.extname(filename) 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
licensee-8.7.0 | lib/licensee/project_files/package_info.rb |
licensee-8.6.1 | lib/licensee/project_files/package_info.rb |
licensee-8.6.0 | lib/licensee/project_files/package_info.rb |