Sha256: 753ec2a60be9f05e5b2c0f1bbe6185e55316f08b9676b727640edf0c2702ec48

Contents?: true

Size: 198 Bytes

Versions: 28

Compression:

Stored size: 198 Bytes

Contents

class Licensee
  class ExactMatcher < Matcher
    def match
      Licensee.licenses.find { |l| l.body_normalized == file.content_normalized }
    end

    def confidence
      100
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
licensee-5.0.0b1 lib/licensee/matchers/exact_matcher.rb
licensee-4.9.0 lib/licensee/matchers/exact_matcher.rb
licensee-4.8.0 lib/licensee/matchers/exact_matcher.rb
licensee-4.7.4 lib/licensee/matchers/exact_matcher.rb
licensee-4.7.3 lib/licensee/matchers/exact_matcher.rb
licensee-4.7.2 lib/licensee/matchers/exact_matcher.rb
licensee-4.7.1 lib/licensee/matchers/exact_matcher.rb
licensee-4.7.0 lib/licensee/matchers/exact_matcher.rb
licensee-4.6.0 lib/licensee/matchers/exact_matcher.rb
licensee-4.5.0 lib/licensee/matchers/exact_matcher.rb
licensee-4.4.2 lib/licensee/matchers/exact_matcher.rb
licensee-4.4.1 lib/licensee/matchers/exact_matcher.rb
licensee-4.4.0 lib/licensee/matchers/exact_matcher.rb
licensee-4.3.3 lib/licensee/matchers/exact_matcher.rb
licensee-4.3.2 lib/licensee/matchers/exact_matcher.rb
licensee-4.3.1 lib/licensee/matchers/exact_matcher.rb
licensee-4.3.0 lib/licensee/matchers/exact_matcher.rb
licensee-4.2.4 lib/licensee/matchers/exact_matcher.rb
licensee-4.2.3 lib/licensee/matchers/exact_matcher.rb
licensee-4.2.2 lib/licensee/matchers/exact_matcher.rb