Sha256: 3dbbc22d778ec1473a434217567b70d9292c208a236dd3991eeb3de7620070f5

Contents?: true

Size: 265 Bytes

Versions: 7

Compression:

Stored size: 265 Bytes

Contents

class Licensee
  class PackageMatcher < Matcher

    def match
      Licensee.licenses(:hidden => true).find { |l| l.key == license_property } if file.package?
    end

    def confidence
      90
    end

    def self.package_manager?
      true
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
licensee-5.0.0 lib/licensee/matchers/package_matcher.rb
licensee-5.0.0b7 lib/licensee/matchers/package_matcher.rb
licensee-5.0.0b6 lib/licensee/matchers/package_matcher.rb
licensee-5.0.0b5 lib/licensee/matchers/package_matcher.rb
licensee-5.0.0b4 lib/licensee/matchers/package_matcher.rb
licensee-5.0.0b3 lib/licensee/matchers/package_matcher.rb
licensee-5.0.0b2 lib/licensee/matchers/package_matcher.rb