licensee 9.14.0 → 9.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/licensee/commands/detect.rb +1 -1
  3. data/lib/licensee/commands/diff.rb +2 -2
  4. data/lib/licensee/content_helper.rb +17 -10
  5. data/lib/licensee/license.rb +1 -1
  6. data/lib/licensee/matchers/cabal.rb +1 -1
  7. data/lib/licensee/matchers/cargo.rb +1 -1
  8. data/lib/licensee/matchers/copyright.rb +1 -1
  9. data/lib/licensee/matchers/dist_zilla.rb +1 -1
  10. data/lib/licensee/matchers/gemspec.rb +4 -4
  11. data/lib/licensee/matchers/npm_bower.rb +5 -2
  12. data/lib/licensee/matchers/nuget.rb +6 -6
  13. data/lib/licensee/matchers/spdx.rb +1 -1
  14. data/lib/licensee/project_files/license_file.rb +3 -3
  15. data/lib/licensee/project_files/project_file.rb +1 -0
  16. data/lib/licensee/projects/github_project.rb +1 -1
  17. data/lib/licensee/version.rb +1 -1
  18. data/licensee.gemspec +1 -1
  19. data/spec/fixtures/bom/LICENSE.txt +21 -0
  20. data/spec/fixtures/crlf-bsd/LICENSE.md +27 -0
  21. data/spec/fixtures/detect.json +12 -18
  22. data/spec/fixtures/fixtures.yml +20 -4
  23. data/spec/fixtures/license-hashes.json +1 -1
  24. data/spec/fixtures/markdown-artistic/LICENSE.md +192 -0
  25. data/spec/fixtures/vim/LICENSE +78 -0
  26. data/spec/integration_spec.rb +39 -2
  27. data/spec/licensee/content_helper_spec.rb +2 -0
  28. data/spec/licensee/hash_helper_spec.rb +22 -22
  29. data/spec/licensee/license_meta_spec.rb +5 -11
  30. data/spec/licensee/license_spec.rb +9 -5
  31. data/spec/licensee/matchers/dice_matcher_spec.rb +1 -1
  32. data/spec/licensee/matchers/matcher_spec.rb +6 -6
  33. data/spec/licensee/matchers/npm_bower_matcher_spec.rb +9 -0
  34. data/spec/licensee/project_files/license_file_spec.rb +27 -26
  35. data/spec/licensee/rule_spec.rb +1 -1
  36. data/vendor/choosealicense.com/_data/meta.yml +1 -1
  37. data/vendor/choosealicense.com/_data/rules.yml +13 -13
  38. data/vendor/choosealicense.com/_licenses/0bsd.txt +3 -3
  39. data/vendor/choosealicense.com/_licenses/apache-2.0.txt +3 -3
  40. data/vendor/choosealicense.com/_licenses/bsd-2-clause.txt +3 -3
  41. data/vendor/choosealicense.com/_licenses/bsd-3-clause.txt +3 -3
  42. data/vendor/choosealicense.com/_licenses/bsd-4-clause.txt +3 -3
  43. data/vendor/choosealicense.com/_licenses/bsl-1.0.txt +3 -3
  44. data/vendor/choosealicense.com/_licenses/cc-by-4.0.txt +3 -3
  45. data/vendor/choosealicense.com/_licenses/cc-by-sa-4.0.txt +3 -3
  46. data/vendor/choosealicense.com/_licenses/cc0-1.0.txt +3 -3
  47. data/vendor/choosealicense.com/_licenses/cecill-2.1.txt +3 -3
  48. data/vendor/choosealicense.com/_licenses/ecl-2.0.txt +3 -3
  49. data/vendor/choosealicense.com/_licenses/epl-1.0.txt +3 -3
  50. data/vendor/choosealicense.com/_licenses/epl-2.0.txt +3 -3
  51. data/vendor/choosealicense.com/_licenses/eupl-1.2.txt +3 -3
  52. data/vendor/choosealicense.com/_licenses/gpl-2.0.txt +3 -3
  53. data/vendor/choosealicense.com/_licenses/gpl-3.0.txt +3 -3
  54. data/vendor/choosealicense.com/_licenses/isc.txt +3 -3
  55. data/vendor/choosealicense.com/_licenses/mit.txt +3 -3
  56. data/vendor/choosealicense.com/_licenses/mpl-2.0.txt +3 -3
  57. data/vendor/choosealicense.com/_licenses/ncsa.txt +3 -3
  58. data/vendor/choosealicense.com/_licenses/odbl-1.0.txt +3 -3
  59. data/vendor/choosealicense.com/_licenses/ofl-1.1.txt +3 -3
  60. data/vendor/choosealicense.com/_licenses/osl-3.0.txt +3 -3
  61. data/vendor/choosealicense.com/_licenses/postgresql.txt +3 -3
  62. data/vendor/choosealicense.com/_licenses/unlicense.txt +3 -3
  63. data/vendor/choosealicense.com/_licenses/upl-1.0.txt +3 -3
  64. data/vendor/choosealicense.com/_licenses/vim.txt +3 -3
  65. data/vendor/choosealicense.com/_licenses/zlib.txt +3 -3
  66. metadata +18 -8
@@ -11,9 +11,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
11
11
  note: The Mozilla Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license (Exhibit A).
12
12
 
13
13
  using:
14
- - Servo: https://github.com/servo/servo/blob/master/LICENSE
15
- - Syncthing: https://github.com/syncthing/syncthing/blob/master/LICENSE
16
- - TimelineJS3: https://github.com/NUKnightLab/TimelineJS3/blob/master/LICENSE
14
+ Servo: https://github.com/servo/servo/blob/master/LICENSE
15
+ Syncthing: https://github.com/syncthing/syncthing/blob/main/LICENSE
16
+ TimelineJS3: https://github.com/NUKnightLab/TimelineJS3/blob/master/LICENSE
17
17
 
18
18
  permissions:
19
19
  - commercial-use
@@ -8,9 +8,9 @@ description: The University of Illinois/NCSA Open Source License, or UIUC licens
8
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. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work.
9
9
 
10
10
  using:
11
- - LLDB: https://github.com/llvm-mirror/lldb/blob/master/LICENSE.TXT
12
- - ROCR-Runtime: https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/master/LICENSE.txt
13
- - RLTK: https://github.com/chriswailes/RLTK/blob/master/LICENSE
11
+ ROCR-Runtime: https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/master/LICENSE.txt
12
+ RLTK: https://github.com/chriswailes/RLTK/blob/master/LICENSE
13
+ ToaruOS: https://github.com/klange/toaruos/blob/master/LICENSE
14
14
 
15
15
  permissions:
16
16
  - commercial-use
@@ -8,9 +8,9 @@ description: The Open Database License (ODbL) is a license agreement intended to
8
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
9
 
10
10
  using:
11
- - World Countries: https://github.com/mledoze/countries/blob/master/LICENSE
12
- - OpenFlights: https://github.com/jpatokal/openflights/blob/master/data/LICENSE
13
- - Public Zone Database: https://github.com/zonedb/zonedb/blob/master/LICENSE.md
11
+ World Countries: https://github.com/mledoze/countries/blob/master/LICENSE
12
+ OpenFlights: https://github.com/jpatokal/openflights/blob/master/data/LICENSE
13
+ Public Zone Database: https://github.com/zonedb/zonedb/blob/master/LICENSE.md
14
14
 
15
15
  permissions:
16
16
  - commercial-use
@@ -10,9 +10,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
10
10
  note: This license doesn't require source provision, but recommends it. All files derived from OFL files must remain licensed under the OFL.
11
11
 
12
12
  using:
13
- - FiraCode: https://github.com/tonsky/FiraCode/blob/master/LICENSE
14
- - Noto fonts: https://github.com/googlefonts/noto-fonts/blob/master/LICENSE
15
- - Fantasque Sans Mono: https://github.com/belluzj/fantasque-sans/blob/master/LICENSE.txt
13
+ FiraCode: https://github.com/tonsky/FiraCode/blob/master/LICENSE
14
+ Noto fonts: https://github.com/googlefonts/noto-fonts/blob/master/LICENSE
15
+ Fantasque Sans Mono: https://github.com/belluzj/fantasque-sans/blob/master/LICENSE.txt
16
16
 
17
17
  permissions:
18
18
  - private-use
@@ -9,9 +9,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
9
9
  note: OSL 3.0's author has <a href="https://rosenlaw.com/OSL3.0-explained.htm">provided an explanation</a> behind the creation of the license.
10
10
 
11
11
  using:
12
- - appserver.io: https://github.com/appserver-io/appserver/blob/master/LICENSE.txt
13
- - JsonMapper: https://github.com/cweiske/jsonmapper/blob/master/LICENSE
14
- - Restyaboard: https://github.com/RestyaPlatform/board/blob/master/LICENSE.txt
12
+ appserver.io: https://github.com/appserver-io/appserver/blob/master/LICENSE.txt
13
+ JsonMapper: https://github.com/cweiske/jsonmapper/blob/master/LICENSE
14
+ Restyaboard: https://github.com/RestyaPlatform/board/blob/master/LICENSE.txt
15
15
 
16
16
  permissions:
17
17
  - commercial-use
@@ -7,9 +7,9 @@ description: A very short, BSD-style license, used specifically for PostgreSQL.
7
7
  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. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
8
8
 
9
9
  using:
10
- - pgBadger: https://github.com/darold/pgbadger/blob/master/LICENSE
11
- - pgAdmin: https://github.com/postgres/pgadmin4/blob/master/LICENSE
12
- - .NET Access to PostgreSQL: https://github.com/npgsql/npgsql/blob/dev/LICENSE
10
+ pgBadger: https://github.com/darold/pgbadger/blob/master/LICENSE
11
+ pgAdmin: https://github.com/postgres/pgadmin4/blob/master/LICENSE
12
+ .NET Access to PostgreSQL: https://github.com/npgsql/npgsql/blob/main/LICENSE
13
13
 
14
14
  permissions:
15
15
  - commercial-use
@@ -8,9 +8,9 @@ description: A license with no conditions whatsoever which dedicates works to th
8
8
  how: Create a text file (typically named UNLICENSE or UNLICENSE.txt) in the root of your source code and copy the text of the license disclaimer into the file.
9
9
 
10
10
  using:
11
- - youtube-dl: https://github.com/rg3/youtube-dl/blob/master/LICENSE
12
- - kakoune: https://github.com/mawww/kakoune/blob/master/UNLICENSE
13
- - RDF.rb: https://github.com/ruby-rdf/rdf/blob/master/UNLICENSE
11
+ youtube-dl: https://github.com/rg3/youtube-dl/blob/master/LICENSE
12
+ kakoune: https://github.com/mawww/kakoune/blob/master/UNLICENSE
13
+ RDF.rb: https://github.com/ruby-rdf/rdf/blob/master/UNLICENSE
14
14
 
15
15
  permissions:
16
16
  - private-use
@@ -9,9 +9,9 @@ how: Insert the license or a link to it along with a copyright notice into your
9
9
  note: It is recommended to add a link to the license and copyright notice at the top of each source file, example text can be found at https://oss.oracle.com/licenses/upl/.
10
10
 
11
11
  using:
12
- - Oracle Product Boxes for Vagrant: https://github.com/oracle/vagrant-boxes/blob/master/LICENSE
13
- - Oracle Product Images for Docker: https://github.com/oracle/docker-images/blob/master/LICENSE
14
- - Skater: https://github.com/oracle/Skater/blob/master/LICENSE
12
+ Oracle Product Images for Docker: https://github.com/oracle/docker-images/blob/master/LICENSE
13
+ Skater: https://github.com/oracle/Skater/blob/master/LICENSE
14
+ Soufflé: https://github.com/souffle-lang/souffle/blob/master/LICENSE
15
15
 
16
16
  permissions:
17
17
  - commercial-use
@@ -7,9 +7,9 @@ description: There are no restrictions on using or distributing an unmodified co
7
7
  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. Replace [project] with the project name.
8
8
 
9
9
  using:
10
- - Vim: https://github.com/vim/vim/blob/master/LICENSE
11
- - Pathogen: https://github.com/tpope/vim-pathogen/blob/master/LICENSE
12
- - vim-license-gen: https://github.com/othree/vim-license/blob/master/LICENSE
10
+ Vim: https://github.com/vim/vim/blob/master/LICENSE
11
+ Pathogen: https://github.com/tpope/vim-pathogen/blob/master/LICENSE
12
+ vim-license-gen: https://github.com/othree/vim-license/blob/master/LICENSE
13
13
 
14
14
  permissions:
15
15
  - commercial-use
@@ -7,9 +7,9 @@ description: A short permissive license, compatible with GPL. Requires altered s
7
7
  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. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
8
8
 
9
9
  using:
10
- - GLFW: https://github.com/glfw/glfw/blob/master/LICENSE.md
11
- - Portainer: https://github.com/portainer/portainer/blob/develop/LICENSE
12
- - TinyXML-2: https://github.com/leethomason/tinyxml2/blob/master/LICENSE.txt
10
+ GLFW: https://github.com/glfw/glfw/blob/master/LICENSE.md
11
+ Portainer: https://github.com/portainer/portainer/blob/develop/LICENSE
12
+ TinyXML-2: https://github.com/leethomason/tinyxml2/blob/master/LICENSE.txt
13
13
 
14
14
  permissions:
15
15
  - commercial-use
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.14.0
4
+ version: 9.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-11 00:00:00.000000000 Z
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -56,16 +56,22 @@ dependencies:
56
56
  name: rugged
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.24'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '2.0'
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ">="
67
70
  - !ruby/object:Gem::Version
68
71
  version: '0.24'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '2.0'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: thor
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -259,6 +265,7 @@ files:
259
265
  - spec/fixtures/apache-with-readme-notice/LICENSE
260
266
  - spec/fixtures/apache-with-readme-notice/LICENSE.header
261
267
  - spec/fixtures/apache-with-readme-notice/README.md
268
+ - spec/fixtures/bom/LICENSE.txt
262
269
  - spec/fixtures/bsd-3-lists/LICENSE.BULLETS
263
270
  - spec/fixtures/bsd-3-lists/LICENSE.NUMBERS
264
271
  - spec/fixtures/bsd-3-noendorseslash/LICENSE
@@ -271,6 +278,7 @@ files:
271
278
  - spec/fixtures/cc0-cal2013/LICENSE
272
279
  - spec/fixtures/cc0-cc/LICENSE
273
280
  - spec/fixtures/copyright-encoding/COPYING
281
+ - spec/fixtures/crlf-bsd/LICENSE.md
274
282
  - spec/fixtures/crlf-license/LICENSE
275
283
  - spec/fixtures/description-license/DESCRIPTION
276
284
  - spec/fixtures/description-license/LICENSE
@@ -289,6 +297,7 @@ files:
289
297
  - spec/fixtures/license-in-parent-folder/license-folder/LICENSE.txt
290
298
  - spec/fixtures/license-with-readme-reference/LICENSE
291
299
  - spec/fixtures/license-with-readme-reference/README
300
+ - spec/fixtures/markdown-artistic/LICENSE.md
292
301
  - spec/fixtures/markdown-gpl/LICENSE.md
293
302
  - spec/fixtures/mit-optional/LICENSE.txt
294
303
  - spec/fixtures/mit-with-copyright/COPYRIGHT.md
@@ -302,6 +311,7 @@ files:
302
311
  - spec/fixtures/readme-invalid-encoding/README.md
303
312
  - spec/fixtures/readme/README.md
304
313
  - spec/fixtures/unlicense-noinfo/LICENSE
314
+ - spec/fixtures/vim/LICENSE
305
315
  - spec/fixtures/webmock/licensee.json
306
316
  - spec/fixtures/wrk-modified-apache/LICENSE
307
317
  - spec/integration_spec.rb
@@ -385,7 +395,7 @@ homepage: https://github.com/benbalter/licensee
385
395
  licenses:
386
396
  - MIT
387
397
  metadata: {}
388
- post_install_message:
398
+ post_install_message:
389
399
  rdoc_options: []
390
400
  require_paths:
391
401
  - lib
@@ -400,8 +410,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
400
410
  - !ruby/object:Gem::Version
401
411
  version: '0'
402
412
  requirements: []
403
- rubygems_version: 3.1.3
404
- signing_key:
413
+ rubygems_version: 3.1.4
414
+ signing_key:
405
415
  specification_version: 4
406
416
  summary: A Ruby Gem to detect open source project licenses
407
417
  test_files: []