lib/license_finder/license/definitions.rb in license_finder-6.15.0 vs lib/license_finder/license/definitions.rb in license_finder-7.0.0
- old
+ new
@@ -44,10 +44,11 @@
def apache1_1
License.new(
short_name: 'Apache1_1',
pretty_name: 'Apache 1.1',
+ spdx_id: 'Apache-1.1',
other_names: [
'Apache-1.1',
'The Apache Software License, Version 1.1'
],
url: 'http://www.apache.org/licenses/LICENSE-1.1.txt'
@@ -56,10 +57,11 @@
def apache2
License.new(
short_name: 'Apache2',
pretty_name: 'Apache 2.0',
+ spdx_id: 'Apache-2.0',
other_names: [
'Apache-2.0',
'Apache Software License',
'Apache License 2.0',
'Apache License Version 2.0',
@@ -77,27 +79,30 @@
end
def bsd
License.new(
short_name: 'BSD',
+ spdx_id: 'BSD-4-Clause',
other_names: ['BSD4', 'bsd-old', '4-clause BSD', 'BSD-4-Clause', 'BSD 4-Clause', 'BSD License'],
url: 'http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29'
)
end
def cc01
License.new(
short_name: 'CC01',
+ spdx_id: 'CC0-1.0',
pretty_name: 'CC0 1.0 Universal',
other_names: ['CC0 1.0'],
url: 'http://creativecommons.org/publicdomain/zero/1.0'
)
end
def cddl1
License.new(
short_name: 'CDDL1',
+ spdx_id: 'CDDL-1.0',
pretty_name: 'Common Development and Distribution License 1.0',
other_names: [
'CDDL-1.0',
'Common Development and Distribution License (CDDL) v1.0',
'COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0'
@@ -107,10 +112,11 @@
end
def eclipse1
License.new(
short_name: 'EPL1',
+ spdx_id: 'EPL-1.0',
pretty_name: 'Eclipse Public License 1.0',
other_names: [
'EPL-1.0',
'EPL 1.0',
'Eclipse Public License - v 1.0'
@@ -120,41 +126,46 @@
end
def gplv2
License.new(
short_name: 'GPLv2',
+ spdx_id: 'GPL-2.0-only',
other_names: ['GPL V2', 'gpl-v2', 'GNU GENERAL PUBLIC LICENSE Version 2'],
url: 'http://www.gnu.org/licenses/gpl-2.0.txt'
)
end
def gplv3
License.new(
short_name: 'GPLv3',
+ spdx_id: 'GPL-3.0-only',
other_names: ['GPL V3', 'gpl-v3', 'GNU GENERAL PUBLIC LICENSE Version 3'],
url: 'http://www.gnu.org/licenses/gpl-3.0.txt'
)
end
def isc
License.new(
short_name: 'ISC',
+ spdx_id: 'ISC',
url: 'http://en.wikipedia.org/wiki/ISC_license'
)
end
def lgpl
License.new(
short_name: 'LGPL',
+ spdx_id: 'LGPL-3.0-only',
other_names: ['LGPL-3', 'LGPLv3', 'LGPL-3.0'],
url: 'http://www.gnu.org/licenses/lgpl.txt'
)
end
def lgpl2_1
License.new(
short_name: 'LGPL2_1',
+ spdx_id: 'LGPL-2.1-only',
pretty_name: 'GNU Lesser General Public License version 2.1',
other_names: [
'LGPL-2.1-only',
'LGPL 2.1',
'LGPL v2.1',
@@ -176,10 +187,11 @@
Matcher.from_regex(one_liner_regexp)
)
License.new(
short_name: 'MIT',
+ spdx_id: 'MIT',
other_names: ['Expat', 'MIT license', 'MIT License', 'The MIT License (MIT)'],
url: 'http://opensource.org/licenses/mit-license',
matcher: matcher
)
end
@@ -195,10 +207,11 @@
Matcher.from_template(mpl1_1_tmpl)
)
License.new(
short_name: 'MPL1_1',
+ spdx_id: 'MPL-1.1',
pretty_name: 'Mozilla Public License 1.1',
other_names: [
'MPL-1.1',
'Mozilla Public License, Version 1.1',
'Mozilla Public License version 1.1'
@@ -216,10 +229,11 @@
HeaderMatcher.new(Matcher.from_regex(header_regexp))
)
License.new(
short_name: 'MPL2',
+ spdx_id: 'MPL-2.0',
pretty_name: 'Mozilla Public License 2.0',
other_names: [
'MPL-2.0',
'Mozilla Public License, Version 2.0',
'Mozilla Public License version 2.0'
@@ -241,10 +255,11 @@
Matcher.from_text(alternate_content)
)
License.new(
short_name: 'NewBSD',
+ spdx_id: 'BSD-3-Clause',
pretty_name: 'New BSD',
other_names: [
'Modified BSD',
'BSD3',
'BSD 3',
@@ -264,10 +279,11 @@
end
def ofl
License.new(
short_name: 'OFL',
+ spdx_id: 'OFL-1.1',
pretty_name: 'SIL OPEN FONT LICENSE Version 1.1',
other_names: [
'OPEN FONT LICENSE Version 1.1'
],
url: 'https://opensource.org/licenses/OFL-1.1'
@@ -275,10 +291,11 @@
end
def python
License.new(
short_name: 'Python',
+ spdx_id: 'PSF-2.0',
pretty_name: 'Python Software Foundation License',
other_names: [
'PSF',
'PSFL',
'PSF License'
@@ -295,19 +312,21 @@
Matcher.from_text(url)
)
License.new(
short_name: 'Ruby',
+ spdx_id: 'Ruby',
pretty_name: 'ruby',
url: url,
matcher: matcher
)
end
def simplifiedbsd
License.new(
short_name: 'SimplifiedBSD',
+ spdx_id: 'BSD-2-Clause',
pretty_name: 'Simplified BSD',
other_names: [
'FreeBSD',
'2-clause BSD',
'BSD-2-Clause',
@@ -319,10 +338,11 @@
end
def wtfpl
License.new(
short_name: 'WTFPL',
+ spdx_id: 'WTFPL',
pretty_name: 'WTFPL',
other_names: [
'WTFPL V2',
'Do What The Fuck You Want To Public License'
],
@@ -335,10 +355,11 @@
Matcher.from_template(Template.named('0BSD'))
)
License.new(
short_name: '0BSD',
+ spdx_id: '0BSD',
pretty_name: 'BSD Zero Clause License',
other_names: [
'0-Clause BSD',
'Zero-Clause BSD',
'BSD-0-Clause',
@@ -352,9 +373,10 @@
end
def zlib
License.new(
short_name: 'Zlib',
+ spdx_id: 'Zlib',
pretty_name: 'zlib/libpng license',
other_names: [
'zlib License'
],
url: 'https://opensource.org/licenses/Zlib'