licensee 9.15.3 → 9.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) 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 +10 -2
  5. data/lib/licensee/version.rb +1 -1
  6. data/licensee.gemspec +1 -1
  7. data/spec/fixture_spec.rb +1 -1
  8. data/spec/fixtures/agpl-3.0_markdown/LICENSE.md +651 -0
  9. data/spec/fixtures/apache-2.0_markdown/LICENSE.md +195 -0
  10. data/spec/fixtures/{markdown-artistic → artistic-2.0_markdown}/LICENSE.md +0 -0
  11. data/spec/fixtures/bsd-2-author/LICENSE +22 -0
  12. data/spec/fixtures/bsd-3-clause_markdown/LICENSE.md +28 -0
  13. data/spec/fixtures/cc-by-4.0_markdown/LICENSE.md +157 -0
  14. data/spec/fixtures/cc-by-sa-4.0_markdown/LICENSE.md +171 -0
  15. data/spec/fixtures/cc0-1.0_markdown/LICENSE.md +41 -0
  16. data/spec/fixtures/detect.json +1 -1
  17. data/spec/fixtures/epl-1.0_markdown/LICENSE.md +76 -0
  18. data/spec/fixtures/fixtures.yml +105 -41
  19. data/spec/fixtures/gfdl-1.3_markdown/LICENSE.md +450 -0
  20. data/spec/fixtures/gpl-2.0_markdown/LICENSE.md +336 -0
  21. data/spec/fixtures/{markdown-gpl → gpl-2.0_markdown_headings}/LICENSE.md +0 -0
  22. data/spec/fixtures/gpl-3.0_markdown/LICENSE.md +595 -0
  23. data/spec/fixtures/lgpl-2.1_markdown/LICENSE.md +494 -0
  24. data/spec/fixtures/lgpl-3.0_markdown/LICENSE.md +163 -0
  25. data/spec/fixtures/license-hashes.json +6 -6
  26. data/spec/fixtures/mit_markdown/LICENSE.md +26 -0
  27. data/spec/fixtures/mpl-2.0_markdown/LICENSE.md +357 -0
  28. data/spec/fixtures/unlicense_markdown/LICENSE.md +27 -0
  29. data/spec/integration_spec.rb +11 -2
  30. data/spec/licensee/commands/detect_spec.rb +16 -0
  31. data/spec/licensee/content_helper_spec.rb +16 -0
  32. data/spec/licensee/matchers/reference_matcher_spec.rb +17 -0
  33. data/vendor/choosealicense.com/_licenses/bsd-3-clause.txt +1 -0
  34. data/vendor/license-list-XML/src/Artistic-2.0.xml +5 -3
  35. data/vendor/license-list-XML/src/BSD-3-Clause-Clear.xml +3 -1
  36. metadata +22 -6
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.3
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-11-27 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
@@ -288,11 +288,16 @@ files:
288
288
  - licensee.gemspec
289
289
  - spec/bin_spec.rb
290
290
  - spec/fixture_spec.rb
291
+ - spec/fixtures/agpl-3.0_markdown/LICENSE.md
292
+ - spec/fixtures/apache-2.0_markdown/LICENSE.md
291
293
  - spec/fixtures/apache-with-readme-notice/LICENSE
292
294
  - spec/fixtures/apache-with-readme-notice/LICENSE.header
293
295
  - spec/fixtures/apache-with-readme-notice/README.md
296
+ - spec/fixtures/artistic-2.0_markdown/LICENSE.md
294
297
  - spec/fixtures/bom/LICENSE.txt
298
+ - spec/fixtures/bsd-2-author/LICENSE
295
299
  - spec/fixtures/bsd-3-authorowner/LICENSE
300
+ - spec/fixtures/bsd-3-clause_markdown/LICENSE.md
296
301
  - spec/fixtures/bsd-3-lists/LICENSE.BULLETS
297
302
  - spec/fixtures/bsd-3-lists/LICENSE.NUMBERS
298
303
  - spec/fixtures/bsd-3-noendorseslash/LICENSE
@@ -300,10 +305,13 @@ files:
300
305
  - spec/fixtures/bsd-plus-patents/license.txt
301
306
  - spec/fixtures/bsl/LICENSE_1_0.txt
302
307
  - spec/fixtures/case-sensitive/LiCeNsE.TxT
308
+ - spec/fixtures/cc-by-4.0_markdown/LICENSE.md
303
309
  - spec/fixtures/cc-by-nc-sa/LICENSE
304
310
  - spec/fixtures/cc-by-nd/LICENSE
311
+ - spec/fixtures/cc-by-sa-4.0_markdown/LICENSE.md
305
312
  - spec/fixtures/cc-by-sa-mdlinks/License.md
306
313
  - spec/fixtures/cc-by-sa-nocclicensor/License.md
314
+ - spec/fixtures/cc0-1.0_markdown/LICENSE.md
307
315
  - spec/fixtures/cc0-cal2013/LICENSE
308
316
  - spec/fixtures/cc0-cc/LICENSE
309
317
  - spec/fixtures/copyright-encoding/COPYING
@@ -312,13 +320,20 @@ files:
312
320
  - spec/fixtures/description-license/DESCRIPTION
313
321
  - spec/fixtures/description-license/LICENSE
314
322
  - spec/fixtures/detect.json
323
+ - spec/fixtures/epl-1.0_markdown/LICENSE.md
315
324
  - spec/fixtures/eupl-cal2017/LICENSE.txt
316
325
  - spec/fixtures/fcpl-modified-mpl/LICENSE
317
326
  - spec/fixtures/fixtures.yml
318
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
319
332
  - spec/fixtures/gpl3-without-instructions/LICENSE
320
333
  - spec/fixtures/html/license.html
321
334
  - spec/fixtures/ipsum.txt
335
+ - spec/fixtures/lgpl-2.1_markdown/LICENSE.md
336
+ - spec/fixtures/lgpl-3.0_markdown/LICENSE.md
322
337
  - spec/fixtures/lgpl/COPYING.lesser
323
338
  - spec/fixtures/lgpl/LICENSE
324
339
  - spec/fixtures/license-folder/README.md
@@ -327,13 +342,13 @@ files:
327
342
  - spec/fixtures/license-in-parent-folder/license-folder/LICENSE.txt
328
343
  - spec/fixtures/license-with-readme-reference/LICENSE
329
344
  - spec/fixtures/license-with-readme-reference/README
330
- - spec/fixtures/markdown-artistic/LICENSE.md
331
- - spec/fixtures/markdown-gpl/LICENSE.md
332
345
  - spec/fixtures/mit-optional/LICENSE.txt
333
346
  - spec/fixtures/mit-with-copyright/COPYRIGHT.md
334
347
  - spec/fixtures/mit-with-copyright/LICENSE.txt
335
348
  - spec/fixtures/mit/LICENSE.txt
336
349
  - spec/fixtures/mit/README.md
350
+ - spec/fixtures/mit_markdown/LICENSE.md
351
+ - spec/fixtures/mpl-2.0_markdown/LICENSE.md
337
352
  - spec/fixtures/mpl-without-hrs/LICENSE
338
353
  - spec/fixtures/multiple-arrs/LICENSE
339
354
  - spec/fixtures/multiple-license-files/LICENSE
@@ -342,6 +357,7 @@ files:
342
357
  - spec/fixtures/readme-invalid-encoding/README.md
343
358
  - spec/fixtures/readme/README.md
344
359
  - spec/fixtures/unlicense-noinfo/LICENSE
360
+ - spec/fixtures/unlicense_markdown/LICENSE.md
345
361
  - spec/fixtures/vim/LICENSE
346
362
  - spec/fixtures/webmock/licensee.json
347
363
  - spec/fixtures/wrk-modified-apache/LICENSE
@@ -486,14 +502,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
486
502
  requirements:
487
503
  - - ">="
488
504
  - !ruby/object:Gem::Version
489
- version: '2.5'
505
+ version: '2.6'
490
506
  required_rubygems_version: !ruby/object:Gem::Requirement
491
507
  requirements:
492
508
  - - ">="
493
509
  - !ruby/object:Gem::Version
494
510
  version: '0'
495
511
  requirements: []
496
- rubygems_version: 3.3.7
512
+ rubygems_version: 3.2.33
497
513
  signing_key:
498
514
  specification_version: 4
499
515
  summary: A Ruby Gem to detect open source project licenses