licensee 9.10.1 → 9.13.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +1 -1
  3. data/bin/licensee +5 -4
  4. data/lib/licensee.rb +7 -5
  5. data/lib/licensee/commands/detect.rb +7 -5
  6. data/lib/licensee/commands/diff.rb +7 -8
  7. data/lib/licensee/commands/license_path.rb +2 -0
  8. data/lib/licensee/commands/version.rb +2 -0
  9. data/lib/licensee/content_helper.rb +230 -85
  10. data/lib/licensee/hash_helper.rb +7 -5
  11. data/lib/licensee/license.rb +21 -22
  12. data/lib/licensee/license_field.rb +3 -1
  13. data/lib/licensee/license_meta.rb +2 -0
  14. data/lib/licensee/license_rules.rb +2 -0
  15. data/lib/licensee/matchers.rb +2 -0
  16. data/lib/licensee/matchers/cabal.rb +16 -2
  17. data/lib/licensee/matchers/cargo.rb +3 -1
  18. data/lib/licensee/matchers/copyright.rb +6 -4
  19. data/lib/licensee/matchers/cran.rb +5 -3
  20. data/lib/licensee/matchers/dice.rb +6 -4
  21. data/lib/licensee/matchers/dist_zilla.rb +3 -1
  22. data/lib/licensee/matchers/exact.rb +2 -0
  23. data/lib/licensee/matchers/gemspec.rb +7 -5
  24. data/lib/licensee/matchers/matcher.rb +3 -1
  25. data/lib/licensee/matchers/npm_bower.rb +3 -1
  26. data/lib/licensee/matchers/package.rb +2 -0
  27. data/lib/licensee/matchers/reference.rb +3 -1
  28. data/lib/licensee/matchers/spdx.rb +3 -1
  29. data/lib/licensee/project_files.rb +2 -0
  30. data/lib/licensee/project_files/license_file.rb +12 -10
  31. data/lib/licensee/project_files/package_manager_file.rb +2 -0
  32. data/lib/licensee/project_files/project_file.rb +12 -5
  33. data/lib/licensee/project_files/readme_file.rb +5 -3
  34. data/lib/licensee/projects.rb +2 -0
  35. data/lib/licensee/projects/fs_project.rb +9 -2
  36. data/lib/licensee/projects/git_project.rb +19 -11
  37. data/lib/licensee/projects/github_project.rb +3 -1
  38. data/lib/licensee/projects/project.rb +7 -5
  39. data/lib/licensee/rule.rb +2 -0
  40. data/lib/licensee/version.rb +3 -1
  41. data/licensee.gemspec +45 -0
  42. data/spec/bin_spec.rb +3 -1
  43. data/spec/fixture_spec.rb +46 -0
  44. data/spec/fixtures/bsd-3-noendorseslash/LICENSE +30 -0
  45. data/spec/fixtures/cc0-cal2013/LICENSE +116 -0
  46. data/spec/fixtures/cc0-cc/LICENSE +121 -0
  47. data/spec/fixtures/detect.json +10 -8
  48. data/spec/fixtures/fixtures.yml +134 -0
  49. data/spec/fixtures/html/license.html +262 -0
  50. data/spec/fixtures/license-hashes.json +41 -0
  51. data/spec/fixtures/mit-optional/LICENSE.txt +21 -0
  52. data/spec/fixtures/multiple-arrs/LICENSE +30 -0
  53. data/spec/fixtures/readme-invalid-encoding/README.md +24 -0
  54. data/spec/fixtures/unlicense-noinfo/LICENSE +22 -0
  55. data/spec/integration_spec.rb +68 -2
  56. data/spec/licensee/commands/detect_spec.rb +11 -7
  57. data/spec/licensee/commands/license_path_spec.rb +3 -1
  58. data/spec/licensee/commands/version_spec.rb +3 -1
  59. data/spec/licensee/content_helper_spec.rb +185 -67
  60. data/spec/licensee/hash_helper_spec.rb +3 -1
  61. data/spec/licensee/license_field_spec.rb +5 -3
  62. data/spec/licensee/license_meta_spec.rb +16 -12
  63. data/spec/licensee/license_rules_spec.rb +6 -2
  64. data/spec/licensee/license_spec.rb +37 -35
  65. data/spec/licensee/matchers/cabal_matcher_spec.rb +97 -2
  66. data/spec/licensee/matchers/cargo_matcher_spec.rb +5 -2
  67. data/spec/licensee/matchers/copyright_matcher_spec.rb +7 -5
  68. data/spec/licensee/matchers/cran_matcher_spec.rb +5 -2
  69. data/spec/licensee/matchers/dice_matcher_spec.rb +15 -12
  70. data/spec/licensee/matchers/dist_zilla_matcher_spec.rb +5 -2
  71. data/spec/licensee/matchers/exact_matcher_spec.rb +5 -2
  72. data/spec/licensee/matchers/gemspec_matcher_spec.rb +5 -2
  73. data/spec/licensee/matchers/matcher_spec.rb +6 -2
  74. data/spec/licensee/matchers/npm_bower_matcher_spec.rb +5 -3
  75. data/spec/licensee/matchers/package_matcher_spec.rb +6 -2
  76. data/spec/licensee/matchers/reference_matcher_spec.rb +4 -2
  77. data/spec/licensee/matchers/spdx_matcher_spec.rb +5 -2
  78. data/spec/licensee/project_files/license_file_spec.rb +20 -18
  79. data/spec/licensee/project_files/package_info_spec.rb +5 -1
  80. data/spec/licensee/project_files/project_file_spec.rb +8 -2
  81. data/spec/licensee/project_files/readme_file_spec.rb +4 -1
  82. data/spec/licensee/project_spec.rb +24 -17
  83. data/spec/licensee/projects/git_project_spec.rb +23 -0
  84. data/spec/licensee/projects/github_project_spec.rb +8 -5
  85. data/spec/licensee/rule_spec.rb +6 -3
  86. data/spec/licensee_spec.rb +12 -9
  87. data/spec/spec_helper.rb +27 -9
  88. data/spec/vendored_license_spec.rb +29 -10
  89. data/vendor/choosealicense.com/_data/meta.yml +0 -4
  90. data/vendor/choosealicense.com/_data/rules.yml +3 -0
  91. data/vendor/choosealicense.com/_licenses/0bsd.txt +39 -0
  92. data/vendor/choosealicense.com/_licenses/afl-3.0.txt +7 -6
  93. data/vendor/choosealicense.com/_licenses/agpl-3.0.txt +0 -1
  94. data/vendor/choosealicense.com/_licenses/apache-2.0.txt +1 -2
  95. data/vendor/choosealicense.com/_licenses/artistic-2.0.txt +1 -2
  96. data/vendor/choosealicense.com/_licenses/bsd-2-clause.txt +8 -6
  97. data/vendor/choosealicense.com/_licenses/bsd-3-clause-clear.txt +2 -2
  98. data/vendor/choosealicense.com/_licenses/bsd-3-clause.txt +12 -10
  99. data/vendor/choosealicense.com/_licenses/bsd-4-clause.txt +61 -0
  100. data/vendor/choosealicense.com/_licenses/bsl-1.0.txt +5 -2
  101. data/vendor/choosealicense.com/_licenses/cc-by-4.0.txt +16 -14
  102. data/vendor/choosealicense.com/_licenses/cc-by-sa-4.0.txt +16 -14
  103. data/vendor/choosealicense.com/_licenses/cc0-1.0.txt +113 -105
  104. data/vendor/choosealicense.com/_licenses/cecill-2.1.txt +579 -0
  105. data/vendor/choosealicense.com/_licenses/ecl-2.0.txt +1 -2
  106. data/vendor/choosealicense.com/_licenses/epl-1.0.txt +1 -2
  107. data/vendor/choosealicense.com/_licenses/epl-2.0.txt +3 -4
  108. data/vendor/choosealicense.com/_licenses/eupl-1.1.txt +0 -1
  109. data/vendor/choosealicense.com/_licenses/eupl-1.2.txt +0 -1
  110. data/vendor/choosealicense.com/_licenses/gpl-2.0.txt +0 -1
  111. data/vendor/choosealicense.com/_licenses/gpl-3.0.txt +1 -2
  112. data/vendor/choosealicense.com/_licenses/isc.txt +2 -3
  113. data/vendor/choosealicense.com/_licenses/lgpl-2.1.txt +0 -1
  114. data/vendor/choosealicense.com/_licenses/lgpl-3.0.txt +1 -3
  115. data/vendor/choosealicense.com/_licenses/lppl-1.3c.txt +1 -2
  116. data/vendor/choosealicense.com/_licenses/mit.txt +1 -2
  117. data/vendor/choosealicense.com/_licenses/mpl-2.0.txt +0 -1
  118. data/vendor/choosealicense.com/_licenses/ms-pl.txt +0 -1
  119. data/vendor/choosealicense.com/_licenses/ms-rl.txt +0 -1
  120. data/vendor/choosealicense.com/_licenses/ncsa.txt +21 -22
  121. data/vendor/choosealicense.com/_licenses/odbl-1.0.txt +573 -0
  122. data/vendor/choosealicense.com/_licenses/ofl-1.1.txt +4 -2
  123. data/vendor/choosealicense.com/_licenses/osl-3.0.txt +1 -2
  124. data/vendor/choosealicense.com/_licenses/postgresql.txt +4 -5
  125. data/vendor/choosealicense.com/_licenses/unlicense.txt +1 -2
  126. data/vendor/choosealicense.com/_licenses/upl-1.0.txt +4 -5
  127. data/vendor/choosealicense.com/_licenses/vim.txt +111 -0
  128. data/vendor/choosealicense.com/_licenses/wtfpl.txt +0 -1
  129. data/vendor/choosealicense.com/_licenses/zlib.txt +4 -2
  130. metadata +79 -28
@@ -13,7 +13,7 @@
13
13
  "Babel": "https://github.com/babel/babel/blob/master/LICENSE"
14
14
  },
15
15
  {
16
- ".NET Core": "https://github.com/dotnet/corefx/blob/master/LICENSE.TXT"
16
+ ".NET Core": "https://github.com/dotnet/runtime/blob/master/LICENSE.TXT"
17
17
  },
18
18
  {
19
19
  "Rails": "https://github.com/rails/rails/blob/master/MIT-LICENSE"
@@ -87,25 +87,27 @@
87
87
  "matched_files": [
88
88
  {
89
89
  "filename": "LICENSE.md",
90
- "content": "MIT License\n\nCopyright (c) 2014-2017 Ben Balter\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
91
- "content_hash": "46cdc03462b9af57968df67b450cc4372ac41f53",
92
- "content_normalized": "permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files the \"software\" , to deal in the software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, and to permit persons to whom the software is furnished to do so, subject to the following conditions: the above copyright notice and this permission notice shall be included in all copies or substantial portions of the software. the software is provided \"as is\", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.",
90
+ "content": "MIT License\n\nCopyright (c) 2014-2020 Ben Balter and Licensee contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
91
+ "content_hash": "d64f3bb4282a97b37454b5bb96a8a264a3363dc3",
92
+ "content_normalized": "permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"software\"), to deal in the software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, and to permit persons to whom the software is furnished to do so, subject to the following conditions: the above copyright notice and this permission notice shall be included in all copies or substantial portions of the software. the software is provided \"as is\", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.",
93
93
  "matcher": {
94
94
  "name": "exact",
95
95
  "confidence": 100
96
96
  },
97
- "matched_license": "MIT"
97
+ "matched_license": "MIT",
98
+ "attribution": "Copyright (c) 2014-2020 Ben Balter and Licensee contributors"
98
99
  },
99
100
  {
100
101
  "filename": "licensee.gemspec",
101
- "content": "require File.expand_path('lib/licensee/version', __dir__)\n\nGem::Specification.new do |gem|\n gem.name = 'licensee'\n gem.version = Licensee::VERSION\n\n gem.summary = 'A Ruby Gem to detect open source project licenses'\n gem.description = <<-DESC\n Licensee automates the process of reading LICENSE files and\n compares their contents to known licenses using a fancy maths.\n DESC\n\n gem.authors = ['Ben Balter']\n gem.email = 'ben.balter@github.com'\n gem.homepage = 'https://github.com/benbalter/licensee'\n gem.license = 'MIT'\n\n gem.bindir = 'bin'\n gem.executables << 'licensee'\n\n gem.add_dependency('dotenv', '~> 2.0')\n gem.add_dependency('octokit', '~> 4.8.0')\n gem.add_dependency('rugged', '~> 0.24')\n gem.add_dependency('thor', '~> 0.19')\n\n gem.add_development_dependency('coveralls', '~> 0.8')\n gem.add_development_dependency('mustache', '>= 0.9', '< 2.0')\n gem.add_development_dependency('pry', '~> 0.9')\n gem.add_development_dependency('rake', '~> 10.3')\n gem.add_development_dependency('rspec', '~> 3.5')\n gem.add_development_dependency('rubocop', '~> 0.49')\n gem.add_development_dependency('webmock', '~> 3.1')\n\n gem.required_ruby_version = '> 2.2'\n\n # ensure the gem is built out of versioned files\n gem.files = Dir[\n 'Rakefile',\n '{bin,lib,man,test,vendor,spec}/**/*',\n 'README*', 'LICENSE*'\n ] & `git ls-files -z`.split(\"\\0\")\nend\n",
102
+ "content": "# frozen_string_literal: true\n\nrequire File.expand_path('lib/licensee/version', __dir__)\n\nGem::Specification.new do |gem|\n gem.name = 'licensee'\n gem.version = Licensee::VERSION\n\n gem.summary = 'A Ruby Gem to detect open source project licenses'\n gem.description = <<-DESC\n Licensee automates the process of reading LICENSE files and\n compares their contents to known licenses using a fancy maths.\n DESC\n\n gem.authors = ['Ben Balter']\n gem.email = 'ben.balter@github.com'\n gem.homepage = 'https://github.com/benbalter/licensee'\n gem.license = 'MIT'\n\n gem.bindir = 'bin'\n gem.executables << 'licensee'\n\n gem.add_dependency('dotenv', '~> 2.0')\n gem.add_dependency('octokit', '~> 4.17')\n gem.add_dependency('reverse_markdown', '~> 1.0')\n gem.add_dependency('rugged', '~> 0.24')\n gem.add_dependency('thor', '>= 0.19', '< 2.0')\n\n gem.add_development_dependency('mustache', '>= 0.9', '< 2.0')\n gem.add_development_dependency('pry', '~> 0.9')\n gem.add_development_dependency('rspec', '~> 3.5')\n gem.add_development_dependency('rubocop', '~> 0.80')\n gem.add_development_dependency('rubocop-performance', '~> 1.5')\n gem.add_development_dependency('rubocop-rspec', '~> 1.36')\n gem.add_development_dependency('simplecov', '~> 0.16')\n gem.add_development_dependency('webmock', '~> 3.1')\n\n gem.required_ruby_version = '> 2.3'\n\n # ensure the gem is built out of versioned files\n gem.files = Dir[\n '{bin,lib,man,test,vendor,spec}/**/*',\n 'README*', 'LICENSE*'\n ] & `git ls-files -z`.split(\"\\0\")\nend\n",
102
103
  "content_hash": null,
103
104
  "content_normalized": null,
104
105
  "matcher": {
105
106
  "name": "gemspec",
106
107
  "confidence": 90
107
108
  },
108
- "matched_license": "MIT"
109
+ "matched_license": "MIT",
110
+ "attribution": null
109
111
  }
110
112
  ]
111
- }
113
+ }
@@ -0,0 +1,134 @@
1
+ # Map of fixtures to expectation as an added integration test
2
+ ---
3
+ apache-with-readme-notice:
4
+ key: apache-2.0
5
+ matcher: exact
6
+ hash: ab3901051663cb8ee5dea9ebdff406ad136910e3
7
+ bsd-3-lists:
8
+ key: bsd-3-clause
9
+ matcher:
10
+ hash:
11
+ bsd-3-noendorseslash:
12
+ key: bsd-3-clause
13
+ matcher: dice
14
+ hash: 11df3173c40b87a9da370f3420372a310259b273
15
+ bsd-plus-patents:
16
+ key: other
17
+ matcher:
18
+ hash:
19
+ bsl:
20
+ key: bsl-1.0
21
+ matcher: exact
22
+ hash: ca8f916d00c234719956e932061f192abb2d5bf9
23
+ case-sensitive:
24
+ key: other
25
+ matcher:
26
+ hash: da39a3ee5e6b4b0d3255bfef95601890afd80709
27
+ cc-by-nc-sa:
28
+ key: other
29
+ matcher:
30
+ hash: 5327932ea9cfee2d8d1ab7d5e088e868413eadea
31
+ cc-by-nd:
32
+ key: other
33
+ matcher:
34
+ hash: a75ef554ca6941d195bbc1197f934d43a75b312d
35
+ cc0-cal2013:
36
+ key: cc0-1.0
37
+ matcher: dice
38
+ hash: 2aa555363d0d2ce0a924940fab198c38dd3ff30b
39
+ cc0-cc:
40
+ key: cc0-1.0
41
+ matcher: exact
42
+ hash: c07f7fdd02072b9b9ddafb29c7fe556ed4d31f6a
43
+ copyright-encoding:
44
+ key: no-license
45
+ matcher: copyright
46
+ hash: da39a3ee5e6b4b0d3255bfef95601890afd80709
47
+ crlf-license:
48
+ key: gpl-3.0
49
+ matcher: exact
50
+ hash: b22f1b1f953a38a8a11686587b98831858d6468b
51
+ description-license:
52
+ key: other
53
+ matcher:
54
+ hash: ab0fb718684bbc67c7dfc2e9ab2175dab4fcb819
55
+ fcpl-modified-mpl:
56
+ key: other
57
+ matcher:
58
+ hash: '06942321efd22b697fc4600bf68c0b6b3399cb12'
59
+ gemspec:
60
+ key:
61
+ matcher:
62
+ hash:
63
+ gpl3-without-instructions:
64
+ key: gpl-3.0
65
+ matcher: exact
66
+ hash: b22f1b1f953a38a8a11686587b98831858d6468b
67
+ html:
68
+ key: epl-1.0
69
+ matcher: dice
70
+ hash: 5265922b5943810a3ad23c66c50a0828ba342bfd
71
+ lgpl:
72
+ key: lgpl-3.0
73
+ matcher: exact
74
+ hash: bdb3c042bd84f914eacfbe4977c5e58352745809
75
+ license-folder:
76
+ key:
77
+ matcher:
78
+ hash:
79
+ license-in-parent-folder:
80
+ key: mit
81
+ matcher: exact
82
+ hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3
83
+ license-with-readme-reference:
84
+ key: mit
85
+ matcher: exact
86
+ hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3
87
+ markdown-gpl:
88
+ key: gpl-2.0
89
+ matcher: dice
90
+ hash: a0de4ee2a7e6ef2c2f6283b09cc755af5de5a5cb
91
+ mit:
92
+ key: mit
93
+ matcher: exact
94
+ hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3
95
+ mit-optional:
96
+ key: mit
97
+ matcher: exact
98
+ hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3
99
+ mit-with-copyright:
100
+ key: mit
101
+ matcher:
102
+ hash:
103
+ mpl-without-hrs:
104
+ key: mpl-2.0
105
+ matcher: exact
106
+ hash: b4db668fa7573bfdcae74eb51eafc961034f0a61
107
+ multiple-arrs:
108
+ key: bsd-3-clause
109
+ matcher: exact
110
+ hash: fa22c672927af9c7334874561198799cbf4bdf31
111
+ multiple-license-files:
112
+ key: other
113
+ matcher:
114
+ hash:
115
+ readme:
116
+ key: mit
117
+ matcher:
118
+ hash:
119
+ readme-invalid-encoding:
120
+ key: mit
121
+ matcher:
122
+ hash:
123
+ unlicense-noinfo:
124
+ key: unlicense
125
+ matcher: exact
126
+ hash: 853b375edc61b9e823da0fa5fead97c9460c3e45
127
+ webmock:
128
+ key:
129
+ matcher:
130
+ hash:
131
+ wrk-modified-apache:
132
+ key: other
133
+ matcher:
134
+ hash: e733ea59fcc053841df5a1a3574a298d9ee3635e
@@ -0,0 +1,262 @@
1
+
2
+ <?xml version="1.0" encoding="ISO-8859-1" ?>
3
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml">
5
+
6
+ <head>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
8
+ <title>Eclipse Public License - Version 1.0</title>
9
+ <style type="text/css">
10
+ body {
11
+ size: 8.5in 11.0in;
12
+ margin: 0.25in 0.5in 0.25in 0.5in;
13
+ tab-interval: 0.5in;
14
+ }
15
+ p {
16
+ margin-left: auto;
17
+ margin-top: 0.5em;
18
+ margin-bottom: 0.5em;
19
+ }
20
+ p.list {
21
+ margin-left: 0.5in;
22
+ margin-top: 0.05em;
23
+ margin-bottom: 0.05em;
24
+ }
25
+ </style>
26
+
27
+ </head>
28
+
29
+ <body lang="EN-US">
30
+
31
+ <h2>Eclipse Public License - v 1.0</h2>
32
+
33
+ <p>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
34
+ PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE, REPRODUCTION OR
35
+ DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
36
+ AGREEMENT.</p>
37
+
38
+ <p><b>1. DEFINITIONS</b></p>
39
+
40
+ <p>&quot;Contribution&quot; means:</p>
41
+
42
+ <p class="list">a) in the case of the initial Contributor, the initial
43
+ code and documentation distributed under this Agreement, and</p>
44
+ <p class="list">b) in the case of each subsequent Contributor:</p>
45
+ <p class="list">i) changes to the Program, and</p>
46
+ <p class="list">ii) additions to the Program;</p>
47
+ <p class="list">where such changes and/or additions to the Program
48
+ originate from and are distributed by that particular Contributor. A
49
+ Contribution 'originates' from a Contributor if it was added to the
50
+ Program by such Contributor itself or anyone acting on such
51
+ Contributor's behalf. Contributions do not include additions to the
52
+ Program which: (i) are separate modules of software distributed in
53
+ conjunction with the Program under their own license agreement, and (ii)
54
+ are not derivative works of the Program.</p>
55
+
56
+ <p>&quot;Contributor&quot; means any person or entity that distributes
57
+ the Program.</p>
58
+
59
+ <p>&quot;Licensed Patents&quot; mean patent claims licensable by a
60
+ Contributor which are necessarily infringed by the use or sale of its
61
+ Contribution alone or when combined with the Program.</p>
62
+
63
+ <p>&quot;Program&quot; means the Contributions distributed in accordance
64
+ with this Agreement.</p>
65
+
66
+ <p>&quot;Recipient&quot; means anyone who receives the Program under
67
+ this Agreement, including all Contributors.</p>
68
+
69
+ <p><b>2. GRANT OF RIGHTS</b></p>
70
+
71
+ <p class="list">a) Subject to the terms of this Agreement, each
72
+ Contributor hereby grants Recipient a non-exclusive, worldwide,
73
+ royalty-free copyright license to reproduce, prepare derivative works
74
+ of, publicly display, publicly perform, distribute and sublicense the
75
+ Contribution of such Contributor, if any, and such derivative works, in
76
+ source code and object code form.</p>
77
+
78
+ <p class="list">b) Subject to the terms of this Agreement, each
79
+ Contributor hereby grants Recipient a non-exclusive, worldwide,
80
+ royalty-free patent license under Licensed Patents to make, use, sell,
81
+ offer to sell, import and otherwise transfer the Contribution of such
82
+ Contributor, if any, in source code and object code form. This patent
83
+ license shall apply to the combination of the Contribution and the
84
+ Program if, at the time the Contribution is added by the Contributor,
85
+ such addition of the Contribution causes such combination to be covered
86
+ by the Licensed Patents. The patent license shall not apply to any other
87
+ combinations which include the Contribution. No hardware per se is
88
+ licensed hereunder.</p>
89
+
90
+ <p class="list">c) Recipient understands that although each Contributor
91
+ grants the licenses to its Contributions set forth herein, no assurances
92
+ are provided by any Contributor that the Program does not infringe the
93
+ patent or other intellectual property rights of any other entity. Each
94
+ Contributor disclaims any liability to Recipient for claims brought by
95
+ any other entity based on infringement of intellectual property rights
96
+ or otherwise. As a condition to exercising the rights and licenses
97
+ granted hereunder, each Recipient hereby assumes sole responsibility to
98
+ secure any other intellectual property rights needed, if any. For
99
+ example, if a third party patent license is required to allow Recipient
100
+ to distribute the Program, it is Recipient's responsibility to acquire
101
+ that license before distributing the Program.</p>
102
+
103
+ <p class="list">d) Each Contributor represents that to its knowledge it
104
+ has sufficient copyright rights in its Contribution, if any, to grant
105
+ the copyright license set forth in this Agreement.</p>
106
+
107
+ <p><b>3. REQUIREMENTS</b></p>
108
+
109
+ <p>A Contributor may choose to distribute the Program in object code
110
+ form under its own license agreement, provided that:</p>
111
+
112
+ <p class="list">a) it complies with the terms and conditions of this
113
+ Agreement; and</p>
114
+
115
+ <p class="list">b) its license agreement:</p>
116
+
117
+ <p class="list">i) effectively disclaims on behalf of all Contributors
118
+ all warranties and conditions, express and implied, including warranties
119
+ or conditions of title and non-infringement, and implied warranties or
120
+ conditions of merchantability and fitness for a particular purpose;</p>
121
+
122
+ <p class="list">ii) effectively excludes on behalf of all Contributors
123
+ all liability for damages, including direct, indirect, special,
124
+ incidental and consequential damages, such as lost profits;</p>
125
+
126
+ <p class="list">iii) states that any provisions which differ from this
127
+ Agreement are offered by that Contributor alone and not by any other
128
+ party; and</p>
129
+
130
+ <p class="list">iv) states that source code for the Program is available
131
+ from such Contributor, and informs licensees how to obtain it in a
132
+ reasonable manner on or through a medium customarily used for software
133
+ exchange.</p>
134
+
135
+ <p>When the Program is made available in source code form:</p>
136
+
137
+ <p class="list">a) it must be made available under this Agreement; and</p>
138
+
139
+ <p class="list">b) a copy of this Agreement must be included with each
140
+ copy of the Program.</p>
141
+
142
+ <p>Contributors may not remove or alter any copyright notices contained
143
+ within the Program.</p>
144
+
145
+ <p>Each Contributor must identify itself as the originator of its
146
+ Contribution, if any, in a manner that reasonably allows subsequent
147
+ Recipients to identify the originator of the Contribution.</p>
148
+
149
+ <p><b>4. COMMERCIAL DISTRIBUTION</b></p>
150
+
151
+ <p>Commercial distributors of software may accept certain
152
+ responsibilities with respect to end users, business partners and the
153
+ like. While this license is intended to facilitate the commercial use of
154
+ the Program, the Contributor who includes the Program in a commercial
155
+ product offering should do so in a manner which does not create
156
+ potential liability for other Contributors. Therefore, if a Contributor
157
+ includes the Program in a commercial product offering, such Contributor
158
+ (&quot;Commercial Contributor&quot;) hereby agrees to defend and
159
+ indemnify every other Contributor (&quot;Indemnified Contributor&quot;)
160
+ against any losses, damages and costs (collectively &quot;Losses&quot;)
161
+ arising from claims, lawsuits and other legal actions brought by a third
162
+ party against the Indemnified Contributor to the extent caused by the
163
+ acts or omissions of such Commercial Contributor in connection with its
164
+ distribution of the Program in a commercial product offering. The
165
+ obligations in this section do not apply to any claims or Losses
166
+ relating to any actual or alleged intellectual property infringement. In
167
+ order to qualify, an Indemnified Contributor must: a) promptly notify
168
+ the Commercial Contributor in writing of such claim, and b) allow the
169
+ Commercial Contributor to control, and cooperate with the Commercial
170
+ Contributor in, the defense and any related settlement negotiations. The
171
+ Indemnified Contributor may participate in any such claim at its own
172
+ expense.</p>
173
+
174
+ <p>For example, a Contributor might include the Program in a commercial
175
+ product offering, Product X. That Contributor is then a Commercial
176
+ Contributor. If that Commercial Contributor then makes performance
177
+ claims, or offers warranties related to Product X, those performance
178
+ claims and warranties are such Commercial Contributor's responsibility
179
+ alone. Under this section, the Commercial Contributor would have to
180
+ defend claims against the other Contributors related to those
181
+ performance claims and warranties, and if a court requires any other
182
+ Contributor to pay any damages as a result, the Commercial Contributor
183
+ must pay those damages.</p>
184
+
185
+ <p><b>5. NO WARRANTY</b></p>
186
+
187
+ <p>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
188
+ PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS
189
+ OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
190
+ ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
191
+ OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
192
+ responsible for determining the appropriateness of using and
193
+ distributing the Program and assumes all risks associated with its
194
+ exercise of rights under this Agreement , including but not limited to
195
+ the risks and costs of program errors, compliance with applicable laws,
196
+ damage to or loss of data, programs or equipment, and unavailability or
197
+ interruption of operations.</p>
198
+
199
+ <p><b>6. DISCLAIMER OF LIABILITY</b></p>
200
+
201
+ <p>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
202
+ NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
203
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
204
+ WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
205
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
206
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
207
+ DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
208
+ HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
209
+
210
+ <p><b>7. GENERAL</b></p>
211
+
212
+ <p>If any provision of this Agreement is invalid or unenforceable under
213
+ applicable law, it shall not affect the validity or enforceability of
214
+ the remainder of the terms of this Agreement, and without further action
215
+ by the parties hereto, such provision shall be reformed to the minimum
216
+ extent necessary to make such provision valid and enforceable.</p>
217
+
218
+ <p>If Recipient institutes patent litigation against any entity
219
+ (including a cross-claim or counterclaim in a lawsuit) alleging that the
220
+ Program itself (excluding combinations of the Program with other
221
+ software or hardware) infringes such Recipient's patent(s), then such
222
+ Recipient's rights granted under Section 2(b) shall terminate as of the
223
+ date such litigation is filed.</p>
224
+
225
+ <p>All Recipient's rights under this Agreement shall terminate if it
226
+ fails to comply with any of the material terms or conditions of this
227
+ Agreement and does not cure such failure in a reasonable period of time
228
+ after becoming aware of such noncompliance. If all Recipient's rights
229
+ under this Agreement terminate, Recipient agrees to cease use and
230
+ distribution of the Program as soon as reasonably practicable. However,
231
+ Recipient's obligations under this Agreement and any licenses granted by
232
+ Recipient relating to the Program shall continue and survive.</p>
233
+
234
+ <p>Everyone is permitted to copy and distribute copies of this
235
+ Agreement, but in order to avoid inconsistency the Agreement is
236
+ copyrighted and may only be modified in the following manner. The
237
+ Agreement Steward reserves the right to publish new versions (including
238
+ revisions) of this Agreement from time to time. No one other than the
239
+ Agreement Steward has the right to modify this Agreement. The Eclipse
240
+ Foundation is the initial Agreement Steward. The Eclipse Foundation may
241
+ assign the responsibility to serve as the Agreement Steward to a
242
+ suitable separate entity. Each new version of the Agreement will be
243
+ given a distinguishing version number. The Program (including
244
+ Contributions) may always be distributed subject to the version of the
245
+ Agreement under which it was received. In addition, after a new version
246
+ of the Agreement is published, Contributor may elect to distribute the
247
+ Program (including its Contributions) under the new version. Except as
248
+ expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
249
+ rights or licenses to the intellectual property of any Contributor under
250
+ this Agreement, whether expressly, by implication, estoppel or
251
+ otherwise. All rights in the Program not expressly granted under this
252
+ Agreement are reserved.</p>
253
+
254
+ <p>This Agreement is governed by the laws of the State of New York and
255
+ the intellectual property laws of the United States of America. No party
256
+ to this Agreement will bring a legal action under this Agreement more
257
+ than one year after the cause of action arose. Each party waives its
258
+ rights to a jury trial in any resulting litigation.</p>
259
+
260
+ </body>
261
+
262
+ </html>
@@ -0,0 +1,41 @@
1
+ {
2
+ "0bsd": "7a6d7180345f015f6aaf49fac3154ed18b7db9ee",
3
+ "afl-3.0": "b991770683c71abd5c8cd8c8f10a03fedcdc76ec",
4
+ "agpl-3.0": "d445855a1f169b12cbee97d320c2e3522d053016",
5
+ "apache-2.0": "ab3901051663cb8ee5dea9ebdff406ad136910e3",
6
+ "artistic-2.0": "a2ff6e7fb76e51bda9a5350c759a824f206049d1",
7
+ "bsd-2-clause": "59f0099ff04225daf184db3fe55e478256133b1a",
8
+ "bsd-3-clause": "fa22c672927af9c7334874561198799cbf4bdf31",
9
+ "bsd-3-clause-clear": "251d4599b622d2a87b2c4bb21dfacd438c048466",
10
+ "bsd-4-clause": "c31a46c2b8764b63d73332c5e9e11f109dadee45",
11
+ "bsl-1.0": "ca8f916d00c234719956e932061f192abb2d5bf9",
12
+ "cc-by-4.0": "25b636566bb4cee96f8e917e6382b7c4a6858a90",
13
+ "cc-by-sa-4.0": "0b36f96c5df2aebaf4c5a9c2209d73ed0700a677",
14
+ "cc0-1.0": "c07f7fdd02072b9b9ddafb29c7fe556ed4d31f6a",
15
+ "cecill-2.1": "c996e4f8246fddc4fb083f72a70a85f36dffd288",
16
+ "ecl-2.0": "b24f240cd556a7764b9ace1bd763ad70c510d92a",
17
+ "epl-1.0": "e306464a81ab0e6688653c6509245b451637172c",
18
+ "epl-2.0": "b57663bc9c3f41446a8cd3f0050149221a58fe66",
19
+ "eupl-1.1": "873e30dbc5f75d076d7aecb6ceb84fb6bb765452",
20
+ "eupl-1.2": "f122f96b9f1a56e4806a89cb1cc6ca2bb956f3e5",
21
+ "gpl-2.0": "3becd209e8ed8039656c1debe01dd17b9a79208f",
22
+ "gpl-3.0": "b22f1b1f953a38a8a11686587b98831858d6468b",
23
+ "isc": "d168f98624be864548b2bbf4f198fdbf702d6743",
24
+ "lgpl-2.1": "91e779a787786276618f58d6e396a5e64a981805",
25
+ "lgpl-3.0": "bdb3c042bd84f914eacfbe4977c5e58352745809",
26
+ "lppl-1.3c": "60961652297042d28bb689c17fac47eca7348d16",
27
+ "mit": "d64f3bb4282a97b37454b5bb96a8a264a3363dc3",
28
+ "mpl-2.0": "b4db668fa7573bfdcae74eb51eafc961034f0a61",
29
+ "ms-pl": "c900293d66a241e54f7817367a8f32f7f94e12ff",
30
+ "ms-rl": "402bf344e506a8d10175c1e516b396c060ffd823",
31
+ "ncsa": "da965ab8e2094b0f0ac97a8502272b5400c29508",
32
+ "odbl-1.0": "4f4c0884535ebe8fdf1b93d2d3505e323144831f",
33
+ "ofl-1.1": "1fb0563aa1250e18a6948afde286edc95761f461",
34
+ "osl-3.0": "ab241ef932d3ac038e8ed62c860e9eba051ae7a0",
35
+ "postgresql": "87550a6bb3409db00d8552b2ac07d373ea56a024",
36
+ "unlicense": "853b375edc61b9e823da0fa5fead97c9460c3e45",
37
+ "upl-1.0": "af9efb6f7b29f8c2d486ccb28223db0aa8372c29",
38
+ "vim": "76268065cdc78dd7f3677df936cb24aa93aa14b0",
39
+ "wtfpl": "f8544c074f203d86cdcb24082fedfb2cf2fe411a",
40
+ "zlib": "576139d1f785b8f3539099b9702fc68005ee2213"
41
+ }