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

#allObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/license_finder/license/definitions.rb', line 6

def all
  [
    apache2,
    bsd,
    gplv2,
    isc,
    lgpl,
    mit,
    newbsd,
    python,
    ruby,
    simplifiedbsd
  ]
end

#build_unrecognized(name) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/license_finder/license/definitions.rb', line 21

def build_unrecognized(name)
  License.new(
    short_name: name,
    url: nil,
    matcher: NoneMatcher.new
  )
end