Sha256: c71e1b05a523da2a8bbb1d536d0ea97a5e9e0195944994b18ffc422bbbf2e47a

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

module Licensee
  module Matchers
    class Exact < Licensee::Matchers::Matcher
      def match
        return @match if defined? @match
        @match = Licensee.licenses(hidden: true).find do |license|
          license.length == @file.length && license.wordset == @file.wordset
        end
      end

      def confidence
        100
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
licensee-9.9.2 lib/licensee/matchers/exact.rb
licensee-9.9.1 lib/licensee/matchers/exact.rb
licensee-9.9.0 lib/licensee/matchers/exact.rb
licensee-9.9.0.beta.3 lib/licensee/matchers/exact.rb
licensee-9.9.0.beta.2 lib/licensee/matchers/exact.rb