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
@@ -10,12 +10,16 @@
10
10
  <text>
11
11
  <titleText>
12
12
  <p>Mozilla Public License Version 2.0</p>
13
+ <optional><p>==================================</p></optional>
13
14
  </titleText>
14
15
 
15
16
  <list>
16
17
  <item>
17
- <bullet>1.</bullet>
18
- Definitions
18
+ <p>
19
+ <bullet>1.</bullet>
20
+ Definitions
21
+ </p>
22
+ <optional><p>--------------</p></optional>
19
23
  <list>
20
24
  <item>
21
25
  <bullet>1.1.</bullet>
@@ -116,9 +120,12 @@
116
120
  </item>
117
121
  </list>
118
122
  </item>
119
- <item>
120
- <bullet>2.</bullet>
121
- License Grants and Conditions
123
+ <item>
124
+ <p>
125
+ <bullet>2.</bullet>
126
+ License Grants and Conditions
127
+ </p>
128
+ <optional><p>--------------------------------</p></optional>
122
129
  <list>
123
130
  <item>
124
131
  <bullet>2.1.</bullet>
@@ -207,9 +214,12 @@
207
214
  </item>
208
215
  </list>
209
216
  </item>
210
- <item>
211
- <bullet>3.</bullet>
212
- Responsibilities
217
+ <item>
218
+ <p>
219
+ <bullet>3.</bullet>
220
+ Responsibilities
221
+ </p>
222
+ <optional><p>-------------------</p></optional>
213
223
  <list>
214
224
  <item>
215
225
  <bullet>3.1.</bullet>
@@ -282,9 +292,12 @@
282
292
  </item>
283
293
  </list>
284
294
  </item>
285
- <item>
286
- <bullet>4.</bullet>
287
- Inability to Comply Due to Statute or Regulation
295
+ <item>
296
+ <p>
297
+ <bullet>4.</bullet>
298
+ Inability to Comply Due to Statute or Regulation
299
+ </p>
300
+ <optional><p>---------------------------------------------------</p></optional>
288
301
  <p>If it is impossible for You to comply with any of the terms of this License with respect to
289
302
  some or all of the Covered Software due to statute, judicial order, or regulation then
290
303
  You must: (a) comply with the terms of this License to the maximum extent possible;
@@ -296,8 +309,11 @@
296
309
  </p>
297
310
  </item>
298
311
  <item>
299
- <bullet>5.</bullet>
300
- Termination
312
+ <p>
313
+ <bullet>5.</bullet>
314
+ Termination
315
+ </p>
316
+ <optional><p>--------------</p></optional>
301
317
  <list>
302
318
  <item>
303
319
  <bullet>5.1.</bullet>
@@ -328,9 +344,13 @@
328
344
  </item>
329
345
  </list>
330
346
  </item>
331
- <item>
332
- <bullet>6.</bullet>
333
- Disclaimer of Warranty
347
+ <item>
348
+ <optional><p>************************************************************************</p></optional>
349
+ <p>
350
+ <bullet>6.</bullet>
351
+ Disclaimer of Warranty
352
+ </p>
353
+ <optional><p>* ------------------------- *</p></optional>
334
354
  <p>Covered Software is provided under this License on an "as is" basis, without
335
355
  warranty of any kind, either expressed, implied, or statutory, including, without
336
356
  limitation, warranties that the Covered Software is free of defects, merchantable, fit
@@ -341,10 +361,15 @@
341
361
  part of this License. No use of any Covered Software is authorized under this License
342
362
  except under this disclaimer.
343
363
  </p>
364
+ <optional><p>************************************************************************</p></optional>
344
365
  </item>
345
366
  <item>
346
- <bullet>7.</bullet>
347
- Limitation of Liability
367
+ <optional><p>************************************************************************</p></optional>
368
+ <p>
369
+ <bullet>7.</bullet>
370
+ Limitation of Liability
371
+ </p>
372
+ <optional><p>* -------------------------- *</p></optional>
348
373
  <p>Under no circumstances and under no legal theory, whether tort (including negligence),
349
374
  contract, or otherwise, shall any Contributor, or anyone who distributes Covered
350
375
  Software as permitted above, be liable to You for any direct, indirect, special,
@@ -357,10 +382,14 @@
357
382
  Some jurisdictions do not allow the exclusion or limitation of incidental or
358
383
  consequential damages, so this exclusion and limitation may not apply to You.
359
384
  </p>
385
+ <optional><p>************************************************************************</p></optional>
360
386
  </item>
361
- <item>
362
- <bullet>8.</bullet>
363
- Litigation
387
+ <item>
388
+ <p>
389
+ <bullet>8.</bullet>
390
+ Litigation
391
+ </p>
392
+ <optional><p>-------------</p></optional>
364
393
  <p>Any litigation relating to this License may be brought only in the courts of a jurisdiction
365
394
  where the defendant maintains its principal place of business and such litigation
366
395
  shall be governed by laws of that jurisdiction, without reference to its
@@ -368,9 +397,12 @@
368
397
  ability to bring cross-claims or counter-claims.
369
398
  </p>
370
399
  </item>
371
- <item>
372
- <bullet>9.</bullet>
373
- Miscellaneous
400
+ <item>
401
+ <p>
402
+ <bullet>9.</bullet>
403
+ Miscellaneous
404
+ </p>
405
+ <optional><p>----------------</p></optional>
374
406
  <p>This License represents the complete agreement concerning the subject matter hereof. If any
375
407
  provision of this License is held to be unenforceable, such provision shall be
376
408
  reformed only to the extent necessary to make it enforceable. Any law or regulation
@@ -378,9 +410,12 @@
378
410
  shall not be used to construe this License against a Contributor.
379
411
  </p>
380
412
  </item>
381
- <item>
382
- <bullet>10.</bullet>
383
- Versions of the License
413
+ <item>
414
+ <p>
415
+ <bullet>10.</bullet>
416
+ Versions of the License
417
+ </p>
418
+ <optional><p>---------------------------</p></optional>
384
419
  <list>
385
420
  <item>
386
421
  <bullet>10.1.</bullet>
@@ -421,7 +456,8 @@
421
456
 
422
457
  <optional>
423
458
  <p>Exhibit A - Source Code Form License Notice</p>
424
- <standardLicenseHeader>
459
+ <optional><p>-------------------------------------------</p></optional>
460
+ <standardLicenseHeader>
425
461
  <p>This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL
426
462
  was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.</p>
427
463
  </standardLicenseHeader>
@@ -430,7 +466,8 @@
430
466
  likely to look for such a notice.</p>
431
467
  <p>You may add additional accurate notices of copyright ownership.</p>
432
468
  <p>Exhibit B - "Incompatible With Secondary Licenses" Notice</p>
433
- <p>This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla
469
+ <optional><p>---------------------------------------------------------</p></optional>
470
+ <p>This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla
434
471
  Public License, v. 2.0.</p>
435
472
  </optional>
436
473
  </text>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licensee
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.15.2
4
+ version: 9.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -28,30 +28,42 @@ dependencies:
28
28
  name: octokit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.20'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '7.0'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '4.20'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '7.0'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: reverse_markdown
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - "~>"
51
+ - - ">="
46
52
  - !ruby/object:Gem::Version
47
- version: '1.0'
53
+ version: '1'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '3'
48
57
  type: :runtime
49
58
  prerelease: false
50
59
  version_requirements: !ruby/object:Gem::Requirement
51
60
  requirements:
52
- - - "~>"
61
+ - - ">="
53
62
  - !ruby/object:Gem::Version
54
- version: '1.0'
63
+ version: '1'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '3'
55
67
  - !ruby/object:Gem::Dependency
56
68
  name: rugged
57
69
  requirement: !ruby/object:Gem::Requirement
@@ -276,11 +288,16 @@ files:
276
288
  - licensee.gemspec
277
289
  - spec/bin_spec.rb
278
290
  - spec/fixture_spec.rb
291
+ - spec/fixtures/agpl-3.0_markdown/LICENSE.md
292
+ - spec/fixtures/apache-2.0_markdown/LICENSE.md
279
293
  - spec/fixtures/apache-with-readme-notice/LICENSE
280
294
  - spec/fixtures/apache-with-readme-notice/LICENSE.header
281
295
  - spec/fixtures/apache-with-readme-notice/README.md
296
+ - spec/fixtures/artistic-2.0_markdown/LICENSE.md
282
297
  - spec/fixtures/bom/LICENSE.txt
298
+ - spec/fixtures/bsd-2-author/LICENSE
283
299
  - spec/fixtures/bsd-3-authorowner/LICENSE
300
+ - spec/fixtures/bsd-3-clause_markdown/LICENSE.md
284
301
  - spec/fixtures/bsd-3-lists/LICENSE.BULLETS
285
302
  - spec/fixtures/bsd-3-lists/LICENSE.NUMBERS
286
303
  - spec/fixtures/bsd-3-noendorseslash/LICENSE
@@ -288,10 +305,13 @@ files:
288
305
  - spec/fixtures/bsd-plus-patents/license.txt
289
306
  - spec/fixtures/bsl/LICENSE_1_0.txt
290
307
  - spec/fixtures/case-sensitive/LiCeNsE.TxT
308
+ - spec/fixtures/cc-by-4.0_markdown/LICENSE.md
291
309
  - spec/fixtures/cc-by-nc-sa/LICENSE
292
310
  - spec/fixtures/cc-by-nd/LICENSE
311
+ - spec/fixtures/cc-by-sa-4.0_markdown/LICENSE.md
293
312
  - spec/fixtures/cc-by-sa-mdlinks/License.md
294
313
  - spec/fixtures/cc-by-sa-nocclicensor/License.md
314
+ - spec/fixtures/cc0-1.0_markdown/LICENSE.md
295
315
  - spec/fixtures/cc0-cal2013/LICENSE
296
316
  - spec/fixtures/cc0-cc/LICENSE
297
317
  - spec/fixtures/copyright-encoding/COPYING
@@ -300,13 +320,20 @@ files:
300
320
  - spec/fixtures/description-license/DESCRIPTION
301
321
  - spec/fixtures/description-license/LICENSE
302
322
  - spec/fixtures/detect.json
323
+ - spec/fixtures/epl-1.0_markdown/LICENSE.md
303
324
  - spec/fixtures/eupl-cal2017/LICENSE.txt
304
325
  - spec/fixtures/fcpl-modified-mpl/LICENSE
305
326
  - spec/fixtures/fixtures.yml
306
327
  - spec/fixtures/gemspec/project._gemspec
328
+ - spec/fixtures/gfdl-1.3_markdown/LICENSE.md
329
+ - spec/fixtures/gpl-2.0_markdown/LICENSE.md
330
+ - spec/fixtures/gpl-2.0_markdown_headings/LICENSE.md
331
+ - spec/fixtures/gpl-3.0_markdown/LICENSE.md
307
332
  - spec/fixtures/gpl3-without-instructions/LICENSE
308
333
  - spec/fixtures/html/license.html
309
334
  - spec/fixtures/ipsum.txt
335
+ - spec/fixtures/lgpl-2.1_markdown/LICENSE.md
336
+ - spec/fixtures/lgpl-3.0_markdown/LICENSE.md
310
337
  - spec/fixtures/lgpl/COPYING.lesser
311
338
  - spec/fixtures/lgpl/LICENSE
312
339
  - spec/fixtures/license-folder/README.md
@@ -315,13 +342,13 @@ files:
315
342
  - spec/fixtures/license-in-parent-folder/license-folder/LICENSE.txt
316
343
  - spec/fixtures/license-with-readme-reference/LICENSE
317
344
  - spec/fixtures/license-with-readme-reference/README
318
- - spec/fixtures/markdown-artistic/LICENSE.md
319
- - spec/fixtures/markdown-gpl/LICENSE.md
320
345
  - spec/fixtures/mit-optional/LICENSE.txt
321
346
  - spec/fixtures/mit-with-copyright/COPYRIGHT.md
322
347
  - spec/fixtures/mit-with-copyright/LICENSE.txt
323
348
  - spec/fixtures/mit/LICENSE.txt
324
349
  - spec/fixtures/mit/README.md
350
+ - spec/fixtures/mit_markdown/LICENSE.md
351
+ - spec/fixtures/mpl-2.0_markdown/LICENSE.md
325
352
  - spec/fixtures/mpl-without-hrs/LICENSE
326
353
  - spec/fixtures/multiple-arrs/LICENSE
327
354
  - spec/fixtures/multiple-license-files/LICENSE
@@ -330,6 +357,7 @@ files:
330
357
  - spec/fixtures/readme-invalid-encoding/README.md
331
358
  - spec/fixtures/readme/README.md
332
359
  - spec/fixtures/unlicense-noinfo/LICENSE
360
+ - spec/fixtures/unlicense_markdown/LICENSE.md
333
361
  - spec/fixtures/vim/LICENSE
334
362
  - spec/fixtures/webmock/licensee.json
335
363
  - spec/fixtures/wrk-modified-apache/LICENSE
@@ -385,11 +413,15 @@ files:
385
413
  - vendor/choosealicense.com/_licenses/cc-by-sa-4.0.txt
386
414
  - vendor/choosealicense.com/_licenses/cc0-1.0.txt
387
415
  - vendor/choosealicense.com/_licenses/cecill-2.1.txt
416
+ - vendor/choosealicense.com/_licenses/cern-ohl-p-2.0.txt
417
+ - vendor/choosealicense.com/_licenses/cern-ohl-s-2.0.txt
418
+ - vendor/choosealicense.com/_licenses/cern-ohl-w-2.0.txt
388
419
  - vendor/choosealicense.com/_licenses/ecl-2.0.txt
389
420
  - vendor/choosealicense.com/_licenses/epl-1.0.txt
390
421
  - vendor/choosealicense.com/_licenses/epl-2.0.txt
391
422
  - vendor/choosealicense.com/_licenses/eupl-1.1.txt
392
423
  - vendor/choosealicense.com/_licenses/eupl-1.2.txt
424
+ - vendor/choosealicense.com/_licenses/gfdl-1.3.txt
393
425
  - vendor/choosealicense.com/_licenses/gpl-2.0.txt
394
426
  - vendor/choosealicense.com/_licenses/gpl-3.0.txt
395
427
  - vendor/choosealicense.com/_licenses/isc.txt
@@ -426,11 +458,15 @@ files:
426
458
  - vendor/license-list-XML/src/CC-BY-SA-4.0.xml
427
459
  - vendor/license-list-XML/src/CC0-1.0.xml
428
460
  - vendor/license-list-XML/src/CECILL-2.1.xml
461
+ - vendor/license-list-XML/src/CERN-OHL-P-2.0.xml
462
+ - vendor/license-list-XML/src/CERN-OHL-S-2.0.xml
463
+ - vendor/license-list-XML/src/CERN-OHL-W-2.0.xml
429
464
  - vendor/license-list-XML/src/ECL-2.0.xml
430
465
  - vendor/license-list-XML/src/EPL-1.0.xml
431
466
  - vendor/license-list-XML/src/EPL-2.0.xml
432
467
  - vendor/license-list-XML/src/EUPL-1.1.xml
433
468
  - vendor/license-list-XML/src/EUPL-1.2.xml
469
+ - vendor/license-list-XML/src/GFDL-1.3.xml
434
470
  - vendor/license-list-XML/src/GPL-2.0.xml
435
471
  - vendor/license-list-XML/src/GPL-3.0.xml
436
472
  - vendor/license-list-XML/src/ISC.xml
@@ -466,14 +502,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
466
502
  requirements:
467
503
  - - ">="
468
504
  - !ruby/object:Gem::Version
469
- version: '2.5'
505
+ version: '2.6'
470
506
  required_rubygems_version: !ruby/object:Gem::Requirement
471
507
  requirements:
472
508
  - - ">="
473
509
  - !ruby/object:Gem::Version
474
510
  version: '0'
475
511
  requirements: []
476
- rubygems_version: 3.2.22
512
+ rubygems_version: 3.2.33
477
513
  signing_key:
478
514
  specification_version: 4
479
515
  summary: A Ruby Gem to detect open source project licenses