Class: Licensee::Matchers::Gemspec
- Defined in:
- lib/licensee/matchers/gemspec.rb
Constant Summary collapse
- VALUE_REGEX =
a value is a string surrounded by any amount of whitespace optionally ended with (non-captured) “.freeze”
/\s*['"]([a-z\-0-9.]+)['"](?:\.freeze)?\s*/i
- ARRAY_REGEX =
an array contains one or more values. all values, or array itself, can be surrounded by any amount of whitespace. do not capture non-value groups
/\s*\[#{VALUE_REGEX}(?:,#{VALUE_REGEX})*\]\s*/i
- DECLARATION_REGEX =
/ ^\s*[a-z0-9_]+\.([a-z0-9_]+)\s*=#{VALUE_REGEX}$ /ix
- LICENSE_REGEX =
/ ^\s*[a-z0-9_]+\.license\s*=#{VALUE_REGEX}$ /ix
- LICENSE_ARRAY_REGEX =
/ ^\s*[a-z0-9_]+\.licenses\s*=#{ARRAY_REGEX}$ /ix
Constants inherited from Matcher
Instance Attribute Summary
Attributes inherited from Matcher
Method Summary
Methods inherited from Package
Methods inherited from Matcher
#confidence, #initialize, #match, #name
Methods included from HashHelper
Constructor Details
This class inherits a constructor from Licensee::Matchers::Matcher