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
# File 'lib/license_finder/license/definitions.rb', line 8

def all
  [
    apache1_1,
    apache2,
    bsd,
    cc01,
    cddl1,
    eclipse1,
    gplv2,
    gplv3,
    isc,
    lgpl,
    lgpl2_1,
    mit,
    mpl1_1,
    mpl2,
    newbsd,
    ofl,
    python,
    ruby,
    simplifiedbsd,
    wtfpl,
    zerobsd
  ]
end

#build_unrecognized(name) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/license_finder/license/definitions.rb', line 34

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