license_scout 1.3.11 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +195 -0
  3. data/bin/license_scout +3 -59
  4. data/bin/mix_lock_json +0 -0
  5. data/bin/rebar_lock_json +0 -0
  6. data/lib/license_scout/cli.rb +99 -0
  7. data/lib/license_scout/collector.rb +25 -77
  8. data/lib/license_scout/config.rb +94 -0
  9. data/lib/license_scout/data/dependeny_manifest_v2_schema.json +62 -0
  10. data/lib/license_scout/data/exceptions.json +306 -0
  11. data/lib/license_scout/data/licenses.json +4653 -0
  12. data/lib/license_scout/dependency.rb +79 -7
  13. data/lib/license_scout/dependency_manager/base.rb +74 -42
  14. data/lib/license_scout/dependency_manager/berkshelf.rb +25 -50
  15. data/lib/license_scout/dependency_manager/bundler/_bundler_script.rb +1 -1
  16. data/lib/license_scout/dependency_manager/bundler.rb +47 -69
  17. data/lib/license_scout/dependency_manager/cpanm.rb +62 -112
  18. data/lib/license_scout/dependency_manager/dep.rb +29 -36
  19. data/lib/license_scout/dependency_manager/glide.rb +25 -36
  20. data/lib/license_scout/dependency_manager/godep.rb +27 -26
  21. data/lib/license_scout/dependency_manager/habitat.rb +126 -0
  22. data/lib/license_scout/dependency_manager/mix.rb +105 -0
  23. data/lib/license_scout/dependency_manager/npm.rb +30 -86
  24. data/lib/license_scout/dependency_manager/rebar.rb +26 -45
  25. data/lib/license_scout/dependency_manager.rb +19 -5
  26. data/lib/license_scout/exceptions.rb +2 -43
  27. data/lib/license_scout/license.rb +126 -0
  28. data/lib/license_scout/{license_file_analyzer.rb → log.rb} +4 -6
  29. data/lib/license_scout/reporter.rb +149 -55
  30. data/lib/license_scout/spdx.rb +123 -0
  31. data/lib/license_scout/version.rb +1 -1
  32. data/lib/license_scout.rb +2 -0
  33. data/native_parsers/mix_lock_json/README.md +21 -0
  34. data/native_parsers/mix_lock_json/lib/mix_lock_json.ex +20 -0
  35. data/native_parsers/mix_lock_json/mix.exs +31 -0
  36. data/native_parsers/mix_lock_json/mix.lock +3 -0
  37. data/{erl_src → native_parsers}/rebar_lock_json/rebar.lock +2 -2
  38. metadata +144 -67
  39. data/lib/license_scout/canonical_licenses/BSD-2-Clause.txt +0 -19
  40. data/lib/license_scout/canonical_licenses/BSD-3-Clause.txt +0 -27
  41. data/lib/license_scout/canonical_licenses/BSD-4-Clause.txt +0 -31
  42. data/lib/license_scout/canonical_licenses/Chef-MLSA.txt +0 -5
  43. data/lib/license_scout/canonical_licenses/ISC.txt +0 -14
  44. data/lib/license_scout/canonical_licenses/MIT.txt +0 -20
  45. data/lib/license_scout/dependency_manager/bundler/LICENSE.md +0 -23
  46. data/lib/license_scout/dependency_manager/json/README.md +0 -392
  47. data/lib/license_scout/dependency_manager/manual.rb +0 -67
  48. data/lib/license_scout/license_file_analyzer/any_matcher.rb +0 -37
  49. data/lib/license_scout/license_file_analyzer/definitions.rb +0 -219
  50. data/lib/license_scout/license_file_analyzer/header_matcher.rb +0 -34
  51. data/lib/license_scout/license_file_analyzer/matcher.rb +0 -46
  52. data/lib/license_scout/license_file_analyzer/template.rb +0 -45
  53. data/lib/license_scout/license_file_analyzer/templates/Apache2-short.txt +0 -11
  54. data/lib/license_scout/license_file_analyzer/templates/Apache2.txt +0 -170
  55. data/lib/license_scout/license_file_analyzer/templates/BSD-2-Clause-bullets.txt +0 -18
  56. data/lib/license_scout/license_file_analyzer/templates/BSD-2-Clause.txt +0 -19
  57. data/lib/license_scout/license_file_analyzer/templates/BSD-3-Clause-alt-format.txt +0 -24
  58. data/lib/license_scout/license_file_analyzer/templates/BSD-3-Clause.txt +0 -21
  59. data/lib/license_scout/license_file_analyzer/templates/BSD.txt +0 -24
  60. data/lib/license_scout/license_file_analyzer/templates/Chef-MLSA.txt +0 -5
  61. data/lib/license_scout/license_file_analyzer/templates/EPLICENSE.txt +0 -286
  62. data/lib/license_scout/license_file_analyzer/templates/GPL-2.0.txt +0 -339
  63. data/lib/license_scout/license_file_analyzer/templates/GPL-3.0.txt +0 -674
  64. data/lib/license_scout/license_file_analyzer/templates/ISC.txt +0 -2
  65. data/lib/license_scout/license_file_analyzer/templates/LGPL-3.0.txt +0 -165
  66. data/lib/license_scout/license_file_analyzer/templates/MIT.txt +0 -9
  67. data/lib/license_scout/license_file_analyzer/templates/MPL2.txt +0 -373
  68. data/lib/license_scout/license_file_analyzer/templates/Python-2.0.txt +0 -47
  69. data/lib/license_scout/license_file_analyzer/templates/Ruby.txt +0 -52
  70. data/lib/license_scout/license_file_analyzer/text.rb +0 -46
  71. data/lib/license_scout/net_fetcher.rb +0 -106
  72. data/lib/license_scout/options.rb +0 -47
  73. data/lib/license_scout/overrides.rb +0 -1120
  74. /data/{erl_src → native_parsers}/rebar_lock_json/README.md +0 -0
  75. /data/{erl_src → native_parsers}/rebar_lock_json/rebar.config +0 -0
  76. /data/{erl_src → native_parsers}/rebar_lock_json/src/rebar_lock_json.app.src +0 -0
  77. /data/{erl_src → native_parsers}/rebar_lock_json/src/rebar_lock_json.erl +0 -0
@@ -0,0 +1,306 @@
1
+ {
2
+ "licenseListVersion": "3.0",
3
+ "releaseDate": "28 December 2017",
4
+ "exceptions": [
5
+ {
6
+ "reference": "./389-exception.html",
7
+ "isDeprecatedLicenseId": false,
8
+ "detailsUrl": "http://spdx.org/licenses/389-exception.json",
9
+ "referenceNumber": "1",
10
+ "name": "389 Directory Server Exception",
11
+ "seeAlso": [
12
+ "http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text"
13
+ ],
14
+ "licenseExceptionId": "389-exception"
15
+ },
16
+ {
17
+ "reference": "./Autoconf-exception-2.0.html",
18
+ "isDeprecatedLicenseId": false,
19
+ "detailsUrl": "http://spdx.org/licenses/Autoconf-exception-2.0.json",
20
+ "referenceNumber": "2",
21
+ "name": "Autoconf exception 2.0",
22
+ "seeAlso": [
23
+ "http://ac-archive.sourceforge.net/doc/copyright.html",
24
+ "http://ftp.gnu.org/gnu/autoconf/autoconf-2.59.tar.gz"
25
+ ],
26
+ "licenseExceptionId": "Autoconf-exception-2.0"
27
+ },
28
+ {
29
+ "reference": "./Autoconf-exception-3.0.html",
30
+ "isDeprecatedLicenseId": false,
31
+ "detailsUrl": "http://spdx.org/licenses/Autoconf-exception-3.0.json",
32
+ "referenceNumber": "3",
33
+ "name": "Autoconf exception 3.0",
34
+ "seeAlso": [
35
+ "http://www.gnu.org/licenses/autoconf-exception-3.0.html"
36
+ ],
37
+ "licenseExceptionId": "Autoconf-exception-3.0"
38
+ },
39
+ {
40
+ "reference": "./Bison-exception-2.2.html",
41
+ "isDeprecatedLicenseId": false,
42
+ "detailsUrl": "http://spdx.org/licenses/Bison-exception-2.2.json",
43
+ "referenceNumber": "4",
44
+ "name": "Bison exception 2.2",
45
+ "seeAlso": [
46
+ "http://git.savannah.gnu.org/cgit/bison.git/tree/data/yacc.c?id\u003d193d7c7054ba7197b0789e14965b739162319b5e#n141"
47
+ ],
48
+ "licenseExceptionId": "Bison-exception-2.2"
49
+ },
50
+ {
51
+ "reference": "./Bootloader-exception.html",
52
+ "isDeprecatedLicenseId": false,
53
+ "detailsUrl": "http://spdx.org/licenses/Bootloader-exception.json",
54
+ "referenceNumber": "5",
55
+ "name": "Bootloader Distribution Exception",
56
+ "seeAlso": [
57
+ "https://github.com/pyinstaller/pyinstaller/blob/develop/COPYING.txt"
58
+ ],
59
+ "licenseExceptionId": "Bootloader-exception"
60
+ },
61
+ {
62
+ "reference": "./Classpath-exception-2.0.html",
63
+ "isDeprecatedLicenseId": false,
64
+ "detailsUrl": "http://spdx.org/licenses/Classpath-exception-2.0.json",
65
+ "referenceNumber": "6",
66
+ "name": "Classpath exception 2.0",
67
+ "seeAlso": [
68
+ "http://www.gnu.org/software/classpath/license.html",
69
+ "https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception"
70
+ ],
71
+ "licenseExceptionId": "Classpath-exception-2.0"
72
+ },
73
+ {
74
+ "reference": "./CLISP-exception-2.0.html",
75
+ "isDeprecatedLicenseId": false,
76
+ "detailsUrl": "http://spdx.org/licenses/CLISP-exception-2.0.json",
77
+ "referenceNumber": "7",
78
+ "name": "CLISP exception 2.0",
79
+ "seeAlso": [
80
+ "http://sourceforge.net/p/clisp/clisp/ci/default/tree/COPYRIGHT"
81
+ ],
82
+ "licenseExceptionId": "CLISP-exception-2.0"
83
+ },
84
+ {
85
+ "reference": "./DigiRule-FOSS-exception.html",
86
+ "isDeprecatedLicenseId": false,
87
+ "detailsUrl": "http://spdx.org/licenses/DigiRule-FOSS-exception.json",
88
+ "referenceNumber": "8",
89
+ "name": "DigiRule FOSS License Exception",
90
+ "seeAlso": [
91
+ "http://www.digirulesolutions.com/drupal/foss"
92
+ ],
93
+ "licenseExceptionId": "DigiRule-FOSS-exception"
94
+ },
95
+ {
96
+ "reference": "./eCos-exception-2.0.html",
97
+ "isDeprecatedLicenseId": false,
98
+ "detailsUrl": "http://spdx.org/licenses/eCos-exception-2.0.json",
99
+ "referenceNumber": "9",
100
+ "name": "eCos exception 2.0",
101
+ "seeAlso": [
102
+ "http://ecos.sourceware.org/license-overview.html"
103
+ ],
104
+ "licenseExceptionId": "eCos-exception-2.0"
105
+ },
106
+ {
107
+ "reference": "./Fawkes-Runtime-exception.html",
108
+ "isDeprecatedLicenseId": false,
109
+ "detailsUrl": "http://spdx.org/licenses/Fawkes-Runtime-exception.json",
110
+ "referenceNumber": "10",
111
+ "name": "Fawkes Runtime Exception",
112
+ "seeAlso": [
113
+ "http://www.fawkesrobotics.org/about/license/"
114
+ ],
115
+ "licenseExceptionId": "Fawkes-Runtime-exception"
116
+ },
117
+ {
118
+ "reference": "./FLTK-exception.html",
119
+ "isDeprecatedLicenseId": false,
120
+ "detailsUrl": "http://spdx.org/licenses/FLTK-exception.json",
121
+ "referenceNumber": "11",
122
+ "name": "FLTK exception",
123
+ "seeAlso": [
124
+ "http://www.fltk.org/COPYING.php"
125
+ ],
126
+ "licenseExceptionId": "FLTK-exception"
127
+ },
128
+ {
129
+ "reference": "./Font-exception-2.0.html",
130
+ "isDeprecatedLicenseId": false,
131
+ "detailsUrl": "http://spdx.org/licenses/Font-exception-2.0.json",
132
+ "referenceNumber": "12",
133
+ "name": "Font exception 2.0",
134
+ "seeAlso": [
135
+ "http://www.gnu.org/licenses/gpl-faq.html#FontException"
136
+ ],
137
+ "licenseExceptionId": "Font-exception-2.0"
138
+ },
139
+ {
140
+ "reference": "./freertos-exception-2.0.html",
141
+ "isDeprecatedLicenseId": false,
142
+ "detailsUrl": "http://spdx.org/licenses/freertos-exception-2.0.json",
143
+ "referenceNumber": "13",
144
+ "name": "FreeRTOS Exception 2.0",
145
+ "seeAlso": [
146
+ "http://www.freertos.org/a00114.html#exception"
147
+ ],
148
+ "licenseExceptionId": "freertos-exception-2.0"
149
+ },
150
+ {
151
+ "reference": "./GCC-exception-2.0.html",
152
+ "isDeprecatedLicenseId": false,
153
+ "detailsUrl": "http://spdx.org/licenses/GCC-exception-2.0.json",
154
+ "referenceNumber": "14",
155
+ "name": "GCC Runtime Library exception 2.0",
156
+ "seeAlso": [
157
+ "https://gcc.gnu.org/git/?p\u003dgcc.git;a\u003dblob;f\u003dgcc/libgcc1.c;h\u003d762f5143fc6eed57b6797c82710f3538aa52b40b;hb\u003dcb143a3ce4fb417c68f5fa2691a1b1b1053dfba9#l10"
158
+ ],
159
+ "licenseExceptionId": "GCC-exception-2.0"
160
+ },
161
+ {
162
+ "reference": "./GCC-exception-3.1.html",
163
+ "isDeprecatedLicenseId": false,
164
+ "detailsUrl": "http://spdx.org/licenses/GCC-exception-3.1.json",
165
+ "referenceNumber": "15",
166
+ "name": "GCC Runtime Library exception 3.1",
167
+ "seeAlso": [
168
+ "http://www.gnu.org/licenses/gcc-exception-3.1.html"
169
+ ],
170
+ "licenseExceptionId": "GCC-exception-3.1"
171
+ },
172
+ {
173
+ "reference": "./gnu-javamail-exception.html",
174
+ "isDeprecatedLicenseId": false,
175
+ "detailsUrl": "http://spdx.org/licenses/gnu-javamail-exception.json",
176
+ "referenceNumber": "16",
177
+ "name": "GNU JavaMail exception",
178
+ "seeAlso": [
179
+ "http://www.gnu.org/software/classpathx/javamail/javamail.html"
180
+ ],
181
+ "licenseExceptionId": "gnu-javamail-exception"
182
+ },
183
+ {
184
+ "reference": "./i2p-gpl-java-exception.html",
185
+ "isDeprecatedLicenseId": false,
186
+ "detailsUrl": "http://spdx.org/licenses/i2p-gpl-java-exception.json",
187
+ "referenceNumber": "17",
188
+ "name": "i2p GPL+Java Exception",
189
+ "seeAlso": [
190
+ "http://geti2p.net/en/get-involved/develop/licenses#java_exception"
191
+ ],
192
+ "licenseExceptionId": "i2p-gpl-java-exception"
193
+ },
194
+ {
195
+ "reference": "./Libtool-exception.html",
196
+ "isDeprecatedLicenseId": false,
197
+ "detailsUrl": "http://spdx.org/licenses/Libtool-exception.json",
198
+ "referenceNumber": "18",
199
+ "name": "Libtool Exception",
200
+ "seeAlso": [
201
+ "http://git.savannah.gnu.org/cgit/libtool.git/tree/m4/libtool.m4"
202
+ ],
203
+ "licenseExceptionId": "Libtool-exception"
204
+ },
205
+ {
206
+ "reference": "./Linux-syscall-note.html",
207
+ "isDeprecatedLicenseId": false,
208
+ "detailsUrl": "http://spdx.org/licenses/Linux-syscall-note.json",
209
+ "referenceNumber": "19",
210
+ "name": "Linux Syscall Note",
211
+ "seeAlso": [
212
+ "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/COPYING"
213
+ ],
214
+ "licenseExceptionId": "Linux-syscall-note"
215
+ },
216
+ {
217
+ "reference": "./LZMA-exception.html",
218
+ "isDeprecatedLicenseId": false,
219
+ "detailsUrl": "http://spdx.org/licenses/LZMA-exception.json",
220
+ "referenceNumber": "20",
221
+ "name": "LZMA exception",
222
+ "seeAlso": [
223
+ "http://nsis.sourceforge.net/Docs/AppendixI.html#I.6"
224
+ ],
225
+ "licenseExceptionId": "LZMA-exception"
226
+ },
227
+ {
228
+ "reference": "./mif-exception.html",
229
+ "isDeprecatedLicenseId": false,
230
+ "detailsUrl": "http://spdx.org/licenses/mif-exception.json",
231
+ "referenceNumber": "21",
232
+ "name": "Macros and Inline Functions Exception",
233
+ "seeAlso": [
234
+ "http://www.scs.stanford.edu/histar/src/lib/cppsup/exception",
235
+ "http://dev.bertos.org/doxygen/ https://www.threadingbuildingblocks.org/licensing"
236
+ ],
237
+ "licenseExceptionId": "mif-exception"
238
+ },
239
+ {
240
+ "reference": "./Nokia-Qt-exception-1.1.html",
241
+ "isDeprecatedLicenseId": false,
242
+ "detailsUrl": "http://spdx.org/licenses/Nokia-Qt-exception-1.1.json",
243
+ "referenceNumber": "22",
244
+ "name": "Nokia Qt LGPL exception 1.1",
245
+ "seeAlso": [
246
+ "https://www.keepassx.org/dev/projects/keepassx/repository/revisions/b8dfb9cc4d5133e0f09cd7533d15a4f1c19a40f2/entry/LICENSE.NOKIA-LGPL-EXCEPTION"
247
+ ],
248
+ "licenseExceptionId": "Nokia-Qt-exception-1.1"
249
+ },
250
+ {
251
+ "reference": "./OCCT-exception-1.0.html",
252
+ "isDeprecatedLicenseId": false,
253
+ "detailsUrl": "http://spdx.org/licenses/OCCT-exception-1.0.json",
254
+ "referenceNumber": "23",
255
+ "name": "Open CASCADE Exception 1.0",
256
+ "seeAlso": [
257
+ "http://www.opencascade.com/content/licensing"
258
+ ],
259
+ "licenseExceptionId": "OCCT-exception-1.0"
260
+ },
261
+ {
262
+ "reference": "./openvpn-openssl-exception.html",
263
+ "isDeprecatedLicenseId": false,
264
+ "detailsUrl": "http://spdx.org/licenses/openvpn-openssl-exception.json",
265
+ "referenceNumber": "24",
266
+ "name": "OpenVPN OpenSSL Exception",
267
+ "seeAlso": [
268
+ "http://openvpn.net/index.php/license.html"
269
+ ],
270
+ "licenseExceptionId": "openvpn-openssl-exception"
271
+ },
272
+ {
273
+ "reference": "./Qwt-exception-1.0.html",
274
+ "isDeprecatedLicenseId": false,
275
+ "detailsUrl": "http://spdx.org/licenses/Qwt-exception-1.0.json",
276
+ "referenceNumber": "25",
277
+ "name": "Qwt exception 1.0",
278
+ "seeAlso": [
279
+ "http://qwt.sourceforge.net/qwtlicense.html"
280
+ ],
281
+ "licenseExceptionId": "Qwt-exception-1.0"
282
+ },
283
+ {
284
+ "reference": "./u-boot-exception-2.0.html",
285
+ "isDeprecatedLicenseId": false,
286
+ "detailsUrl": "http://spdx.org/licenses/u-boot-exception-2.0.json",
287
+ "referenceNumber": "26",
288
+ "name": "U-Boot exception 2.0",
289
+ "seeAlso": [
290
+ "http://git.denx.de/?p\u003du-boot.git;a\u003dblob;f\u003dLicenses/Exceptions"
291
+ ],
292
+ "licenseExceptionId": "u-boot-exception-2.0"
293
+ },
294
+ {
295
+ "reference": "./WxWindows-exception-3.1.html",
296
+ "isDeprecatedLicenseId": false,
297
+ "detailsUrl": "http://spdx.org/licenses/WxWindows-exception-3.1.json",
298
+ "referenceNumber": "27",
299
+ "name": "WxWindows Library Exception 3.1",
300
+ "seeAlso": [
301
+ "http://www.opensource.org/licenses/WXwindows"
302
+ ],
303
+ "licenseExceptionId": "WxWindows-exception-3.1"
304
+ }
305
+ ]
306
+ }