Sha256: ec92bfc9bd40ac4710a6c7e074ba040ebdf89c5b49e592a22ebe077b552ebb83

Contents?: true

Size: 361 Bytes

Versions: 10

Compression:

Stored size: 361 Bytes

Contents

module Licensee
  module Matchers
    class Cargo < Licensee::Matchers::Package
      LICENSE_REGEX = %r{
        ^\s*[\'\"]?license[\'\"]?\s*=\s*[\'\"]([a-z\-0-9\. +()\/]+)[\'\"]\s*
      }ix

      private

      def license_property
        match = @file.content.match LICENSE_REGEX
        match[1].downcase if match && match[1]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
licensee-9.10.1 lib/licensee/matchers/cargo.rb
licensee-9.10.0 lib/licensee/matchers/cargo.rb
licensee-9.9.4 lib/licensee/matchers/cargo.rb
licensee-9.9.3 lib/licensee/matchers/cargo.rb
licensee-9.9.2 lib/licensee/matchers/cargo.rb
licensee-9.9.1 lib/licensee/matchers/cargo.rb
licensee-9.9.0 lib/licensee/matchers/cargo.rb
licensee-9.9.0.beta.3 lib/licensee/matchers/cargo.rb
licensee-9.9.0.beta.2 lib/licensee/matchers/cargo.rb
licensee-9.8.0 lib/licensee/matchers/cargo.rb