licensee 9.14.1 → 9.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +1 -1
  3. data/bin/licensee +1 -1
  4. data/lib/licensee/commands/detect.rb +2 -4
  5. data/lib/licensee/commands/diff.rb +1 -3
  6. data/lib/licensee/content_helper.rb +29 -27
  7. data/lib/licensee/hash_helper.rb +1 -1
  8. data/lib/licensee/license.rb +28 -14
  9. data/lib/licensee/matchers/copyright.rb +2 -7
  10. data/lib/licensee/matchers/cran.rb +1 -1
  11. data/lib/licensee/matchers/dice.rb +1 -1
  12. data/lib/licensee/project_files/license_file.rb +29 -22
  13. data/lib/licensee/project_files/project_file.rb +2 -4
  14. data/lib/licensee/project_files/readme_file.rb +1 -1
  15. data/lib/licensee/projects/fs_project.rb +1 -3
  16. data/lib/licensee/projects/git_project.rb +6 -4
  17. data/lib/licensee/projects/project.rb +11 -10
  18. data/lib/licensee/version.rb +1 -1
  19. data/lib/licensee.rb +1 -1
  20. data/licensee.gemspec +5 -4
  21. data/spec/fixture_spec.rb +2 -2
  22. data/spec/fixtures/bsd-3-authorowner/LICENSE +27 -0
  23. data/spec/fixtures/cc-by-sa-mdlinks/License.md +173 -0
  24. data/spec/fixtures/cc-by-sa-nocclicensor/License.md +425 -0
  25. data/spec/fixtures/detect.json +5 -5
  26. data/spec/fixtures/eupl-cal2017/LICENSE.txt +274 -0
  27. data/spec/fixtures/fixtures.yml +45 -25
  28. data/spec/fixtures/license-hashes.json +39 -38
  29. data/spec/fixtures/pixar-modified-apache/LICENSE.txt +174 -0
  30. data/spec/integration_spec.rb +46 -6
  31. data/spec/licensee/commands/detect_spec.rb +2 -2
  32. data/spec/licensee/content_helper_spec.rb +18 -13
  33. data/spec/licensee/license_spec.rb +5 -5
  34. data/spec/licensee/matchers/dice_matcher_spec.rb +2 -2
  35. data/spec/licensee/project_files/license_file_spec.rb +8 -2
  36. data/spec/licensee/project_spec.rb +1 -3
  37. data/spec/licensee_spec.rb +1 -1
  38. data/spec/spec_helper.rb +3 -3
  39. data/spec/vendored_license_spec.rb +1 -1
  40. data/vendor/choosealicense.com/_licenses/apache-2.0.txt +1 -1
  41. data/vendor/choosealicense.com/_licenses/bsl-1.0.txt +1 -1
  42. data/vendor/choosealicense.com/_licenses/eupl-1.2.txt +75 -58
  43. data/vendor/choosealicense.com/_licenses/mit-0.txt +45 -0
  44. data/vendor/choosealicense.com/_licenses/odbl-1.0.txt +1 -1
  45. data/vendor/choosealicense.com/_licenses/unlicense.txt +1 -1
  46. data/vendor/license-list-XML/src/0BSD.xml +21 -0
  47. data/vendor/license-list-XML/src/AFL-3.0.xml +212 -0
  48. data/vendor/license-list-XML/src/AGPL-3.0.xml +852 -0
  49. data/vendor/license-list-XML/src/Apache-2.0.xml +223 -0
  50. data/vendor/license-list-XML/src/Artistic-2.0.xml +238 -0
  51. data/vendor/license-list-XML/src/BSD-2-Clause.xml +42 -0
  52. data/vendor/license-list-XML/src/BSD-3-Clause-Clear.xml +59 -0
  53. data/vendor/license-list-XML/src/BSD-3-Clause.xml +46 -0
  54. data/vendor/license-list-XML/src/BSD-4-Clause.xml +59 -0
  55. data/vendor/license-list-XML/src/BSL-1.0.xml +30 -0
  56. data/vendor/license-list-XML/src/CC-BY-4.0.xml +444 -0
  57. data/vendor/license-list-XML/src/CC-BY-SA-4.0.xml +475 -0
  58. data/vendor/license-list-XML/src/CC0-1.0.xml +153 -0
  59. data/vendor/license-list-XML/src/CECILL-2.1.xml +669 -0
  60. data/vendor/license-list-XML/src/ECL-2.0.xml +242 -0
  61. data/vendor/license-list-XML/src/EPL-1.0.xml +255 -0
  62. data/vendor/license-list-XML/src/EPL-2.0.xml +639 -0
  63. data/vendor/license-list-XML/src/EUPL-1.1.xml +337 -0
  64. data/vendor/license-list-XML/src/EUPL-1.2.xml +502 -0
  65. data/vendor/license-list-XML/src/GPL-2.0.xml +474 -0
  66. data/vendor/license-list-XML/src/GPL-3.0.xml +858 -0
  67. data/vendor/license-list-XML/src/ISC.xml +29 -0
  68. data/vendor/license-list-XML/src/LGPL-2.1.xml +662 -0
  69. data/vendor/license-list-XML/src/LGPL-3.0.xml +260 -0
  70. data/vendor/license-list-XML/src/LPPL-1.3c.xml +380 -0
  71. data/vendor/license-list-XML/src/MIT-0.xml +40 -0
  72. data/vendor/license-list-XML/src/MIT.xml +32 -0
  73. data/vendor/license-list-XML/src/MPL-2.0.xml +438 -0
  74. data/vendor/license-list-XML/src/MS-PL.xml +89 -0
  75. data/vendor/license-list-XML/src/MS-RL.xml +97 -0
  76. data/vendor/license-list-XML/src/NCSA.xml +60 -0
  77. data/vendor/license-list-XML/src/ODbL-1.0.xml +660 -0
  78. data/vendor/license-list-XML/src/OFL-1.1.xml +94 -0
  79. data/vendor/license-list-XML/src/OSL-3.0.xml +209 -0
  80. data/vendor/license-list-XML/src/PostgreSQL.xml +32 -0
  81. data/vendor/license-list-XML/src/UPL-1.0.xml +46 -0
  82. data/vendor/license-list-XML/src/Unlicense.xml +27 -0
  83. data/vendor/license-list-XML/src/Vim.xml +124 -0
  84. data/vendor/license-list-XML/src/WTFPL.xml +30 -0
  85. data/vendor/license-list-XML/src/Zlib.xml +38 -0
  86. metadata +71 -11
@@ -0,0 +1,337 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <SPDXLicenseCollection xmlns="http://www.spdx.org/license">
3
+ <license isOsiApproved="true" licenseId="EUPL-1.1"
4
+ name="European Union Public License 1.1">
5
+ <crossRefs>
6
+ <crossRef>https://joinup.ec.europa.eu/software/page/eupl/licence-eupl</crossRef>
7
+ <crossRef>https://joinup.ec.europa.eu/sites/default/files/custom-page/attachment/eupl1.1.-licence-en_0.pdf</crossRef>
8
+ <crossRef>https://opensource.org/licenses/EUPL-1.1</crossRef>
9
+ </crossRefs>
10
+ <notes>This license was released: 16 May 2008 This license is available in the 22 official languages of the EU. The
11
+ English version is included here.</notes>
12
+ <text>
13
+ <titleText>
14
+ <p>European Union Public Licence V. 1.1</p>
15
+ </titleText>
16
+ <copyrightText>
17
+ <p>EUPL (c) the European Community 2007</p>
18
+ </copyrightText>
19
+
20
+ <p>This European Union Public Licence (the "EUPL") applies to the Work or Software (as defined below) which
21
+ is provided under the terms of this Licence. Any use of the Work, other than as authorised under this
22
+ Licence is prohibited (to the extent such use is covered by a right of the copyright holder of the
23
+ Work).</p>
24
+ <p>The Original Work is provided under the terms of this Licence when the Licensor (as defined below) has
25
+ placed the following notice immediately following the copyright notice for the Original Work:</p>
26
+ <list>
27
+ <item>
28
+ <p>Licensed under the EUPL V.1.1</p>
29
+ </item>
30
+ <item>
31
+ <p>or has expressed by any other mean his willingness to license under the EUPL.</p>
32
+ </item>
33
+ </list>
34
+ <list>
35
+ <item>
36
+ <bullet>1.</bullet>
37
+ Definitions
38
+ <p>In this Licence, the following terms have the following meaning:</p>
39
+ <list>
40
+ <item>
41
+ <bullet>-</bullet>
42
+ The Licence: this Licence.
43
+ </item>
44
+ <item>
45
+ <bullet>-</bullet>
46
+ The Original Work or the Software: the software distributed and/or communicated by the
47
+ Licensor under this Licence, available as Source Code and also as Executable Code as the
48
+ case may be.
49
+ </item>
50
+ <item>
51
+ <bullet>-</bullet>
52
+ Derivative Works: the works or software that could be created by the Licensee, based upon the
53
+ Original Work or modifications thereof. This Licence does not define the extent of
54
+ modification or dependence on the Original Work required in order to classify a work as a
55
+ Derivative Work; this extent is determined by copyright law applicable in the country
56
+ mentioned in Article 15.
57
+ </item>
58
+ <item>
59
+ <bullet>-</bullet>
60
+ The Work: the Original Work and/or its Derivative Works.
61
+ </item>
62
+ <item>
63
+ <bullet>-</bullet>
64
+ The Source Code: the human-readable form of the Work which is the most convenient for people
65
+ to study and modify.
66
+ </item>
67
+ <item>
68
+ <bullet>-</bullet>
69
+ The Executable Code: any code which has generally been compiled and which is meant to be
70
+ interpreted by a computer as a program.
71
+ </item>
72
+ <item>
73
+ <bullet>-</bullet>
74
+ The Licensor: the natural or legal person that distributes and/or communicates the Work under
75
+ the Licence.
76
+ </item>
77
+ <item>
78
+ <bullet>-</bullet>
79
+ Contributor(s): any natural or legal person who modifies the Work under the Licence, or
80
+ otherwise contributes to the creation of a Derivative Work.
81
+ </item>
82
+ <item>
83
+ <bullet>-</bullet>
84
+ The Licensee or "You": any natural or legal person who makes any usage of the Software under
85
+ the terms of the Licence.
86
+ </item>
87
+ <item>
88
+ <bullet>-</bullet>
89
+ Distribution and/or Communication: any act of selling, giving, lending, renting,
90
+ distributing, communicating, transmitting, or otherwise making available, on-line or
91
+ off-line, copies of the Work or providing access to its essential functionalities at the
92
+ disposal of any other natural or legal person.
93
+ </item>
94
+ </list>
95
+ </item>
96
+ <item>
97
+ <bullet>2.</bullet>
98
+ Scope of the rights granted by the Licence
99
+ <p>The Licensor hereby grants You a world-wide, royalty-free, non-exclusive, sublicensable licence
100
+ to do the following, for the duration of copyright vested in the Original Work:</p>
101
+ <list>
102
+ <item>
103
+ <bullet>-</bullet>
104
+ use the Work in any circumstance and for all usage,
105
+ </item>
106
+ <item>
107
+ <bullet>-</bullet>
108
+ reproduce the Work,
109
+ </item>
110
+ <item>
111
+ <bullet>-</bullet>
112
+ modify the Original Work, and make Derivative Works based upon the Work,
113
+ </item>
114
+ <item>
115
+ <bullet>-</bullet>
116
+ communicate to the public, including the right to make available or display the Work or
117
+ copies thereof to the public and perform publicly, as the case may be, the Work,
118
+ </item>
119
+ <item>
120
+ <bullet>-</bullet>
121
+ distribute the Work or copies thereof,
122
+ </item>
123
+ <item>
124
+ <bullet>-</bullet>
125
+ lend and rent the Work or copies thereof,
126
+ </item>
127
+ <item>
128
+ <bullet>-</bullet>
129
+ sub-license rights in the Work or copies thereof.
130
+ </item>
131
+ </list>
132
+ <p>Those rights can be exercised on any media, supports and formats, whether now known or later
133
+ invented, as far as the applicable law permits so.</p>
134
+ <p>In the countries where moral rights apply, the Licensor waives his right to exercise his
135
+ moral right to the extent allowed by law in order to make effective the licence of the
136
+ economic rights here above listed.</p>
137
+ <p>The Licensor grants to the Licensee royalty-free, non exclusive usage rights to any patents
138
+ held by the Licensor, to the extent necessary to make use of the rights granted on the
139
+ Work under this Licence.</p>
140
+ </item>
141
+ <item>
142
+ <bullet>3.</bullet>
143
+ Communication of the Source Code
144
+ <p>The Licensor may provide the Work either in its Source Code form, or as Executable Code. If the
145
+ Work is provided as Executable Code, the Licensor provides in addition a machine-readable copy
146
+ of the Source Code of the Work along with each copy of the Work that the Licensor distributes
147
+ or indicates, in a notice following the copyright notice attached to the Work, a repository
148
+ where the Source Code is easily and freely accessible for as long as the Licensor continues to
149
+ distribute and/or communicate the Work.</p>
150
+ </item>
151
+ <item>
152
+ <bullet>4.</bullet>
153
+ Limitations on copyright
154
+ <p>Nothing in this Licence is intended to deprive the Licensee of the benefits from any exception or
155
+ limitation to the exclusive rights of the rights owners in the Original Work or Software, of
156
+ the exhaustion of those rights or of other applicable limitations thereto.</p>
157
+ </item>
158
+ <item>
159
+ <bullet>5.</bullet>
160
+ Obligations of the Licensee
161
+ <p>The grant of the rights mentioned above is subject to some restrictions and obligations imposed
162
+ on the Licensee. Those obligations are the following:</p>
163
+ <p>Attribution right: the Licensee shall keep intact all copyright, patent or trademarks notices and
164
+ all notices that refer to the Licence and to the disclaimer of warranties. The Licensee must
165
+ include a copy of such notices and a copy of the Licence with every copy of the Work he/she
166
+ distributes and/or communicates. The Licensee must cause any Derivative Work to carry
167
+ prominent notices stating that the Work has been modified and the date of modification.</p>
168
+ <p>Copyleft clause: If the Licensee distributes and/or communicates copies of the Original Works or
169
+ Derivative Works based upon the Original Work, this Distribution and/or Communication will be
170
+ done under the terms of this Licence or of a later version of this Licence unless the Original
171
+ Work is expressly distributed only under this version of the Licence. The Licensee (becoming
172
+ Licensor) cannot offer or impose any additional terms or conditions on the Work or Derivative
173
+ Work that alter or restrict the terms of the Licence.</p>
174
+ <p>Compatibility clause: If the Licensee Distributes and/or Communicates Derivative Works or copies
175
+ thereof based upon both the Original Work and another work licensed under a Compatible
176
+ Licence, this Distribution and/or Communication can be done under the terms of this Compatible
177
+ Licence. For the sake of this clause, "Compatible Licence," refers to the licences listed in
178
+ the appendix attached to this Licence. Should the Licensee's obligations under the Compatible
179
+ Licence conflict with his/her obligations under this Licence, the obligations of the
180
+ Compatible Licence shall prevail.</p>
181
+ <p>Provision of Source Code: When distributing and/or communicating copies of the Work, the Licensee
182
+ will provide a machine-readable copy of the Source Code or indicate a repository where this
183
+ Source will be easily and freely available for as long as the Licensee continues to distribute
184
+ and/or communicate the Work.</p>
185
+ <p>Legal Protection: This Licence does not grant permission to use the trade names, trademarks,
186
+ service marks, or names of the Licensor, except as required for reasonable and customary use
187
+ in describing the origin of the Work and reproducing the content of the copyright notice.</p>
188
+ </item>
189
+ <item>
190
+ <bullet>6.</bullet>
191
+ Chain of Authorship
192
+ <p>The original Licensor warrants that the copyright in the Original Work granted hereunder is owned
193
+ by him/her or licensed to him/her and that he/she has the power and authority to grant the
194
+ Licence.</p>
195
+ <p>Each Contributor warrants that the copyright in the modifications he/she brings to the Work are
196
+ owned by him/her or licensed to him/her and that he/she has the power and authority to grant
197
+ the Licence.</p>
198
+ <p>Each time You accept the Licence, the original Licensor and subsequent Contributors grant You a
199
+ licence to their contributions to the Work, under the terms of this Licence.</p>
200
+ </item>
201
+ <item>
202
+ <bullet>7.</bullet>
203
+ Disclaimer of Warranty
204
+ <p>The Work is a work in progress, which is continuously improved by numerous contributors. It is
205
+ not a finished work and may therefore contain defects or "bugs" inherent to this type of
206
+ software development.</p>
207
+ <p>For the above reason, the Work is provided under the Licence on an "as is" basis and without
208
+ warranties of any kind concerning the Work, including without limitation merchantability,
209
+ fitness for a particular purpose, absence of defects or errors, accuracy, non-infringement of
210
+ intellectual property rights other than copyright as stated in Article 6 of this Licence.</p>
211
+ <p>This disclaimer of warranty is an essential part of the Licence and a condition for the grant of
212
+ any rights to the Work.</p>
213
+ </item>
214
+ <item>
215
+ <bullet>8.</bullet>
216
+ Disclaimer of Liability
217
+ <p>Except in the cases of wilful misconduct or damages directly caused to natural persons, the
218
+ Licensor will in no event be liable for any direct or indirect, material or moral, damages of
219
+ any kind, arising out of the Licence or of the use of the Work, including without limitation,
220
+ damages for loss of goodwill, work stoppage, computer failure or malfunction, loss of data or
221
+ any commercial damage, even if the Licensor has been advised of the possibility of such
222
+ damage. However, the Licensor will be liable under statutory product liability laws as far
223
+ such laws apply to the Work.</p>
224
+ </item>
225
+ <item>
226
+ <bullet>9.</bullet>
227
+ Additional agreements
228
+ <p>While distributing the Original Work or Derivative Works, You may choose to conclude an
229
+ additional agreement to offer, and charge a fee for, acceptance of support, warranty,
230
+ indemnity, or other liability obligations and/or services consistent with this Licence.
231
+ However, in accepting such obligations, You may act only on your own behalf and on your sole
232
+ responsibility, not on behalf of the original Licensor or any other Contributor, and only if
233
+ You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred
234
+ by, or claims asserted against such Contributor by the fact You have accepted any such
235
+ warranty or additional liability.</p>
236
+ </item>
237
+ <item>
238
+ <bullet>10.</bullet>
239
+ Acceptance of the Licence
240
+ <p>The provisions of this Licence can be accepted by clicking on an icon "I agree" placed under the
241
+ bottom of a window displaying the text of this Licence or by affirming consent in any other
242
+ similar way, in accordance with the rules of applicable law. Clicking on that icon indicates
243
+ your clear and irrevocable acceptance of this Licence and all of its terms and conditions.</p>
244
+ <p>Similarly, you irrevocably accept this Licence and all of its terms and conditions by exercising
245
+ any rights granted to You by Article 2 of this Licence, such as the use of the Work, the
246
+ creation by You of a Derivative Work or the Distribution and/or Communication by You of the
247
+ Work or copies thereof.</p>
248
+ </item>
249
+ <item>
250
+ <bullet>11.</bullet>
251
+ Information to the public
252
+ <p>In case of any Distribution and/or Communication of the Work by means of electronic communication
253
+ by You (for example, by offering to download the Work from a remote location) the distribution
254
+ channel or media (for example, a website) must at least provide to the public the information
255
+ requested by the applicable law regarding the Licensor, the Licence and the way it may be
256
+ accessible, concluded, stored and reproduced by the Licensee.</p>
257
+ </item>
258
+ <item>
259
+ <bullet>12.</bullet>
260
+ Termination of the Licence
261
+ <p>The Licence and the rights granted hereunder will terminate automatically upon any breach by the
262
+ Licensee of the terms of the Licence. Such a termination will not terminate the licences of
263
+ any person who has received the Work from the Licensee under the Licence, provided such
264
+ persons remain in full compliance with the Licence.</p>
265
+ </item>
266
+ <item>
267
+ <bullet>13.</bullet>
268
+ Miscellaneous
269
+ <p>Without prejudice of Article 9 above, the Licence represents the complete agreement between the
270
+ Parties as to the Work licensed hereunder.</p>
271
+ <p>If any provision of the Licence is invalid or unenforceable under applicable law, this will not
272
+ affect the validity or enforceability of the Licence as a whole. Such provision will be
273
+ construed and/or reformed so as necessary to make it valid and enforceable.</p>
274
+ <p>The European Commission may publish other linguistic versions and/or new versions of this
275
+ Licence, so far this is required and reasonable, without reducing the scope of the rights
276
+ granted by the Licence. New versions of the Licence will be published with a unique version
277
+ number.</p>
278
+ <p>All linguistic versions of this Licence, approved by the European Commission, have identical
279
+ value. Parties can take advantage of the linguistic version of their choice.</p>
280
+ </item>
281
+ <item>
282
+ <bullet>14.</bullet>
283
+ Jurisdiction
284
+ <p>Any litigation resulting from the interpretation of this License, arising between the European
285
+ Commission, as a Licensor, and any Licensee, will be subject to the jurisdiction of the Court
286
+ of Justice of the European Communities, as laid down in article 238 of the Treaty establishing
287
+ the European Community.</p>
288
+ <p>Any litigation arising between Parties, other than the European Commission, and resulting from
289
+ the interpretation of this License, will be subject to the exclusive jurisdiction of the
290
+ competent court where the Licensor resides or conducts its primary business.</p>
291
+ </item>
292
+ <item>
293
+ <bullet>15.</bullet>
294
+ Applicable Law
295
+ <p>This Licence shall be governed by the law of the European Union country where the Licensor
296
+ resides or has his registered office.</p>
297
+ <p>This licence shall be governed by the Belgian law if:</p>
298
+ <list>
299
+ <item>
300
+ <bullet>-</bullet>
301
+ a litigation arises between the European Commission, as a Licensor, and any Licensee;
302
+ </item>
303
+ <item>
304
+ <bullet>-</bullet>
305
+ the Licensor, other than the European Commission, has no residence or registered office
306
+ inside a European Union country.
307
+ </item>
308
+ </list>
309
+ </item>
310
+ </list>
311
+ <p>Appendix</p>
312
+ <p>"Compatible Licences" according to article 5 EUPL are:</p>
313
+ <list>
314
+ <item>
315
+ <bullet>-</bullet>
316
+ GNU General Public License (GNU GPL) v. 2
317
+ </item>
318
+ <item>
319
+ <bullet>-</bullet>
320
+ Open Software License (OSL) v. 2.1, v. 3.0
321
+ </item>
322
+ <item>
323
+ <bullet>-</bullet>
324
+ Common Public License v. 1.0
325
+ </item>
326
+ <item>
327
+ <bullet>-</bullet>
328
+ Eclipse Public License v. 1.0
329
+ </item>
330
+ <item>
331
+ <bullet>-</bullet>
332
+ Cecill v. 2.0
333
+ </item>
334
+ </list>
335
+ </text>
336
+ </license>
337
+ </SPDXLicenseCollection>