licensee 9.15.2 → 9.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/bin/licensee +4 -0
  3. data/lib/licensee/content_helper.rb +6 -5
  4. data/lib/licensee/license.rb +11 -3
  5. data/lib/licensee/matchers/copyright.rb +3 -1
  6. data/lib/licensee/matchers/dist_zilla.rb +1 -0
  7. data/lib/licensee/projects/github_project.rb +1 -1
  8. data/lib/licensee/version.rb +1 -1
  9. data/licensee.gemspec +3 -3
  10. data/spec/fixture_spec.rb +1 -1
  11. data/spec/fixtures/agpl-3.0_markdown/LICENSE.md +651 -0
  12. data/spec/fixtures/apache-2.0_markdown/LICENSE.md +195 -0
  13. data/spec/fixtures/{markdown-artistic → artistic-2.0_markdown}/LICENSE.md +0 -0
  14. data/spec/fixtures/bsd-2-author/LICENSE +22 -0
  15. data/spec/fixtures/bsd-3-clause_markdown/LICENSE.md +28 -0
  16. data/spec/fixtures/cc-by-4.0_markdown/LICENSE.md +157 -0
  17. data/spec/fixtures/cc-by-sa-4.0_markdown/LICENSE.md +171 -0
  18. data/spec/fixtures/cc0-1.0_markdown/LICENSE.md +41 -0
  19. data/spec/fixtures/detect.json +2 -2
  20. data/spec/fixtures/epl-1.0_markdown/LICENSE.md +76 -0
  21. data/spec/fixtures/fixtures.yml +105 -41
  22. data/spec/fixtures/gfdl-1.3_markdown/LICENSE.md +450 -0
  23. data/spec/fixtures/gpl-2.0_markdown/LICENSE.md +336 -0
  24. data/spec/fixtures/{markdown-gpl → gpl-2.0_markdown_headings}/LICENSE.md +0 -0
  25. data/spec/fixtures/gpl-3.0_markdown/LICENSE.md +595 -0
  26. data/spec/fixtures/lgpl-2.1_markdown/LICENSE.md +494 -0
  27. data/spec/fixtures/lgpl-3.0_markdown/LICENSE.md +163 -0
  28. data/spec/fixtures/license-hashes.json +10 -6
  29. data/spec/fixtures/mit_markdown/LICENSE.md +26 -0
  30. data/spec/fixtures/mpl-2.0_markdown/LICENSE.md +357 -0
  31. data/spec/fixtures/unlicense_markdown/LICENSE.md +27 -0
  32. data/spec/integration_spec.rb +11 -2
  33. data/spec/licensee/commands/detect_spec.rb +18 -2
  34. data/spec/licensee/content_helper_spec.rb +16 -0
  35. data/spec/licensee/license_meta_spec.rb +3 -3
  36. data/spec/licensee/license_spec.rb +7 -2
  37. data/spec/licensee/matchers/copyright_matcher_spec.rb +12 -3
  38. data/spec/licensee/matchers/dice_matcher_spec.rb +2 -2
  39. data/spec/licensee/matchers/reference_matcher_spec.rb +17 -0
  40. data/spec/licensee_spec.rb +1 -1
  41. data/vendor/choosealicense.com/_licenses/agpl-3.0.txt +3 -0
  42. data/vendor/choosealicense.com/_licenses/apache-2.0.txt +1 -1
  43. data/vendor/choosealicense.com/_licenses/bsd-2-clause.txt +0 -1
  44. data/vendor/choosealicense.com/_licenses/bsd-3-clause.txt +1 -1
  45. data/vendor/choosealicense.com/_licenses/bsl-1.0.txt +1 -1
  46. data/vendor/choosealicense.com/_licenses/cecill-2.1.txt +1 -0
  47. data/vendor/choosealicense.com/_licenses/cern-ohl-p-2.0.txt +216 -0
  48. data/vendor/choosealicense.com/_licenses/cern-ohl-s-2.0.txt +299 -0
  49. data/vendor/choosealicense.com/_licenses/cern-ohl-w-2.0.txt +321 -0
  50. data/vendor/choosealicense.com/_licenses/eupl-1.1.txt +1 -1
  51. data/vendor/choosealicense.com/_licenses/gfdl-1.3.txt +483 -0
  52. data/vendor/choosealicense.com/_licenses/mit.txt +1 -1
  53. data/vendor/choosealicense.com/_licenses/mulanpsl-2.0.txt +55 -56
  54. data/vendor/choosealicense.com/_licenses/unlicense.txt +1 -1
  55. data/vendor/license-list-XML/src/Artistic-2.0.xml +5 -3
  56. data/vendor/license-list-XML/src/BSD-3-Clause-Clear.xml +3 -1
  57. data/vendor/license-list-XML/src/BSD-3-Clause.xml +3 -1
  58. data/vendor/license-list-XML/src/BSD-4-Clause.xml +3 -3
  59. data/vendor/license-list-XML/src/CERN-OHL-P-2.0.xml +90 -0
  60. data/vendor/license-list-XML/src/CERN-OHL-S-2.0.xml +109 -0
  61. data/vendor/license-list-XML/src/CERN-OHL-W-2.0.xml +116 -0
  62. data/vendor/license-list-XML/src/GFDL-1.3.xml +594 -0
  63. data/vendor/license-list-XML/src/LGPL-3.0.xml +828 -1
  64. data/vendor/license-list-XML/src/MPL-2.0.xml +66 -29
  65. metadata +48 -12
@@ -0,0 +1,321 @@
1
+ ---
2
+ title: CERN Open Hardware Licence Version 2 - Weakly Reciprocal
3
+ spdx-id: CERN-OHL-W-2.0
4
+ nickname: CERN OHL v2 Weakly Reciprocal
5
+
6
+ description: Permissions of this weakly-reciprocal license are conditioned on making available complete sources of licensed works and modifications under the same license. Notices must be preserved. Contributors provide an express grant of patent rights. However, a larger work using the licensed work through interfaces provided by the licensed work may be distributed under different terms and without sources for the larger work.
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.
9
+
10
+ note: 'CERN <a href="https://ohwr.org/project/cernohl/wikis/uploads/c2e5e9d297949b5c2d324a6cbf6adda0/cern_ohl_w_v2_howto.pdf">recommends</a> adding the following information in the source files: copyright and license notice, a disclaimer of warranties and a source location. You can also include the source location in a part of the design which will be visible in the end product.'
11
+
12
+ using:
13
+ Simple PCIe FMC carrier: https://ohwr.org/project/spec/blob/master/LICENSES/CERN-OHL-W-2.0.txt
14
+ GProcessor8Bits: https://github.com/JonathSpirit/GP8B/blob/master/LICENSE
15
+ FPGA Cores: https://github.com/suoto/fpga_cores/blob/master/LICENSE
16
+
17
+ permissions:
18
+ - commercial-use
19
+ - modifications
20
+ - distribution
21
+ - private-use
22
+ - patent-use
23
+
24
+ conditions:
25
+ - include-copyright
26
+ - document-changes
27
+ - disclose-source
28
+ - same-license--library
29
+
30
+ limitations:
31
+ - liability
32
+ - warranty
33
+
34
+ ---
35
+ CERN Open Hardware Licence Version 2 - Weakly Reciprocal
36
+
37
+
38
+ Preamble
39
+
40
+ CERN has developed this licence to promote collaboration among hardware
41
+ designers and to provide a legal tool which supports the freedom to use,
42
+ study, modify, share and distribute hardware designs and products based on
43
+ those designs. Version 2 of the CERN Open Hardware Licence comes in three
44
+ variants: CERN-OHL-P (permissive); and two reciprocal licences: this licence,
45
+ CERN-OHL-W (weakly reciprocal) and CERN-OHL-S (strongly reciprocal).
46
+
47
+ The CERN-OHL-W is copyright CERN 2020. Anyone is welcome to use it, in
48
+ unmodified form only.
49
+
50
+ Use of this Licence does not imply any endorsement by CERN of any Licensor or
51
+ their designs nor does it imply any involvement by CERN in their development.
52
+
53
+
54
+ 1 Definitions
55
+
56
+ 1.1 'Licence' means this CERN-OHL-W.
57
+
58
+ 1.2 'Compatible Licence' means
59
+
60
+ a) any earlier version of the CERN Open Hardware licence, or
61
+
62
+ b) any version of the CERN-OHL-S or the CERN-OHL-W, or
63
+
64
+ c) any licence which permits You to treat the Source to which it
65
+ applies as licensed under CERN-OHL-S or CERN-OHL-W provided that on
66
+ Conveyance of any such Source, or any associated Product You treat
67
+ the Source in question as being licensed under CERN-OHL-S or
68
+ CERN-OHL-W as appropriate.
69
+
70
+ 1.3 'Source' means information such as design materials or digital code
71
+ which can be applied to Make or test a Product or to prepare a Product
72
+ for use, Conveyance or sale, regardless of its medium or how it is
73
+ expressed. It may include Notices.
74
+
75
+ 1.4 'Covered Source' means Source that is explicitly made available under
76
+ this Licence.
77
+
78
+ 1.5 'Product' means any device, component, work or physical object, whether
79
+ in finished or intermediate form, arising from the use, application or
80
+ processing of Covered Source.
81
+
82
+ 1.6 'Make' means to create or configure something, whether by manufacture,
83
+ assembly, compiling, loading or applying Covered Source or another
84
+ Product or otherwise.
85
+
86
+ 1.7 'Available Component' means any part, sub-assembly, library or code
87
+ which:
88
+
89
+ a) is licensed to You as Complete Source under a Compatible Licence; or
90
+
91
+ b) is available, at the time a Product or the Source containing it is
92
+ first Conveyed, to You and any other prospective licensees
93
+
94
+ i) with sufficient rights and information (including any
95
+ configuration and programming files and information about its
96
+ characteristics and interfaces) to enable it either to be Made
97
+ itself, or to be sourced and used to Make the Product; or
98
+ ii) as part of the normal distribution of a tool used to design or
99
+ Make the Product.
100
+
101
+ 1.8 'External Material' means anything (including Source) which:
102
+
103
+ a) is only combined with Covered Source in such a way that it
104
+ interfaces with the Covered Source using a documented interface
105
+ which is described in the Covered Source; and
106
+
107
+ b) is not a derivative of or contains Covered Source, or, if it is, it
108
+ is solely to the extent necessary to facilitate such interfacing.
109
+
110
+ 1.9 'Complete Source' means the set of all Source necessary to Make a
111
+ Product, in the preferred form for making modifications, including
112
+ necessary installation and interfacing information both for the Product,
113
+ and for any included Available Components. If the format is
114
+ proprietary, it must also be made available in a format (if the
115
+ proprietary tool can create it) which is viewable with a tool available
116
+ to potential licensees and licensed under a licence approved by the Free
117
+ Software Foundation or the Open Source Initiative. Complete Source need
118
+ not include the Source of any Available Component, provided that You
119
+ include in the Complete Source sufficient information to enable a
120
+ recipient to Make or source and use the Available Component to Make the
121
+ Product.
122
+
123
+ 1.10 'Source Location' means a location where a Licensor has placed Covered
124
+ Source, and which that Licensor reasonably believes will remain easily
125
+ accessible for at least three years for anyone to obtain a digital copy.
126
+
127
+ 1.11 'Notice' means copyright, acknowledgement and trademark notices, Source
128
+ Location references, modification notices (subsection 3.3(b)) and all
129
+ notices that refer to this Licence and to the disclaimer of warranties
130
+ that are included in the Covered Source.
131
+
132
+ 1.12 'Licensee' or 'You' means any person exercising rights under this
133
+ Licence.
134
+
135
+ 1.13 'Licensor' means a natural or legal person who creates or modifies
136
+ Covered Source. A person may be a Licensee and a Licensor at the same
137
+ time.
138
+
139
+ 1.14 'Convey' means to communicate to the public or distribute.
140
+
141
+
142
+ 2 Applicability
143
+
144
+ 2.1 This Licence governs the use, copying, modification, Conveying of
145
+ Covered Source and Products, and the Making of Products. By exercising
146
+ any right granted under this Licence, You irrevocably accept these terms
147
+ and conditions.
148
+
149
+ 2.2 This Licence is granted by the Licensor directly to You, and shall apply
150
+ worldwide and without limitation in time.
151
+
152
+ 2.3 You shall not attempt to restrict by contract or otherwise the rights
153
+ granted under this Licence to other Licensees.
154
+
155
+ 2.4 This Licence is not intended to restrict fair use, fair dealing, or any
156
+ other similar right.
157
+
158
+
159
+ 3 Copying, Modifying and Conveying Covered Source
160
+
161
+ 3.1 You may copy and Convey verbatim copies of Covered Source, in any
162
+ medium, provided You retain all Notices.
163
+
164
+ 3.2 You may modify Covered Source, other than Notices, provided that You
165
+ irrevocably undertake to make that modified Covered Source available
166
+ from a Source Location should You Convey a Product in circumstances
167
+ where the recipient does not otherwise receive a copy of the modified
168
+ Covered Source. In each case subsection 3.3 shall apply.
169
+
170
+ You may only delete Notices if they are no longer applicable to the
171
+ corresponding Covered Source as modified by You and You may add
172
+ additional Notices applicable to Your modifications.
173
+
174
+ 3.3 You may Convey modified Covered Source (with the effect that You shall
175
+ also become a Licensor) provided that You:
176
+
177
+ a) retain Notices as required in subsection 3.2;
178
+
179
+ b) add a Notice to the modified Covered Source stating that You have
180
+ modified it, with the date and brief description of how You have
181
+ modified it;
182
+
183
+ c) add a Source Location Notice for the modified Covered Source if You
184
+ Convey in circumstances where the recipient does not otherwise
185
+ receive a copy of the modified Covered Source; and
186
+
187
+ d) license the modified Covered Source under the terms and conditions
188
+ of this Licence (or, as set out in subsection 8.3, a later version,
189
+ if permitted by the licence of the original Covered Source). Such
190
+ modified Covered Source must be licensed as a whole, but excluding
191
+ Available Components contained in it or External Material to which
192
+ it is interfaced, which remain licensed under their own applicable
193
+ licences.
194
+
195
+
196
+ 4 Making and Conveying Products
197
+
198
+ 4.1 You may Make Products, and/or Convey them, provided that You either
199
+ provide each recipient with a copy of the Complete Source or ensure that
200
+ each recipient is notified of the Source Location of the Complete
201
+ Source. That Complete Source includes Covered Source and You must
202
+ accordingly satisfy Your obligations set out in subsection 3.3. If
203
+ specified in a Notice, the Product must visibly and securely display the
204
+ Source Location on it or its packaging or documentation in the manner
205
+ specified in that Notice.
206
+
207
+ 4.2 Where You Convey a Product which incorporates External Material, the
208
+ Complete Source for that Product which You are required to provide under
209
+ subsection 4.1 need not include any Source for the External Material.
210
+
211
+ 4.3 You may license Products under terms of Your choice, provided that such
212
+ terms do not restrict or attempt to restrict any recipients' rights
213
+ under this Licence to the Covered Source.
214
+
215
+
216
+ 5 Research and Development
217
+
218
+ You may Convey Covered Source, modified Covered Source or Products to a legal
219
+ entity carrying out development, testing or quality assurance work on Your
220
+ behalf provided that the work is performed on terms which prevent the entity
221
+ from both using the Source or Products for its own internal purposes and
222
+ Conveying the Source or Products or any modifications to them to any person
223
+ other than You. Any modifications made by the entity shall be deemed to be
224
+ made by You pursuant to subsection 3.2.
225
+
226
+
227
+ 6 DISCLAIMER AND LIABILITY
228
+
229
+ 6.1 DISCLAIMER OF WARRANTY -- The Covered Source and any Products are
230
+ provided 'as is' and any express or implied warranties, including, but
231
+ not limited to, implied warranties of merchantability, of satisfactory
232
+ quality, non-infringement of third party rights, and fitness for a
233
+ particular purpose or use are disclaimed in respect of any Source or
234
+ Product to the maximum extent permitted by law. The Licensor makes no
235
+ representation that any Source or Product does not or will not infringe
236
+ any patent, copyright, trade secret or other proprietary right. The
237
+ entire risk as to the use, quality, and performance of any Source or
238
+ Product shall be with You and not the Licensor. This disclaimer of
239
+ warranty is an essential part of this Licence and a condition for the
240
+ grant of any rights granted under this Licence.
241
+
242
+ 6.2 EXCLUSION AND LIMITATION OF LIABILITY -- The Licensor shall, to the
243
+ maximum extent permitted by law, have no liability for direct, indirect,
244
+ special, incidental, consequential, exemplary, punitive or other damages
245
+ of any character including, without limitation, procurement of
246
+ substitute goods or services, loss of use, data or profits, or business
247
+ interruption, however caused and on any theory of contract, warranty,
248
+ tort (including negligence), product liability or otherwise, arising in
249
+ any way in relation to the Covered Source, modified Covered Source
250
+ and/or the Making or Conveyance of a Product, even if advised of the
251
+ possibility of such damages, and You shall hold the Licensor(s) free and
252
+ harmless from any liability, costs, damages, fees and expenses,
253
+ including claims by third parties, in relation to such use.
254
+
255
+
256
+ 7 Patents
257
+
258
+ 7.1 Subject to the terms and conditions of this Licence, each Licensor
259
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
260
+ royalty-free, irrevocable (except as stated in subsections 7.2 and 8.4)
261
+ patent licence to Make, have Made, use, offer to sell, sell, import, and
262
+ otherwise transfer the Covered Source and Products, where such licence
263
+ applies only to those patent claims licensable by such Licensor that are
264
+ necessarily infringed by exercising rights under the Covered Source as
265
+ Conveyed by that Licensor.
266
+
267
+ 7.2 If You institute patent litigation against any entity (including a
268
+ cross-claim or counterclaim in a lawsuit) alleging that the Covered
269
+ Source or a Product constitutes direct or contributory patent
270
+ infringement, or You seek any declaration that a patent licensed to You
271
+ under this Licence is invalid or unenforceable then any rights granted
272
+ to You under this Licence shall terminate as of the date such process is
273
+ initiated.
274
+
275
+
276
+ 8 General
277
+
278
+ 8.1 If any provisions of this Licence are or subsequently become invalid or
279
+ unenforceable for any reason, the remaining provisions shall remain
280
+ effective.
281
+
282
+ 8.2 You shall not use any of the name (including acronyms and
283
+ abbreviations), image, or logo by which the Licensor or CERN is known,
284
+ except where needed to comply with section 3, or where the use is
285
+ otherwise allowed by law. Any such permitted use shall be factual and
286
+ shall not be made so as to suggest any kind of endorsement or
287
+ implication of involvement by the Licensor or its personnel.
288
+
289
+ 8.3 CERN may publish updated versions and variants of this Licence which it
290
+ considers to be in the spirit of this version, but may differ in detail
291
+ to address new problems or concerns. New versions will be published with
292
+ a unique version number and a variant identifier specifying the variant.
293
+ If the Licensor has specified that a given variant applies to the
294
+ Covered Source without specifying a version, You may treat that Covered
295
+ Source as being released under any version of the CERN-OHL with that
296
+ variant. If no variant is specified, the Covered Source shall be treated
297
+ as being released under CERN-OHL-S. The Licensor may also specify that
298
+ the Covered Source is subject to a specific version of the CERN-OHL or
299
+ any later version in which case You may apply this or any later version
300
+ of CERN-OHL with the same variant identifier published by CERN.
301
+
302
+ You may treat Covered Source licensed under CERN-OHL-W as licensed under
303
+ CERN-OHL-S if and only if all Available Components referenced in the
304
+ Covered Source comply with the corresponding definition of Available
305
+ Component for CERN-OHL-S.
306
+
307
+ 8.4 This Licence shall terminate with immediate effect if You fail to comply
308
+ with any of its terms and conditions.
309
+
310
+ 8.5 However, if You cease all breaches of this Licence, then Your Licence
311
+ from any Licensor is reinstated unless such Licensor has terminated this
312
+ Licence by giving You, while You remain in breach, a notice specifying
313
+ the breach and requiring You to cure it within 30 days, and You have
314
+ failed to come into compliance in all material respects by the end of
315
+ the 30 day period. Should You repeat the breach after receipt of a cure
316
+ notice and subsequent reinstatement, this Licence will terminate
317
+ immediately and permanently. Section 6 shall continue to apply after any
318
+ termination.
319
+
320
+ 8.6 This Licence shall not be enforceable except by a Licensor acting as
321
+ such, and third party beneficiary rights are specifically excluded.
@@ -7,7 +7,7 @@ description: The “European Union Public Licence” (EUPL) is a copyleft free/o
7
7
 
8
8
  how: Create a text file (typically named COPYING or LICENCE.txt) in the root of your source code and copy the text of the license into the file.
9
9
 
10
- note: The European Commission recommends taking the additional step of adding a [boilerplate notice](https://joinup.ec.europa.eu/sites/default/files/ckeditor_files/files/EUPL%201_1%20Guidelines%20EN%20Joinup.pdf#page=17) to the top of each file.
10
+ note: The European Commission recommends taking the additional step of adding a <a href="https://joinup.ec.europa.eu/sites/default/files/inline-files/EUPL%201_1%20Guidelines%20EN%20Joinup.pdf#page=17">boilerplate notice</a> to the top of each file.
11
11
 
12
12
  using:
13
13