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



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/license_finder/license/definitions.rb', line 8

def all
  [
    agpl3,
    apache1_1,
    apache2,
    artistic,
    bsd,
    cc01,
    cddl1,
    cddl1_1,
    cpl1,
    eclipse1,
    eclipse2,
    gplv2,
    gplv3,
    isc,
    lgpl,
    lgpl2_1,
    mit,
    mpl1_1,
    mpl2,
    newbsd,
    ofl,
    python,
    ruby,
    simplifiedbsd,
    unlicense,
    wtfpl,
    zerobsd,
    zlib
  ]
end

#build_unrecognized(name) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/license_finder/license/definitions.rb', line 41

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