licensee 9.14.1 → 9.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +1 -1
- data/bin/licensee +1 -1
- data/lib/licensee/commands/detect.rb +2 -4
- data/lib/licensee/commands/diff.rb +1 -3
- data/lib/licensee/content_helper.rb +29 -27
- data/lib/licensee/hash_helper.rb +1 -1
- data/lib/licensee/license.rb +28 -14
- data/lib/licensee/matchers/copyright.rb +2 -7
- data/lib/licensee/matchers/cran.rb +1 -1
- data/lib/licensee/matchers/dice.rb +1 -1
- data/lib/licensee/project_files/license_file.rb +29 -22
- data/lib/licensee/project_files/project_file.rb +2 -4
- data/lib/licensee/project_files/readme_file.rb +1 -1
- data/lib/licensee/projects/fs_project.rb +1 -3
- data/lib/licensee/projects/git_project.rb +6 -4
- data/lib/licensee/projects/project.rb +11 -10
- data/lib/licensee/version.rb +1 -1
- data/lib/licensee.rb +1 -1
- data/licensee.gemspec +5 -4
- data/spec/fixture_spec.rb +2 -2
- data/spec/fixtures/bsd-3-authorowner/LICENSE +27 -0
- data/spec/fixtures/cc-by-sa-mdlinks/License.md +173 -0
- data/spec/fixtures/cc-by-sa-nocclicensor/License.md +425 -0
- data/spec/fixtures/detect.json +5 -5
- data/spec/fixtures/eupl-cal2017/LICENSE.txt +274 -0
- data/spec/fixtures/fixtures.yml +45 -25
- data/spec/fixtures/license-hashes.json +39 -38
- data/spec/fixtures/pixar-modified-apache/LICENSE.txt +174 -0
- data/spec/integration_spec.rb +46 -6
- data/spec/licensee/commands/detect_spec.rb +2 -2
- data/spec/licensee/content_helper_spec.rb +18 -13
- data/spec/licensee/license_spec.rb +5 -5
- data/spec/licensee/matchers/dice_matcher_spec.rb +2 -2
- data/spec/licensee/project_files/license_file_spec.rb +8 -2
- data/spec/licensee/project_spec.rb +1 -3
- data/spec/licensee_spec.rb +1 -1
- data/spec/spec_helper.rb +3 -3
- data/spec/vendored_license_spec.rb +1 -1
- data/vendor/choosealicense.com/_licenses/apache-2.0.txt +1 -1
- data/vendor/choosealicense.com/_licenses/bsl-1.0.txt +1 -1
- data/vendor/choosealicense.com/_licenses/eupl-1.2.txt +75 -58
- data/vendor/choosealicense.com/_licenses/mit-0.txt +45 -0
- data/vendor/choosealicense.com/_licenses/odbl-1.0.txt +1 -1
- data/vendor/choosealicense.com/_licenses/unlicense.txt +1 -1
- data/vendor/license-list-XML/src/0BSD.xml +21 -0
- data/vendor/license-list-XML/src/AFL-3.0.xml +212 -0
- data/vendor/license-list-XML/src/AGPL-3.0.xml +852 -0
- data/vendor/license-list-XML/src/Apache-2.0.xml +223 -0
- data/vendor/license-list-XML/src/Artistic-2.0.xml +238 -0
- data/vendor/license-list-XML/src/BSD-2-Clause.xml +42 -0
- data/vendor/license-list-XML/src/BSD-3-Clause-Clear.xml +59 -0
- data/vendor/license-list-XML/src/BSD-3-Clause.xml +46 -0
- data/vendor/license-list-XML/src/BSD-4-Clause.xml +59 -0
- data/vendor/license-list-XML/src/BSL-1.0.xml +30 -0
- data/vendor/license-list-XML/src/CC-BY-4.0.xml +444 -0
- data/vendor/license-list-XML/src/CC-BY-SA-4.0.xml +475 -0
- data/vendor/license-list-XML/src/CC0-1.0.xml +153 -0
- data/vendor/license-list-XML/src/CECILL-2.1.xml +669 -0
- data/vendor/license-list-XML/src/ECL-2.0.xml +242 -0
- data/vendor/license-list-XML/src/EPL-1.0.xml +255 -0
- data/vendor/license-list-XML/src/EPL-2.0.xml +639 -0
- data/vendor/license-list-XML/src/EUPL-1.1.xml +337 -0
- data/vendor/license-list-XML/src/EUPL-1.2.xml +502 -0
- data/vendor/license-list-XML/src/GPL-2.0.xml +474 -0
- data/vendor/license-list-XML/src/GPL-3.0.xml +858 -0
- data/vendor/license-list-XML/src/ISC.xml +29 -0
- data/vendor/license-list-XML/src/LGPL-2.1.xml +662 -0
- data/vendor/license-list-XML/src/LGPL-3.0.xml +260 -0
- data/vendor/license-list-XML/src/LPPL-1.3c.xml +380 -0
- data/vendor/license-list-XML/src/MIT-0.xml +40 -0
- data/vendor/license-list-XML/src/MIT.xml +32 -0
- data/vendor/license-list-XML/src/MPL-2.0.xml +438 -0
- data/vendor/license-list-XML/src/MS-PL.xml +89 -0
- data/vendor/license-list-XML/src/MS-RL.xml +97 -0
- data/vendor/license-list-XML/src/NCSA.xml +60 -0
- data/vendor/license-list-XML/src/ODbL-1.0.xml +660 -0
- data/vendor/license-list-XML/src/OFL-1.1.xml +94 -0
- data/vendor/license-list-XML/src/OSL-3.0.xml +209 -0
- data/vendor/license-list-XML/src/PostgreSQL.xml +32 -0
- data/vendor/license-list-XML/src/UPL-1.0.xml +46 -0
- data/vendor/license-list-XML/src/Unlicense.xml +27 -0
- data/vendor/license-list-XML/src/Vim.xml +124 -0
- data/vendor/license-list-XML/src/WTFPL.xml +30 -0
- data/vendor/license-list-XML/src/Zlib.xml +38 -0
- metadata +71 -11
@@ -0,0 +1,97 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<SPDXLicenseCollection xmlns="http://www.spdx.org/license">
|
3
|
+
<license isOsiApproved="true" licenseId="MS-RL" name="Microsoft Reciprocal License">
|
4
|
+
<crossRefs>
|
5
|
+
<crossRef>http://www.microsoft.com/opensource/licenses.mspx</crossRef>
|
6
|
+
<crossRef>https://opensource.org/licenses/MS-RL</crossRef>
|
7
|
+
</crossRefs>
|
8
|
+
<text>
|
9
|
+
<titleText>
|
10
|
+
<p>Microsoft Reciprocal License (Ms-RL)</p>
|
11
|
+
</titleText>
|
12
|
+
|
13
|
+
<p>This license governs use of the accompanying software. If you use the software, you accept this license.
|
14
|
+
If you do not accept the license, do not use the software.</p>
|
15
|
+
<list>
|
16
|
+
<item>
|
17
|
+
<bullet>1.</bullet>
|
18
|
+
Definitions
|
19
|
+
<br/>The terms "reproduce," "reproduction," "derivative works,"
|
20
|
+
and "distribution" have the same meaning here as under U.S. copyright law.
|
21
|
+
|
22
|
+
<p>A "contribution" is the original software, or any additions or changes to the software.</p>
|
23
|
+
<p>A "contributor" is any person that distributes its contribution under this license.</p>
|
24
|
+
<p>"Licensed patents" are a contributor's patent claims that read directly on its
|
25
|
+
contribution.</p>
|
26
|
+
</item>
|
27
|
+
<item>
|
28
|
+
<bullet>2.</bullet>
|
29
|
+
Grant of Rights
|
30
|
+
<list>
|
31
|
+
<item>
|
32
|
+
<bullet>(A)</bullet>
|
33
|
+
Copyright Grant- Subject to the terms of this license, including the license conditions and
|
34
|
+
limitations in section 3, each contributor grants you a non-exclusive, worldwide,
|
35
|
+
royalty-free copyright license to reproduce its contribution, prepare derivative works of
|
36
|
+
its contribution, and distribute its contribution or any derivative works that you
|
37
|
+
create.
|
38
|
+
</item>
|
39
|
+
<item>
|
40
|
+
<bullet>(B)</bullet>
|
41
|
+
Patent Grant- Subject to the terms of this license, including the license conditions and
|
42
|
+
limitations in section 3, each contributor grants you a non-exclusive, worldwide,
|
43
|
+
royalty-free license under its licensed patents to make, have made, use, sell, offer for
|
44
|
+
sale, import, and/or otherwise dispose of its contribution in the software or derivative
|
45
|
+
works of the contribution in the software.
|
46
|
+
</item>
|
47
|
+
</list>
|
48
|
+
</item>
|
49
|
+
<item>
|
50
|
+
<bullet>3.</bullet>
|
51
|
+
Conditions and Limitations
|
52
|
+
<list>
|
53
|
+
<item>
|
54
|
+
<bullet>(A)</bullet>
|
55
|
+
Reciprocal Grants- For any file you distribute that contains code from the software (in
|
56
|
+
source code or binary format), you must provide recipients the source code to that file
|
57
|
+
along with a copy of this license, which license will govern that file. You may license
|
58
|
+
other files that are entirely your own work and do not contain code from the software
|
59
|
+
under any terms you choose.
|
60
|
+
</item>
|
61
|
+
<item>
|
62
|
+
<bullet>(B)</bullet>
|
63
|
+
No Trademark License- This license does not grant you rights to use any contributors'
|
64
|
+
name, logo, or trademarks.
|
65
|
+
</item>
|
66
|
+
<item>
|
67
|
+
<bullet>(C)</bullet>
|
68
|
+
If you bring a patent claim against any contributor over patents that you claim are infringed
|
69
|
+
by the software, your patent license from such contributor to the software ends
|
70
|
+
automatically.
|
71
|
+
</item>
|
72
|
+
<item>
|
73
|
+
<bullet>(D)</bullet>
|
74
|
+
If you distribute any portion of the software, you must retain all copyright, patent,
|
75
|
+
trademark, and attribution notices that are present in the software.
|
76
|
+
</item>
|
77
|
+
<item>
|
78
|
+
<bullet>(E)</bullet>
|
79
|
+
If you distribute any portion of the software in source code form, you may do so only under
|
80
|
+
this license by including a complete copy of this license with your distribution. If you
|
81
|
+
distribute any portion of the software in compiled or object code form, you may only do so
|
82
|
+
under a license that complies with this license.
|
83
|
+
</item>
|
84
|
+
<item>
|
85
|
+
<bullet>(F)</bullet>
|
86
|
+
The software is licensed "as-is." You bear the risk of using it. The contributors
|
87
|
+
give no express warranties, guarantees, or conditions. You may have additional consumer
|
88
|
+
rights under your local laws which this license cannot change. To the extent permitted
|
89
|
+
under your local laws, the contributors exclude the implied warranties of merchantability,
|
90
|
+
fitness for a particular purpose and non-infringement.
|
91
|
+
</item>
|
92
|
+
</list>
|
93
|
+
</item>
|
94
|
+
</list>
|
95
|
+
</text>
|
96
|
+
</license>
|
97
|
+
</SPDXLicenseCollection>
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<SPDXLicenseCollection xmlns="http://www.spdx.org/license">
|
3
|
+
<license isOsiApproved="true" licenseId="NCSA"
|
4
|
+
name="University of Illinois/NCSA Open Source License">
|
5
|
+
<crossRefs>
|
6
|
+
<crossRef>http://otm.illinois.edu/uiuc_openSource</crossRef>
|
7
|
+
<crossRef>https://opensource.org/licenses/NCSA</crossRef>
|
8
|
+
</crossRefs>
|
9
|
+
<text>
|
10
|
+
<titleText>
|
11
|
+
<p>University of Illinois/NCSA Open Source License</p>
|
12
|
+
</titleText>
|
13
|
+
<copyrightText>
|
14
|
+
|
15
|
+
<p>Copyright (c) <Year> <Owner Organization Name>. All rights reserved.
|
16
|
+
</p>
|
17
|
+
</copyrightText>
|
18
|
+
|
19
|
+
<p>Developed by:
|
20
|
+
<alt match=".+" name="organization">
|
21
|
+
<br/><Name of Development Group>
|
22
|
+
<br/><Name of Institution>
|
23
|
+
<br/><URL for Development Group/Institution></alt>
|
24
|
+
</p>
|
25
|
+
|
26
|
+
|
27
|
+
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
28
|
+
associated documentation files (the "Software"), to deal with the Software without restriction,
|
29
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
30
|
+
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
31
|
+
subject to the following conditions:</p>
|
32
|
+
<list>
|
33
|
+
<item>
|
34
|
+
<bullet>*</bullet>
|
35
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions
|
36
|
+
and the following disclaimers.
|
37
|
+
</item>
|
38
|
+
<item>
|
39
|
+
<bullet>*</bullet>
|
40
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
41
|
+
and the following disclaimers in the documentation and/or other materials provided with the
|
42
|
+
distribution.
|
43
|
+
</item>
|
44
|
+
<item>
|
45
|
+
<bullet>*</bullet>
|
46
|
+
Neither the names of
|
47
|
+
<alt match=".+" name="organizationClause3"><Name of Development Group, Name of
|
48
|
+
Institution></alt>, nor the names of its contributors may be used to endorse or promote
|
49
|
+
products derived from this Software without specific prior written permission.
|
50
|
+
|
51
|
+
</item>
|
52
|
+
</list>
|
53
|
+
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
54
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
55
|
+
NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
56
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
57
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.</p>
|
58
|
+
</text>
|
59
|
+
</license>
|
60
|
+
</SPDXLicenseCollection>
|