Class: Licensee::Matchers::Gemspec

Inherits:
Package
  • Object
show all
Defined in:
lib/licensee/matchers/gemspec_matcher.rb

Constant Summary collapse

LICENSE_REGEX =

We definitely don’t want to be evaling arbitrary Gemspec files While not 100% accurate, use some lenient regex to try to grep the license declaration from the Gemspec as a string, if any

/
^\s*[a-z0-9_]+\.license\s*\=\s*[\'\"]([a-z\-0-9\.]+)[\'\"]\s*$
/ix

Method Summary

Methods inherited from Package

#confidence, #initialize, #match

Constructor Details

This class inherits a constructor from Licensee::Matchers::Package