Sha256: 6bb87ee4e99bafa97b7b3063787458d55f8a219044bb0dd351fa0f5f5bb9ba16
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
class Licensee class Project class PackageInfo < Licensee::Project::File def possible_matchers case ::File.extname(filename) when ".gemspec" [Matchers::Gemspec] when ".json" [Matchers::NpmBower] else [] end end def self.name_score(filename) return 1.0 if ::File.extname(filename) == ".gemspec" return 1.0 if filename == "package.json" return 0.75 if filename == "bower.json" return 0.0 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
licensee-6.1.1 | lib/licensee/project_files/package_info.rb |
licensee-6.1.0 | lib/licensee/project_files/package_info.rb |