Sha256: e0f9768e6626170526bc5e65288934fc6caf762fa079e078aa72a692299e9507

Contents?: true

Size: 277 Bytes

Versions: 20

Compression:

Stored size: 277 Bytes

Contents

module Licensee
  module Matchers
    class Package
      def initialize(file)
        @file = file
      end

      def match
        Licensee.licenses(hidden: true).find { |l| l.key == license_property }
      end

      def confidence
        90
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
licensee-8.9.2 lib/licensee/matchers/package_matcher.rb
licensee-8.9.0 lib/licensee/matchers/package_matcher.rb
licensee-8.8.5 lib/licensee/matchers/package_matcher.rb
licensee-8.8.4 lib/licensee/matchers/package_matcher.rb
licensee-8.8.3 lib/licensee/matchers/package_matcher.rb
licensee-8.8.2 lib/licensee/matchers/package_matcher.rb
licensee-8.8.1 lib/licensee/matchers/package_matcher.rb
licensee-8.8.0 lib/licensee/matchers/package_matcher.rb
licensee-8.7.0 lib/licensee/matchers/package_matcher.rb
licensee-8.6.1 lib/licensee/matchers/package_matcher.rb
licensee-8.6.0 lib/licensee/matchers/package_matcher.rb
licensee-8.5.0 lib/licensee/matchers/package_matcher.rb
licensee-8.4.0 lib/licensee/matchers/package_matcher.rb
licensee-8.3.1 lib/licensee/matchers/package_matcher.rb
licensee-8.3.0 lib/licensee/matchers/package_matcher.rb
licensee-8.2.0 lib/licensee/matchers/package_matcher.rb
licensee-8.1.0 lib/licensee/matchers/package_matcher.rb
licensee-8.0.0 lib/licensee/matchers/package_matcher.rb
licensee-7.0.1 lib/licensee/matchers/package_matcher.rb
licensee-7.0.0 lib/licensee/matchers/package_matcher.rb