licensee 9.10.1 → 9.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/lib/licensee/commands/diff.rb +2 -7
  3. data/lib/licensee/content_helper.rb +169 -78
  4. data/lib/licensee/license.rb +5 -4
  5. data/lib/licensee/license_field.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 +2 -2
  9. data/lib/licensee/matchers/cran.rb +3 -3
  10. data/lib/licensee/matchers/dist_zilla.rb +1 -1
  11. data/lib/licensee/matchers/gemspec.rb +5 -5
  12. data/lib/licensee/matchers/matcher.rb +1 -1
  13. data/lib/licensee/matchers/npm_bower.rb +1 -1
  14. data/lib/licensee/matchers/reference.rb +1 -1
  15. data/lib/licensee/matchers/spdx.rb +1 -1
  16. data/lib/licensee/project_files/license_file.rb +7 -7
  17. data/lib/licensee/project_files/readme_file.rb +3 -3
  18. data/lib/licensee/projects/github_project.rb +1 -1
  19. data/lib/licensee/version.rb +1 -1
  20. data/spec/fixtures/detect.json +2 -2
  21. data/spec/fixtures/license-hashes.json +36 -0
  22. data/spec/licensee/commands/detect_spec.rb +1 -1
  23. data/spec/licensee/content_helper_spec.rb +131 -32
  24. data/spec/licensee/license_spec.rb +1 -1
  25. data/spec/licensee/matchers/dice_matcher_spec.rb +2 -2
  26. data/spec/licensee/project_files/license_file_spec.rb +1 -1
  27. data/spec/spec_helper.rb +10 -5
  28. data/spec/vendored_license_spec.rb +19 -2
  29. data/vendor/choosealicense.com/_data/meta.yml +0 -4
  30. data/vendor/choosealicense.com/_licenses/afl-3.0.txt +0 -1
  31. data/vendor/choosealicense.com/_licenses/agpl-3.0.txt +0 -1
  32. data/vendor/choosealicense.com/_licenses/apache-2.0.txt +0 -1
  33. data/vendor/choosealicense.com/_licenses/artistic-2.0.txt +0 -1
  34. data/vendor/choosealicense.com/_licenses/bsd-2-clause.txt +8 -6
  35. data/vendor/choosealicense.com/_licenses/bsd-3-clause-clear.txt +0 -1
  36. data/vendor/choosealicense.com/_licenses/bsd-3-clause.txt +11 -9
  37. data/vendor/choosealicense.com/_licenses/bsl-1.0.txt +0 -1
  38. data/vendor/choosealicense.com/_licenses/cc-by-4.0.txt +0 -1
  39. data/vendor/choosealicense.com/_licenses/cc-by-sa-4.0.txt +0 -1
  40. data/vendor/choosealicense.com/_licenses/cc0-1.0.txt +0 -1
  41. data/vendor/choosealicense.com/_licenses/ecl-2.0.txt +0 -1
  42. data/vendor/choosealicense.com/_licenses/epl-1.0.txt +0 -1
  43. data/vendor/choosealicense.com/_licenses/epl-2.0.txt +0 -1
  44. data/vendor/choosealicense.com/_licenses/eupl-1.1.txt +0 -1
  45. data/vendor/choosealicense.com/_licenses/eupl-1.2.txt +0 -1
  46. data/vendor/choosealicense.com/_licenses/gpl-2.0.txt +0 -1
  47. data/vendor/choosealicense.com/_licenses/gpl-3.0.txt +1 -2
  48. data/vendor/choosealicense.com/_licenses/isc.txt +0 -1
  49. data/vendor/choosealicense.com/_licenses/lgpl-2.1.txt +0 -1
  50. data/vendor/choosealicense.com/_licenses/lgpl-3.0.txt +1 -2
  51. data/vendor/choosealicense.com/_licenses/lppl-1.3c.txt +0 -1
  52. data/vendor/choosealicense.com/_licenses/mit.txt +0 -1
  53. data/vendor/choosealicense.com/_licenses/mpl-2.0.txt +0 -1
  54. data/vendor/choosealicense.com/_licenses/ms-pl.txt +0 -1
  55. data/vendor/choosealicense.com/_licenses/ms-rl.txt +0 -1
  56. data/vendor/choosealicense.com/_licenses/ncsa.txt +0 -1
  57. data/vendor/choosealicense.com/_licenses/ofl-1.1.txt +0 -1
  58. data/vendor/choosealicense.com/_licenses/osl-3.0.txt +0 -1
  59. data/vendor/choosealicense.com/_licenses/postgresql.txt +2 -3
  60. data/vendor/choosealicense.com/_licenses/unlicense.txt +0 -1
  61. data/vendor/choosealicense.com/_licenses/upl-1.0.txt +0 -1
  62. data/vendor/choosealicense.com/_licenses/wtfpl.txt +0 -1
  63. data/vendor/choosealicense.com/_licenses/zlib.txt +0 -1
  64. metadata +4 -4
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  title: Universal Permissive License v1.0
3
3
  spdx-id: UPL-1.0
4
- source: https://oss.oracle.com/licenses/upl/
5
4
 
6
5
  description: A permissive, OSI and FSF approved, GPL compatible license, expressly allowing attribution with just a copyright notice and a short form link rather than the full text of the license. Includes an express grant of patent rights. Licensed works and modifications may be distributed under different terms and without source code, and the patent grant may also optionally be expanded to larger works to permit use as a contributor license agreement.
7
6
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  title: "Do What The F*ck You Want To Public License"
3
3
  spdx-id: WTFPL
4
- source: http://www.wtfpl.net/txt/copying/
5
4
 
6
5
  description: The easiest license out there. It gives the user permissions to do whatever they want with your code.
7
6
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  title: zlib License
3
3
  spdx-id: Zlib
4
- source: https://opensource.org/licenses/Zlib
5
4
 
6
5
  description: A short permissive license, compatible with GPL. Requires altered source versions to be documented as such.
7
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.10.1
4
+ version: 9.11.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: 2018-10-09 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -242,6 +242,7 @@ files:
242
242
  - spec/fixtures/lgpl/COPYING.lesser
243
243
  - spec/fixtures/lgpl/LICENSE
244
244
  - spec/fixtures/license-folder/README.md
245
+ - spec/fixtures/license-hashes.json
245
246
  - spec/fixtures/license-in-parent-folder/LICENSE.txt
246
247
  - spec/fixtures/license-in-parent-folder/license-folder/LICENSE.txt
247
248
  - spec/fixtures/license-with-readme-reference/LICENSE
@@ -346,8 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
346
347
  - !ruby/object:Gem::Version
347
348
  version: '0'
348
349
  requirements: []
349
- rubyforge_project:
350
- rubygems_version: 2.7.6
350
+ rubygems_version: 3.0.2
351
351
  signing_key:
352
352
  specification_version: 4
353
353
  summary: A Ruby Gem to detect open source project licenses