Sha256: 942bad5d10b3daf3b9e82b8d9b538f8bc0d1f737cf9d5f7744759ed1a3674eea

Contents?: true

Size: 215 Bytes

Versions: 7

Compression:

Stored size: 215 Bytes

Contents

class Licensee
  class ExactMatcher < Matcher
    def match
      Licensee.licenses(:hidden => true).find { |l| l.body_normalized == file.content_normalized }
    end

    def confidence
      100
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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