class Licensee::Matchers::DistZilla
Constants
- LICENSE_REGEX
Attributes
file[R]
Private Instance Methods
license_property()
click to toggle source
# File lib/licensee/matchers/dist_zilla.rb, line 12 def license_property match = file.content.match LICENSE_REGEX spdx_name(match[1]).downcase if match && match[1] end
spdx_name(perl_name)
click to toggle source
# File lib/licensee/matchers/dist_zilla.rb, line 17 def spdx_name(perl_name) perl_name.sub('_', '-') .sub('_', '.') .sub('Mozilla', 'MPL') .sub(/^GPL-(\d)$/, 'GPL-\1.0') end