Module: LicenseFinder::License::Definitions
- Extended by:
- Definitions
- Included in:
- Definitions
- Defined in:
- lib/license_finder/license/definitions.rb
Instance Method Summary collapse
Instance Method Details
#all(whitelist) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/license_finder/license/definitions.rb', line 6 def all(whitelist) [ apache2, bsd, gplv2, isc, lgpl, mit, newbsd, python, ruby, simplifiedbsd ].map { |license| whitelist_if_necessary(license, whitelist) } end |
#build_unrecognized(name, whitelist) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/license_finder/license/definitions.rb', line 23 def build_unrecognized(name, whitelist) result = License.new( short_name: name, url: nil, matcher: NoneMatcher.new ) whitelist_if_necessary(result, whitelist) end |