licensee 9.10.0 → 9.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/licensee +5 -4
- data/lib/licensee.rb +4 -2
- data/lib/licensee/commands/detect.rb +10 -5
- data/lib/licensee/commands/diff.rb +7 -8
- data/lib/licensee/commands/license_path.rb +2 -0
- data/lib/licensee/commands/version.rb +2 -0
- data/lib/licensee/content_helper.rb +234 -85
- data/lib/licensee/hash_helper.rb +7 -5
- data/lib/licensee/license.rb +32 -25
- data/lib/licensee/license_field.rb +4 -1
- data/lib/licensee/license_meta.rb +3 -0
- data/lib/licensee/license_rules.rb +2 -0
- data/lib/licensee/matchers.rb +2 -0
- data/lib/licensee/matchers/cabal.rb +16 -2
- data/lib/licensee/matchers/cargo.rb +3 -1
- data/lib/licensee/matchers/copyright.rb +6 -4
- data/lib/licensee/matchers/cran.rb +7 -3
- data/lib/licensee/matchers/dice.rb +6 -4
- data/lib/licensee/matchers/dist_zilla.rb +3 -1
- data/lib/licensee/matchers/exact.rb +3 -0
- data/lib/licensee/matchers/gemspec.rb +8 -5
- data/lib/licensee/matchers/matcher.rb +3 -1
- data/lib/licensee/matchers/npm_bower.rb +3 -1
- data/lib/licensee/matchers/package.rb +3 -0
- data/lib/licensee/matchers/reference.rb +3 -1
- data/lib/licensee/matchers/spdx.rb +3 -1
- data/lib/licensee/project_files.rb +2 -0
- data/lib/licensee/project_files/license_file.rb +13 -10
- data/lib/licensee/project_files/package_manager_file.rb +3 -0
- data/lib/licensee/project_files/project_file.rb +12 -4
- data/lib/licensee/project_files/readme_file.rb +5 -3
- data/lib/licensee/projects.rb +2 -0
- data/lib/licensee/projects/fs_project.rb +3 -0
- data/lib/licensee/projects/git_project.rb +19 -11
- data/lib/licensee/projects/github_project.rb +6 -1
- data/lib/licensee/projects/project.rb +16 -5
- data/lib/licensee/rule.rb +2 -0
- data/lib/licensee/version.rb +3 -1
- data/licensee.gemspec +47 -0
- data/spec/bin_spec.rb +3 -1
- data/spec/fixture_spec.rb +46 -0
- data/spec/fixtures/bsd-3-noendorseslash/LICENSE +30 -0
- data/spec/fixtures/cc0-cal2013/LICENSE +116 -0
- data/spec/fixtures/cc0-cc/LICENSE +121 -0
- data/spec/fixtures/detect.json +9 -7
- data/spec/fixtures/fixtures.yml +130 -0
- data/spec/fixtures/html/license.html +262 -0
- data/spec/fixtures/license-hashes.json +41 -0
- data/spec/fixtures/mit-optional/LICENSE.txt +21 -0
- data/spec/fixtures/multiple-arrs/LICENSE +30 -0
- data/spec/fixtures/unlicense-noinfo/LICENSE +22 -0
- data/spec/integration_spec.rb +68 -2
- data/spec/licensee/commands/detect_spec.rb +10 -6
- data/spec/licensee/commands/license_path_spec.rb +3 -1
- data/spec/licensee/commands/version_spec.rb +3 -1
- data/spec/licensee/content_helper_spec.rb +184 -67
- data/spec/licensee/hash_helper_spec.rb +3 -1
- data/spec/licensee/license_field_spec.rb +5 -3
- data/spec/licensee/license_meta_spec.rb +16 -12
- data/spec/licensee/license_rules_spec.rb +6 -2
- data/spec/licensee/license_spec.rb +62 -37
- data/spec/licensee/matchers/cabal_matcher_spec.rb +97 -2
- data/spec/licensee/matchers/cargo_matcher_spec.rb +5 -2
- data/spec/licensee/matchers/copyright_matcher_spec.rb +7 -5
- data/spec/licensee/matchers/cran_matcher_spec.rb +5 -2
- data/spec/licensee/matchers/dice_matcher_spec.rb +15 -12
- data/spec/licensee/matchers/dist_zilla_matcher_spec.rb +5 -2
- data/spec/licensee/matchers/exact_matcher_spec.rb +5 -2
- data/spec/licensee/matchers/gemspec_matcher_spec.rb +5 -2
- data/spec/licensee/matchers/matcher_spec.rb +6 -2
- data/spec/licensee/matchers/npm_bower_matcher_spec.rb +5 -3
- data/spec/licensee/matchers/package_matcher_spec.rb +6 -2
- data/spec/licensee/matchers/reference_matcher_spec.rb +4 -2
- data/spec/licensee/matchers/spdx_matcher_spec.rb +5 -2
- data/spec/licensee/project_files/license_file_spec.rb +20 -18
- data/spec/licensee/project_files/package_info_spec.rb +5 -1
- data/spec/licensee/project_files/project_file_spec.rb +8 -2
- data/spec/licensee/project_files/readme_file_spec.rb +4 -1
- data/spec/licensee/project_spec.rb +24 -17
- data/spec/licensee/projects/git_project_spec.rb +23 -0
- data/spec/licensee/projects/github_project_spec.rb +8 -5
- data/spec/licensee/rule_spec.rb +6 -3
- data/spec/licensee_spec.rb +12 -9
- data/spec/spec_helper.rb +28 -9
- data/spec/vendored_license_spec.rb +29 -10
- data/vendor/choosealicense.com/_data/meta.yml +0 -4
- data/vendor/choosealicense.com/_data/rules.yml +3 -0
- data/vendor/choosealicense.com/_licenses/0bsd.txt +39 -0
- data/vendor/choosealicense.com/_licenses/afl-3.0.txt +7 -6
- data/vendor/choosealicense.com/_licenses/agpl-3.0.txt +0 -1
- data/vendor/choosealicense.com/_licenses/apache-2.0.txt +1 -2
- data/vendor/choosealicense.com/_licenses/artistic-2.0.txt +1 -2
- data/vendor/choosealicense.com/_licenses/bsd-2-clause.txt +8 -6
- data/vendor/choosealicense.com/_licenses/bsd-3-clause-clear.txt +2 -2
- data/vendor/choosealicense.com/_licenses/bsd-3-clause.txt +12 -10
- data/vendor/choosealicense.com/_licenses/bsd-4-clause.txt +61 -0
- data/vendor/choosealicense.com/_licenses/bsl-1.0.txt +5 -2
- data/vendor/choosealicense.com/_licenses/cc-by-4.0.txt +3 -1
- data/vendor/choosealicense.com/_licenses/cc-by-sa-4.0.txt +3 -1
- data/vendor/choosealicense.com/_licenses/cc0-1.0.txt +113 -105
- data/vendor/choosealicense.com/_licenses/cecill-2.1.txt +579 -0
- data/vendor/choosealicense.com/_licenses/ecl-2.0.txt +1 -2
- data/vendor/choosealicense.com/_licenses/epl-1.0.txt +1 -2
- data/vendor/choosealicense.com/_licenses/epl-2.0.txt +3 -4
- data/vendor/choosealicense.com/_licenses/eupl-1.1.txt +0 -1
- data/vendor/choosealicense.com/_licenses/eupl-1.2.txt +0 -1
- data/vendor/choosealicense.com/_licenses/gpl-2.0.txt +0 -1
- data/vendor/choosealicense.com/_licenses/gpl-3.0.txt +1 -2
- data/vendor/choosealicense.com/_licenses/isc.txt +0 -1
- data/vendor/choosealicense.com/_licenses/lgpl-2.1.txt +0 -1
- data/vendor/choosealicense.com/_licenses/lgpl-3.0.txt +1 -3
- data/vendor/choosealicense.com/_licenses/lppl-1.3c.txt +1 -2
- data/vendor/choosealicense.com/_licenses/mit.txt +1 -2
- data/vendor/choosealicense.com/_licenses/mpl-2.0.txt +0 -1
- data/vendor/choosealicense.com/_licenses/ms-pl.txt +0 -1
- data/vendor/choosealicense.com/_licenses/ms-rl.txt +0 -1
- data/vendor/choosealicense.com/_licenses/ncsa.txt +21 -22
- data/vendor/choosealicense.com/_licenses/odbl-1.0.txt +573 -0
- data/vendor/choosealicense.com/_licenses/ofl-1.1.txt +4 -2
- data/vendor/choosealicense.com/_licenses/osl-3.0.txt +1 -2
- data/vendor/choosealicense.com/_licenses/postgresql.txt +4 -5
- data/vendor/choosealicense.com/_licenses/unlicense.txt +1 -2
- data/vendor/choosealicense.com/_licenses/upl-1.0.txt +4 -5
- data/vendor/choosealicense.com/_licenses/vim.txt +111 -0
- data/vendor/choosealicense.com/_licenses/wtfpl.txt +0 -1
- data/vendor/choosealicense.com/_licenses/zlib.txt +4 -2
- metadata +77 -19
@@ -1,24 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
RSpec.describe 'vendored licenses' do
|
2
4
|
let(:filename) { 'LICENSE.txt' }
|
3
5
|
let(:license_file) do
|
4
6
|
Licensee::ProjectFiles::LicenseFile.new(content, filename)
|
5
7
|
end
|
6
|
-
let(:detected_license) { license_file
|
8
|
+
let(:detected_license) { license_file&.license }
|
7
9
|
let(:wtfpl) { Licensee::License.find('wtfpl') }
|
8
10
|
|
9
11
|
Licensee.licenses(hidden: true).each do |license|
|
10
12
|
next if license.pseudo_license?
|
11
|
-
next if license.key == 'postgresql'
|
12
13
|
|
13
14
|
context "the #{license.name} license" do
|
14
15
|
let(:content_with_copyright) { sub_copyright_info(license) }
|
15
16
|
let(:content) { content_with_copyright }
|
17
|
+
let(:expected_hash) { license_hashes[license.key] }
|
18
|
+
let(:hash_change_msg) do
|
19
|
+
msg = 'Did you update a vendored license? Run'.dup
|
20
|
+
msg << ' bundle exec script/hash-licenses'
|
21
|
+
msg << 'Changes in license hashes must be a MINOR (or MAJOR) bump.'
|
22
|
+
msg
|
23
|
+
end
|
16
24
|
|
17
25
|
it 'detects the license' do
|
18
|
-
skip if license.key == 'ncsa'
|
19
26
|
expect(content).to be_detected_as(license)
|
20
27
|
end
|
21
28
|
|
29
|
+
it 'confidence and similarity scores are euqal' do
|
30
|
+
expect(license_file.confidence).to eq(license.similarity(license_file))
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'has a cached content hash' do
|
34
|
+
expect(expected_hash).not_to be_nil, hash_change_msg
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'matches the expected content hash' do
|
38
|
+
expect(license.content_hash).to eql(expected_hash), hash_change_msg
|
39
|
+
end
|
40
|
+
|
22
41
|
context 'when modified' do
|
23
42
|
let(:line_length) { 60 }
|
24
43
|
let(:random_words) { 75 }
|
@@ -30,11 +49,13 @@ RSpec.describe 'vendored licenses' do
|
|
30
49
|
end
|
31
50
|
|
32
51
|
context 'without the title' do
|
33
|
-
let(:
|
52
|
+
let(:content_without_title) do
|
53
|
+
license_file.send :strip_title
|
54
|
+
license_file.send :_content
|
55
|
+
end
|
34
56
|
|
35
57
|
it 'detects the license' do
|
36
|
-
|
37
|
-
expect(content).to be_detected_as(license)
|
58
|
+
expect(content_without_title).to be_detected_as(license)
|
38
59
|
end
|
39
60
|
end
|
40
61
|
|
@@ -44,7 +65,6 @@ RSpec.describe 'vendored licenses' do
|
|
44
65
|
end
|
45
66
|
|
46
67
|
it 'detects the license' do
|
47
|
-
skip if license.key == 'ncsa'
|
48
68
|
expect(content).to be_detected_as(license)
|
49
69
|
end
|
50
70
|
end
|
@@ -53,7 +73,6 @@ RSpec.describe 'vendored licenses' do
|
|
53
73
|
let(:content) { content_rewrapped }
|
54
74
|
|
55
75
|
it 'detects the license' do
|
56
|
-
skip if license.key == 'ncsa'
|
57
76
|
expect(content).to be_detected_as(license)
|
58
77
|
end
|
59
78
|
end
|
@@ -62,7 +81,7 @@ RSpec.describe 'vendored licenses' do
|
|
62
81
|
let(:content) { content_with_random_words }
|
63
82
|
|
64
83
|
it 'does not match the license' do
|
65
|
-
expect(content).
|
84
|
+
expect(content).not_to be_detected_as(license)
|
66
85
|
end
|
67
86
|
end
|
68
87
|
|
@@ -72,7 +91,7 @@ RSpec.describe 'vendored licenses' do
|
|
72
91
|
end
|
73
92
|
|
74
93
|
it 'does not match the license' do
|
75
|
-
expect(content).
|
94
|
+
expect(content).not_to be_detected_as(license)
|
76
95
|
end
|
77
96
|
end
|
78
97
|
end
|
@@ -9,10 +9,6 @@
|
|
9
9
|
description: Short identifier specified by https://spdx.org/licenses/
|
10
10
|
required: true
|
11
11
|
|
12
|
-
- name: source
|
13
|
-
description: The URL to the license source text
|
14
|
-
required: true
|
15
|
-
|
16
12
|
- name: description
|
17
13
|
description: A human-readable description of the license
|
18
14
|
required: true
|
@@ -19,6 +19,9 @@ conditions:
|
|
19
19
|
- description: A copy of the license and copyright notice must be included with the software.
|
20
20
|
label: License and copyright notice
|
21
21
|
tag: include-copyright
|
22
|
+
- description: A copy of the license and copyright notice must be included with the software in source form, but is not required for binaries.
|
23
|
+
label: License and copyright notice for source
|
24
|
+
tag: include-copyright--source
|
22
25
|
- description: Changes made to the code must be documented.
|
23
26
|
label: State changes
|
24
27
|
tag: document-changes
|
@@ -0,0 +1,39 @@
|
|
1
|
+
---
|
2
|
+
title: BSD Zero Clause License
|
3
|
+
spdx-id: 0BSD
|
4
|
+
|
5
|
+
description: The BSD Zero Clause license goes further than the BSD 2-Clause license to allow you unlimited freedom with the software without requirements to include the copyright notice, license text, or disclaimer in either source or binary forms.
|
6
|
+
|
7
|
+
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. You may take the additional step of removing the copyright notice.
|
8
|
+
|
9
|
+
using:
|
10
|
+
- PickMeUp: https://github.com/nazar-pc/PickMeUp/blob/master/copying.md
|
11
|
+
- smoltcp: https://github.com/m-labs/smoltcp/blob/master/LICENSE-0BSD.txt
|
12
|
+
- Toybox: https://github.com/landley/toybox/blob/master/LICENSE
|
13
|
+
|
14
|
+
permissions:
|
15
|
+
- commercial-use
|
16
|
+
- distribution
|
17
|
+
- modifications
|
18
|
+
- private-use
|
19
|
+
|
20
|
+
conditions: []
|
21
|
+
|
22
|
+
limitations:
|
23
|
+
- liability
|
24
|
+
- warranty
|
25
|
+
|
26
|
+
---
|
27
|
+
|
28
|
+
Copyright (c) [year] [fullname]
|
29
|
+
|
30
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
31
|
+
purpose with or without fee is hereby granted.
|
32
|
+
|
33
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
34
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
35
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
36
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
37
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
38
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
39
|
+
PERFORMANCE OF THIS SOFTWARE.
|
@@ -1,7 +1,6 @@
|
|
1
1
|
---
|
2
2
|
title: Academic Free License v3.0
|
3
3
|
spdx-id: AFL-3.0
|
4
|
-
source: https://opensource.org/licenses/afl-3.0
|
5
4
|
|
6
5
|
description: The Academic Free License is a variant of the Open Software License that does not require that the source code of derivative works be disclosed. It contains explicit copyright and patent grants and reserves trademark rights in the author.
|
7
6
|
|
@@ -27,7 +26,7 @@ limitations:
|
|
27
26
|
|
28
27
|
---
|
29
28
|
|
30
|
-
Academic Free License (
|
29
|
+
Academic Free License ("AFL") v. 3.0
|
31
30
|
|
32
31
|
This Academic Free License (the "License") applies to any original work of
|
33
32
|
authorship (the "Original Work") whose owner (the "Licensor") has placed the
|
@@ -49,9 +48,11 @@ the following:
|
|
49
48
|
|
50
49
|
c) to distribute or communicate copies of the Original Work and
|
51
50
|
Derivative Works to the public, under any license of your choice that
|
52
|
-
does not contradict the terms and conditions, including Licensor
|
51
|
+
does not contradict the terms and conditions, including Licensor's
|
53
52
|
reserved rights and remedies, in this Academic Free License;
|
53
|
+
|
54
54
|
d) to perform the Original Work publicly; and
|
55
|
+
|
55
56
|
e) to display the Original Work publicly.
|
56
57
|
|
57
58
|
2) Grant of Patent License. Licensor grants You a worldwide, royalty-free,
|
@@ -75,7 +76,7 @@ of any contributors to the Original Work, nor any of their trademarks or
|
|
75
76
|
service marks, may be used to endorse or promote products derived from this
|
76
77
|
Original Work without express prior permission of the Licensor. Except as
|
77
78
|
expressly stated herein, nothing in this License grants any license to
|
78
|
-
Licensor
|
79
|
+
Licensor's trademarks, copyrights, patents, trade secrets or any other
|
79
80
|
intellectual property. No patent license is granted to make, use, sell, offer
|
80
81
|
for sale, have made, or import embodiments of any patent claims other than the
|
81
82
|
licensed claims defined in Section 2. No license is granted to the trademarks
|
@@ -133,7 +134,7 @@ the activities listed in Section 1, including your right to create Derivative
|
|
133
134
|
Works based upon the Original Work, and doing so without honoring these terms
|
134
135
|
and conditions is prohibited by copyright law and international treaty.
|
135
136
|
Nothing in this License is intended to affect copyright exceptions and
|
136
|
-
limitations (including
|
137
|
+
limitations (including "fair use" or "fair dealing"). This License shall
|
137
138
|
terminate immediately and You may no longer exercise any of the rights granted
|
138
139
|
to You by this License upon your failure to honor the conditions in Section
|
139
140
|
1(c).
|
@@ -157,7 +158,7 @@ subject to the requirements and penalties of copyright or patent law in the
|
|
157
158
|
appropriate jurisdiction. This section shall survive the termination of this
|
158
159
|
License.
|
159
160
|
|
160
|
-
12) Attorneys
|
161
|
+
12) Attorneys' Fees. In any action to enforce the terms of this License or
|
161
162
|
seeking damages relating thereto, the prevailing party shall be entitled to
|
162
163
|
recover its costs and expenses, including, without limitation, reasonable
|
163
164
|
attorneys' fees and costs incurred in connection with such action, including
|
@@ -3,7 +3,6 @@ title: GNU Affero General Public License v3.0
|
|
3
3
|
spdx-id: AGPL-3.0
|
4
4
|
nickname: GNU AGPLv3
|
5
5
|
redirect_from: /licenses/agpl/
|
6
|
-
source: https://www.gnu.org/licenses/agpl-3.0.txt
|
7
6
|
hidden: false
|
8
7
|
|
9
8
|
description: Permissions of this strongest copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights. When a modified version is used to provide a service over a network, the complete source code of the modified version must be made available.
|
@@ -2,7 +2,6 @@
|
|
2
2
|
title: Apache License 2.0
|
3
3
|
spdx-id: Apache-2.0
|
4
4
|
redirect_from: /licenses/apache/
|
5
|
-
source: https://www.apache.org/licenses/LICENSE-2.0.html
|
6
5
|
featured: true
|
7
6
|
hidden: false
|
8
7
|
|
@@ -10,7 +9,7 @@ description: A permissive license whose main conditions require preservation of
|
|
10
9
|
|
11
10
|
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.
|
12
11
|
|
13
|
-
note: The Apache Foundation recommends taking the additional step of adding a boilerplate notice to the header of each source file. You can find the notice at the very end of the license
|
12
|
+
note: The Apache Foundation recommends taking the additional step of adding a boilerplate notice to the header of each source file. You can find the notice in the appendix at the very end of the license text.
|
14
13
|
|
15
14
|
using:
|
16
15
|
- Kubernetes: https://github.com/kubernetes/kubernetes/blob/master/LICENSE
|
@@ -2,11 +2,10 @@
|
|
2
2
|
title: Artistic License 2.0
|
3
3
|
spdx-id: Artistic-2.0
|
4
4
|
redirect_from: /licenses/artistic/
|
5
|
-
source: https://spdx.org/licenses/Artistic-2.0.html
|
6
5
|
|
7
6
|
description: Heavily favored by the Perl community, the Artistic license requires that modified versions of the software do not prevent users from running the standard version.
|
8
7
|
|
9
|
-
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code
|
8
|
+
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Do not replace the copyright notice (year, author), which refers to the license itself, not the licensed project.
|
10
9
|
|
11
10
|
using:
|
12
11
|
|
@@ -2,7 +2,6 @@
|
|
2
2
|
title: BSD 2-Clause "Simplified" License
|
3
3
|
spdx-id: BSD-2-Clause
|
4
4
|
redirect_from: /licenses/bsd/
|
5
|
-
source: https://opensource.org/licenses/BSD-2-Clause
|
6
5
|
hidden: false
|
7
6
|
|
8
7
|
description: A permissive license that comes in two variants, the <a href="/licenses/bsd-2-clause/">BSD 2-Clause</a> and <a href="/licenses/bsd-3-clause/">BSD 3-Clause</a>. Both have very minute differences to the MIT license.
|
@@ -10,6 +9,9 @@ description: A permissive license that comes in two variants, the <a href="/lice
|
|
10
9
|
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
|
11
10
|
|
12
11
|
using:
|
12
|
+
- go-redis: https://github.com/go-redis/redis/blob/master/LICENSE
|
13
|
+
- Homebrew: https://github.com/Homebrew/brew/blob/master/LICENSE.txt
|
14
|
+
- Pony: https://github.com/ponylang/ponyc/blob/master/LICENSE
|
13
15
|
|
14
16
|
permissions:
|
15
17
|
- commercial-use
|
@@ -34,12 +36,12 @@ All rights reserved.
|
|
34
36
|
Redistribution and use in source and binary forms, with or without
|
35
37
|
modification, are permitted provided that the following conditions are met:
|
36
38
|
|
37
|
-
|
38
|
-
|
39
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
40
|
+
list of conditions and the following disclaimer.
|
39
41
|
|
40
|
-
|
41
|
-
|
42
|
-
|
42
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
43
|
+
this list of conditions and the following disclaimer in the documentation
|
44
|
+
and/or other materials provided with the distribution.
|
43
45
|
|
44
46
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
45
47
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
@@ -1,11 +1,11 @@
|
|
1
1
|
---
|
2
2
|
title: BSD 3-Clause Clear License
|
3
3
|
spdx-id: BSD-3-Clause-Clear
|
4
|
-
|
4
|
+
nickname: Clear BSD
|
5
5
|
|
6
6
|
description: A variant of the <a href="/licenses/bsd-3-clause/">BSD 3-Clause License</a> that explicitly does not grant any patent rights.
|
7
7
|
|
8
|
-
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
|
8
|
+
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
|
9
9
|
|
10
10
|
using:
|
11
11
|
|
@@ -1,14 +1,16 @@
|
|
1
1
|
---
|
2
2
|
title: BSD 3-Clause "New" or "Revised" License
|
3
3
|
spdx-id: BSD-3-Clause
|
4
|
-
source: https://opensource.org/licenses/BSD-3-Clause
|
5
4
|
hidden: false
|
6
5
|
|
7
6
|
description: A permissive license similar to the <a href="/licenses/bsd-2-clause/">BSD 2-Clause License</a>, but with a 3rd clause that prohibits others from using the name of the project or its contributors to promote derived products without written consent.
|
8
7
|
|
9
|
-
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
|
8
|
+
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
|
10
9
|
|
11
10
|
using:
|
11
|
+
- d3: https://github.com/d3/d3/blob/master/LICENSE
|
12
|
+
- LevelDB: https://github.com/google/leveldb/blob/master/LICENSE
|
13
|
+
- Quill: https://github.com/quilljs/quill/blob/develop/LICENSE
|
12
14
|
|
13
15
|
permissions:
|
14
16
|
- commercial-use
|
@@ -33,16 +35,16 @@ All rights reserved.
|
|
33
35
|
Redistribution and use in source and binary forms, with or without
|
34
36
|
modification, are permitted provided that the following conditions are met:
|
35
37
|
|
36
|
-
|
37
|
-
|
38
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
39
|
+
list of conditions and the following disclaimer.
|
38
40
|
|
39
|
-
|
40
|
-
|
41
|
-
|
41
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
42
|
+
this list of conditions and the following disclaimer in the documentation
|
43
|
+
and/or other materials provided with the distribution.
|
42
44
|
|
43
|
-
|
44
|
-
|
45
|
-
|
45
|
+
3. Neither the name of the copyright holder nor the names of its
|
46
|
+
contributors may be used to endorse or promote products derived from
|
47
|
+
this software without specific prior written permission.
|
46
48
|
|
47
49
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
48
50
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
title: BSD 4-Clause "Original" or "Old" License
|
3
|
+
spdx-id: BSD-4-Clause
|
4
|
+
|
5
|
+
description: A permissive license similar to the <a href="/licenses/bsd-3-clause/">BSD 3-Clause License</a>, but with an "advertising clause" that requires an acknowledgment of the original source in all advertising material.
|
6
|
+
|
7
|
+
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work.
|
8
|
+
|
9
|
+
using:
|
10
|
+
- Yosemite Blockchain: https://github.com/YosemiteLabs/yosemite-public-blockchain/blob/master/LICENSE
|
11
|
+
- querybuilder: https://github.com/pwolfgang/querybuilder/blob/master/LICENSE
|
12
|
+
- PMSPAUR-public: https://github.com/ArthurGodet/PMSPAUR-public/blob/master/LICENSE
|
13
|
+
|
14
|
+
permissions:
|
15
|
+
- commercial-use
|
16
|
+
- modifications
|
17
|
+
- distribution
|
18
|
+
- private-use
|
19
|
+
|
20
|
+
conditions:
|
21
|
+
- include-copyright
|
22
|
+
|
23
|
+
limitations:
|
24
|
+
- liability
|
25
|
+
- warranty
|
26
|
+
|
27
|
+
---
|
28
|
+
|
29
|
+
BSD 4-Clause License
|
30
|
+
|
31
|
+
Copyright (c) [year], [fullname]
|
32
|
+
All rights reserved.
|
33
|
+
|
34
|
+
Redistribution and use in source and binary forms, with or without
|
35
|
+
modification, are permitted provided that the following conditions are met:
|
36
|
+
|
37
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
38
|
+
list of conditions and the following disclaimer.
|
39
|
+
|
40
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
41
|
+
this list of conditions and the following disclaimer in the documentation
|
42
|
+
and/or other materials provided with the distribution.
|
43
|
+
|
44
|
+
3. All advertising materials mentioning features or use of this software must
|
45
|
+
display the following acknowledgement:
|
46
|
+
This product includes software developed by [project].
|
47
|
+
|
48
|
+
4. Neither the name of the copyright holder nor the names of its
|
49
|
+
contributors may be used to endorse or promote products derived from
|
50
|
+
this software without specific prior written permission.
|
51
|
+
|
52
|
+
THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR
|
53
|
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
54
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
55
|
+
EVENT SHALL COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
56
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
57
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
58
|
+
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
59
|
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
60
|
+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
61
|
+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
title: Boost Software License 1.0
|
3
3
|
spdx-id: BSL-1.0
|
4
|
-
|
4
|
+
hidden: false
|
5
5
|
|
6
6
|
description: A simple permissive license only requiring preservation of copyright and license notices for source (and not binary) distribution. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
|
7
7
|
|
@@ -10,6 +10,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
|
|
10
10
|
note: Boost recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the [Boost Software License FAQ](https://www.boost.org/users/license.html#FAQ).
|
11
11
|
|
12
12
|
using:
|
13
|
+
- Boost: https://github.com/boostorg/boost/blob/master/LICENSE_1_0.txt
|
14
|
+
- Catch2: https://github.com/catchorg/Catch2/blob/master/LICENSE.txt
|
15
|
+
- DMD: https://github.com/dlang/dmd/blob/master/LICENSE.txt
|
13
16
|
|
14
17
|
permissions:
|
15
18
|
- commercial-use
|
@@ -18,7 +21,7 @@ permissions:
|
|
18
21
|
- private-use
|
19
22
|
|
20
23
|
conditions:
|
21
|
-
- include-copyright
|
24
|
+
- include-copyright--source
|
22
25
|
|
23
26
|
limitations:
|
24
27
|
- liability
|
@@ -1,13 +1,15 @@
|
|
1
1
|
---
|
2
2
|
title: Creative Commons Attribution 4.0 International
|
3
3
|
spdx-id: CC-BY-4.0
|
4
|
-
source: https://creativecommons.org/licenses/by/4.0/legalcode.txt
|
5
4
|
|
6
5
|
description: Permits almost any use subject to providing credit and license notice. Frequently used for media assets and educational materials. The most common license for Open Access scientific publications. Not recommended for software.
|
7
6
|
|
8
7
|
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. It is also acceptable to solely supply a link to a copy of the license, usually to the <a href='https://creativecommons.org/licenses/by/4.0/'>canonical URL for the license</a>.
|
9
8
|
|
10
9
|
using:
|
10
|
+
- caniuse: https://github.com/Fyrd/caniuse/blob/master/LICENSE
|
11
|
+
- WHATWG HTML standard: https://github.com/whatwg/html/blob/master/LICENSE
|
12
|
+
- Kubernetes documentation: https://github.com/kubernetes/website/blob/master/LICENSE
|
11
13
|
|
12
14
|
permissions:
|
13
15
|
- commercial-use
|