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