lib/licensee/matchers/package_matcher.rb in licensee-5.0.0 vs lib/licensee/matchers/package_matcher.rb in licensee-6.0.0b1

- old
+ new

@@ -1,16 +1,17 @@ class Licensee - class PackageMatcher < Matcher + module Matchers + class Package + def initialize(file) + @file = file + end - def match - Licensee.licenses(:hidden => true).find { |l| l.key == license_property } if file.package? - end + def match + Licensee.licenses(:hidden => true).find { |l| l.key == license_property } + end - def confidence - 90 - end - - def self.package_manager? - true + def confidence + 90 + end end end end