license_finder 0.9.5.1-java → 1.0.0.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +9 -0
- data/CHANGELOG.rdoc +9 -0
- data/MIT.LICENSE +20 -0
- data/db/migrate/201401302113_re_reassociate_license.rb +23 -0
- data/features/gradle_dependencies.feature +9 -0
- data/features/maven_dependencies.feature +9 -0
- data/features/step_definitions/gradle_steps.rb +8 -0
- data/features/step_definitions/maven_steps.rb +8 -0
- data/features/step_definitions/node_steps.rb +1 -1
- data/features/step_definitions/set_license_steps.rb +0 -1
- data/features/step_definitions/shared_steps.rb +26 -13
- data/lib/license_finder.rb +6 -1
- data/lib/license_finder/cli.rb +13 -9
- data/lib/license_finder/configuration.rb +113 -72
- data/lib/license_finder/dependency_manager.rb +12 -7
- data/lib/license_finder/license.rb +39 -65
- data/lib/license_finder/license/any_matcher.rb +13 -0
- data/lib/license_finder/license/definitions.rb +106 -0
- data/lib/license_finder/license/header_matcher.rb +10 -0
- data/lib/license_finder/license/matcher.rb +17 -0
- data/lib/license_finder/license/template.rb +16 -0
- data/lib/license_finder/license/text.rb +19 -0
- data/lib/license_finder/license_url.rb +1 -4
- data/lib/license_finder/package.rb +18 -2
- data/lib/license_finder/package_managers/bower_package.rb +3 -17
- data/lib/license_finder/package_managers/bundler_package.rb +2 -2
- data/lib/license_finder/package_managers/gradle.rb +29 -0
- data/lib/license_finder/package_managers/gradle_package.rb +41 -0
- data/lib/license_finder/package_managers/maven.rb +31 -0
- data/lib/license_finder/package_managers/maven_package.rb +46 -0
- data/lib/license_finder/package_managers/npm_package.rb +2 -16
- data/lib/license_finder/package_managers/pip_package.rb +7 -7
- data/lib/license_finder/package_saver.rb +1 -1
- data/lib/license_finder/possible_license_file.rb +1 -5
- data/lib/license_finder/possible_license_files.rb +4 -2
- data/lib/license_finder/reports/dependency_report.rb +5 -1
- data/lib/license_finder/reports/detailed_text_report.rb +0 -1
- data/lib/license_finder/reports/formatted_report.rb +21 -0
- data/lib/license_finder/reports/html_report.rb +1 -21
- data/lib/license_finder/reports/markdown_report.rb +1 -21
- data/lib/license_finder/reports/reporter.rb +8 -7
- data/lib/license_finder/reports/text_report.rb +0 -2
- data/lib/license_finder/tables.rb +1 -1
- data/lib/license_finder/tables/dependency.rb +12 -12
- data/lib/license_finder/yml_to_sql.rb +4 -4
- data/license_finder.gemspec +3 -2
- data/readme.md +10 -1
- data/release/publish.sh +10 -7
- data/spec/fixtures/build.gradle +24 -0
- data/spec/fixtures/pom.xml +19 -0
- data/spec/lib/license_finder/cli_spec.rb +13 -3
- data/spec/lib/license_finder/configuration_spec.rb +121 -74
- data/spec/lib/license_finder/dependency_manager_spec.rb +34 -16
- data/spec/lib/license_finder/license/{new_bsd_spec.rb → definitions_spec.rb} +93 -7
- data/spec/lib/license_finder/license_spec.rb +72 -26
- data/spec/lib/license_finder/license_url_spec.rb +10 -14
- data/spec/lib/license_finder/package_managers/bower_package_spec.rb +17 -5
- data/spec/lib/license_finder/package_managers/bundler_package_spec.rb +2 -2
- data/spec/lib/license_finder/package_managers/gradle_package_spec.rb +66 -0
- data/spec/lib/license_finder/package_managers/gradle_spec.rb +89 -0
- data/spec/lib/license_finder/package_managers/maven_package_spec.rb +72 -0
- data/spec/lib/license_finder/package_managers/maven_spec.rb +115 -0
- data/spec/lib/license_finder/package_managers/npm_package_spec.rb +17 -3
- data/spec/lib/license_finder/package_managers/pip_package_spec.rb +27 -5
- data/spec/lib/license_finder/possible_license_file_spec.rb +2 -2
- data/spec/lib/license_finder/{detailed_text_report_spec.rb → reports/detailed_text_report_spec.rb} +0 -0
- data/spec/lib/license_finder/{html_report_spec.rb → reports/html_report_spec.rb} +0 -0
- data/spec/lib/license_finder/{markdown_report_spec.rb → reports/markdown_report_spec.rb} +0 -0
- data/spec/lib/license_finder/reports/reporter_spec.rb +33 -0
- data/spec/lib/license_finder/{text_report_spec.rb → reports/text_report_spec.rb} +0 -0
- data/spec/lib/license_finder/tables/dependency_spec.rb +1 -2
- data/spec/lib/license_finder/tables/license_alias_spec.rb +1 -2
- data/spec/lib/license_finder/yml_to_sql_spec.rb +10 -11
- data/spec/lib/license_finder_spec.rb +5 -71
- metadata +64 -53
- data/features/rails_rake.feature +0 -9
- data/features/step_definitions/rails_rake_steps.rb +0 -12
- data/lib/license_finder/license/apache2.rb +0 -8
- data/lib/license_finder/license/bsd.rb +0 -4
- data/lib/license_finder/license/gplv2.rb +0 -4
- data/lib/license_finder/license/isc.rb +0 -3
- data/lib/license_finder/license/lgpl.rb +0 -4
- data/lib/license_finder/license/mit.rb +0 -23
- data/lib/license_finder/license/new_bsd.rb +0 -27
- data/lib/license_finder/license/python.rb +0 -8
- data/lib/license_finder/license/ruby.rb +0 -11
- data/lib/license_finder/license/simplified_bsd.rb +0 -8
- data/lib/license_finder/railtie.rb +0 -7
- data/lib/tasks/license_finder.rake +0 -7
- data/spec/lib/license_finder/license/apache_spec.rb +0 -7
- data/spec/lib/license_finder/license/bsd_spec.rb +0 -41
- data/spec/lib/license_finder/license/gplv2_spec.rb +0 -7
- data/spec/lib/license_finder/license/isc_spec.rb +0 -7
- data/spec/lib/license_finder/license/lgpl_spec.rb +0 -7
- data/spec/lib/license_finder/license/mit_spec.rb +0 -33
- data/spec/lib/license_finder/license/python_spec.rb +0 -7
- data/spec/lib/license_finder/license/ruby_spec.rb +0 -19
- data/spec/lib/license_finder/license/simplified_bsd_spec.rb +0 -7
- data/spec/lib/license_finder/reporter_spec.rb +0 -46
- data/spec/support/license_examples.rb +0 -30
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: license_finder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jacob Maine
|
@@ -16,7 +16,7 @@ authors:
|
|
16
16
|
autorequire:
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
|
-
date: 2014-
|
19
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: bundler
|
@@ -61,7 +61,7 @@ dependencies:
|
|
61
61
|
prerelease: false
|
62
62
|
type: :runtime
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
|
-
name:
|
64
|
+
name: httparty
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '>='
|
@@ -75,7 +75,7 @@ dependencies:
|
|
75
75
|
prerelease: false
|
76
76
|
type: :runtime
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
|
-
name:
|
78
|
+
name: xml-simple
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - '>='
|
@@ -200,6 +200,20 @@ dependencies:
|
|
200
200
|
version: '1.13'
|
201
201
|
prerelease: false
|
202
202
|
type: :development
|
203
|
+
- !ruby/object:Gem::Dependency
|
204
|
+
name: rake
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - '>='
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0'
|
210
|
+
requirement: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - '>='
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '0'
|
215
|
+
prerelease: false
|
216
|
+
type: :development
|
203
217
|
description: |2
|
204
218
|
Do you know the licenses of all your application's dependencies? What open source software licenses will your business accept?
|
205
219
|
|
@@ -219,6 +233,7 @@ files:
|
|
219
233
|
- CHANGELOG.rdoc
|
220
234
|
- Gemfile
|
221
235
|
- LICENSE
|
236
|
+
- MIT.LICENSE
|
222
237
|
- Rakefile
|
223
238
|
- bin/license_finder
|
224
239
|
- db/migrate/201303290935_create_dependencies.rb
|
@@ -238,25 +253,28 @@ files:
|
|
238
253
|
- db/migrate/201311192002_add_manually_approved_to_dependencies.rb
|
239
254
|
- db/migrate/201311192003_reassociate_manual_approval.rb
|
240
255
|
- db/migrate/201311192010_drop_approvals.rb
|
256
|
+
- db/migrate/201401302113_re_reassociate_license.rb
|
241
257
|
- features/approve_dependencies.feature
|
242
258
|
- features/cli.feature
|
259
|
+
- features/gradle_dependencies.feature
|
243
260
|
- features/html_report.feature
|
244
261
|
- features/ignore_bundle_groups.feature
|
245
262
|
- features/manually_managed_dependencies.feature
|
263
|
+
- features/maven_dependencies.feature
|
246
264
|
- features/node_dependencies.feature
|
247
265
|
- features/project_name.feature
|
248
266
|
- features/python_dependencies.feature
|
249
|
-
- features/rails_rake.feature
|
250
267
|
- features/set_license.feature
|
251
268
|
- features/step_definitions/approve_dependencies_steps.rb
|
252
269
|
- features/step_definitions/cli_steps.rb
|
270
|
+
- features/step_definitions/gradle_steps.rb
|
253
271
|
- features/step_definitions/html_report_steps.rb
|
254
272
|
- features/step_definitions/ignore_bundle_groups_steps.rb
|
255
273
|
- features/step_definitions/manually_managed_steps.rb
|
274
|
+
- features/step_definitions/maven_steps.rb
|
256
275
|
- features/step_definitions/node_steps.rb
|
257
276
|
- features/step_definitions/project_name_steps.rb
|
258
277
|
- features/step_definitions/python_steps.rb
|
259
|
-
- features/step_definitions/rails_rake_steps.rb
|
260
278
|
- features/step_definitions/set_license_steps.rb
|
261
279
|
- features/step_definitions/shared_steps.rb
|
262
280
|
- features/step_definitions/text_report_steps.rb
|
@@ -281,22 +299,22 @@ files:
|
|
281
299
|
- lib/license_finder/configuration.rb
|
282
300
|
- lib/license_finder/dependency_manager.rb
|
283
301
|
- lib/license_finder/license.rb
|
284
|
-
- lib/license_finder/license/
|
285
|
-
- lib/license_finder/license/
|
286
|
-
- lib/license_finder/license/
|
287
|
-
- lib/license_finder/license/
|
288
|
-
- lib/license_finder/license/
|
289
|
-
- lib/license_finder/license/
|
290
|
-
- lib/license_finder/license/new_bsd.rb
|
291
|
-
- lib/license_finder/license/python.rb
|
292
|
-
- lib/license_finder/license/ruby.rb
|
293
|
-
- lib/license_finder/license/simplified_bsd.rb
|
302
|
+
- lib/license_finder/license/any_matcher.rb
|
303
|
+
- lib/license_finder/license/definitions.rb
|
304
|
+
- lib/license_finder/license/header_matcher.rb
|
305
|
+
- lib/license_finder/license/matcher.rb
|
306
|
+
- lib/license_finder/license/template.rb
|
307
|
+
- lib/license_finder/license/text.rb
|
294
308
|
- lib/license_finder/license_url.rb
|
295
309
|
- lib/license_finder/package.rb
|
296
310
|
- lib/license_finder/package_managers/bower.rb
|
297
311
|
- lib/license_finder/package_managers/bower_package.rb
|
298
312
|
- lib/license_finder/package_managers/bundler.rb
|
299
313
|
- lib/license_finder/package_managers/bundler_package.rb
|
314
|
+
- lib/license_finder/package_managers/gradle.rb
|
315
|
+
- lib/license_finder/package_managers/gradle_package.rb
|
316
|
+
- lib/license_finder/package_managers/maven.rb
|
317
|
+
- lib/license_finder/package_managers/maven_package.rb
|
300
318
|
- lib/license_finder/package_managers/npm.rb
|
301
319
|
- lib/license_finder/package_managers/npm_package.rb
|
302
320
|
- lib/license_finder/package_managers/pip.rb
|
@@ -305,9 +323,9 @@ files:
|
|
305
323
|
- lib/license_finder/platform.rb
|
306
324
|
- lib/license_finder/possible_license_file.rb
|
307
325
|
- lib/license_finder/possible_license_files.rb
|
308
|
-
- lib/license_finder/railtie.rb
|
309
326
|
- lib/license_finder/reports/dependency_report.rb
|
310
327
|
- lib/license_finder/reports/detailed_text_report.rb
|
328
|
+
- lib/license_finder/reports/formatted_report.rb
|
311
329
|
- lib/license_finder/reports/html_report.rb
|
312
330
|
- lib/license_finder/reports/markdown_report.rb
|
313
331
|
- lib/license_finder/reports/reporter.rb
|
@@ -317,7 +335,6 @@ files:
|
|
317
335
|
- lib/license_finder/tables/dependency.rb
|
318
336
|
- lib/license_finder/tables/license_alias.rb
|
319
337
|
- lib/license_finder/yml_to_sql.rb
|
320
|
-
- lib/tasks/license_finder.rake
|
321
338
|
- lib/templates/html_report.erb
|
322
339
|
- lib/templates/markdown_report.erb
|
323
340
|
- lib/templates/text_report.erb
|
@@ -332,6 +349,7 @@ files:
|
|
332
349
|
- spec/fixtures/MIT-LICENSE
|
333
350
|
- spec/fixtures/MIT-LICENSE-with-varied-disclaimer
|
334
351
|
- spec/fixtures/README-with-MIT-LICENSE
|
352
|
+
- spec/fixtures/build.gradle
|
335
353
|
- spec/fixtures/license_directory/COPYING
|
336
354
|
- spec/fixtures/license_directory/LICENSE/BSD-2-Clause.txt
|
337
355
|
- spec/fixtures/license_directory/LICENSE/GPL-2.0.txt
|
@@ -347,6 +365,7 @@ files:
|
|
347
365
|
- spec/fixtures/nested_gem/vendor/LICENSE
|
348
366
|
- spec/fixtures/nested_readme/vendor/README
|
349
367
|
- spec/fixtures/other_licensed_gem/LICENSE
|
368
|
+
- spec/fixtures/pom.xml
|
350
369
|
- spec/fixtures/readme/Project ReadMe
|
351
370
|
- spec/fixtures/readme/README
|
352
371
|
- spec/fixtures/readme/Readme.markdown
|
@@ -354,25 +373,17 @@ files:
|
|
354
373
|
- spec/lib/license_finder/cli_spec.rb
|
355
374
|
- spec/lib/license_finder/configuration_spec.rb
|
356
375
|
- spec/lib/license_finder/dependency_manager_spec.rb
|
357
|
-
- spec/lib/license_finder/
|
358
|
-
- spec/lib/license_finder/html_report_spec.rb
|
359
|
-
- spec/lib/license_finder/license/apache_spec.rb
|
360
|
-
- spec/lib/license_finder/license/bsd_spec.rb
|
361
|
-
- spec/lib/license_finder/license/gplv2_spec.rb
|
362
|
-
- spec/lib/license_finder/license/isc_spec.rb
|
363
|
-
- spec/lib/license_finder/license/lgpl_spec.rb
|
364
|
-
- spec/lib/license_finder/license/mit_spec.rb
|
365
|
-
- spec/lib/license_finder/license/new_bsd_spec.rb
|
366
|
-
- spec/lib/license_finder/license/python_spec.rb
|
367
|
-
- spec/lib/license_finder/license/ruby_spec.rb
|
368
|
-
- spec/lib/license_finder/license/simplified_bsd_spec.rb
|
376
|
+
- spec/lib/license_finder/license/definitions_spec.rb
|
369
377
|
- spec/lib/license_finder/license_spec.rb
|
370
378
|
- spec/lib/license_finder/license_url_spec.rb
|
371
|
-
- spec/lib/license_finder/markdown_report_spec.rb
|
372
379
|
- spec/lib/license_finder/package_managers/bower_package_spec.rb
|
373
380
|
- spec/lib/license_finder/package_managers/bower_spec.rb
|
374
381
|
- spec/lib/license_finder/package_managers/bundler_package_spec.rb
|
375
382
|
- spec/lib/license_finder/package_managers/bundler_spec.rb
|
383
|
+
- spec/lib/license_finder/package_managers/gradle_package_spec.rb
|
384
|
+
- spec/lib/license_finder/package_managers/gradle_spec.rb
|
385
|
+
- spec/lib/license_finder/package_managers/maven_package_spec.rb
|
386
|
+
- spec/lib/license_finder/package_managers/maven_spec.rb
|
376
387
|
- spec/lib/license_finder/package_managers/npm_package_spec.rb
|
377
388
|
- spec/lib/license_finder/package_managers/npm_spec.rb
|
378
389
|
- spec/lib/license_finder/package_managers/pip_package_spec.rb
|
@@ -380,14 +391,16 @@ files:
|
|
380
391
|
- spec/lib/license_finder/package_saver_spec.rb
|
381
392
|
- spec/lib/license_finder/possible_license_file_spec.rb
|
382
393
|
- spec/lib/license_finder/possible_license_files_spec.rb
|
383
|
-
- spec/lib/license_finder/
|
394
|
+
- spec/lib/license_finder/reports/detailed_text_report_spec.rb
|
395
|
+
- spec/lib/license_finder/reports/html_report_spec.rb
|
396
|
+
- spec/lib/license_finder/reports/markdown_report_spec.rb
|
397
|
+
- spec/lib/license_finder/reports/reporter_spec.rb
|
398
|
+
- spec/lib/license_finder/reports/text_report_spec.rb
|
384
399
|
- spec/lib/license_finder/tables/dependency_spec.rb
|
385
400
|
- spec/lib/license_finder/tables/license_alias_spec.rb
|
386
|
-
- spec/lib/license_finder/text_report_spec.rb
|
387
401
|
- spec/lib/license_finder/yml_to_sql_spec.rb
|
388
402
|
- spec/lib/license_finder_spec.rb
|
389
403
|
- spec/spec_helper.rb
|
390
|
-
- spec/support/license_examples.rb
|
391
404
|
- spec/support/silence_stdout.rb
|
392
405
|
homepage: https://github.com/pivotal/LicenseFinder
|
393
406
|
licenses:
|
@@ -409,30 +422,32 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
409
422
|
version: '0'
|
410
423
|
requirements: []
|
411
424
|
rubyforge_project:
|
412
|
-
rubygems_version: 2.2.
|
425
|
+
rubygems_version: 2.2.2
|
413
426
|
signing_key:
|
414
427
|
specification_version: 4
|
415
428
|
summary: Audit the OSS licenses of your application's dependencies.
|
416
429
|
test_files:
|
417
430
|
- features/approve_dependencies.feature
|
418
431
|
- features/cli.feature
|
432
|
+
- features/gradle_dependencies.feature
|
419
433
|
- features/html_report.feature
|
420
434
|
- features/ignore_bundle_groups.feature
|
421
435
|
- features/manually_managed_dependencies.feature
|
436
|
+
- features/maven_dependencies.feature
|
422
437
|
- features/node_dependencies.feature
|
423
438
|
- features/project_name.feature
|
424
439
|
- features/python_dependencies.feature
|
425
|
-
- features/rails_rake.feature
|
426
440
|
- features/set_license.feature
|
427
441
|
- features/step_definitions/approve_dependencies_steps.rb
|
428
442
|
- features/step_definitions/cli_steps.rb
|
443
|
+
- features/step_definitions/gradle_steps.rb
|
429
444
|
- features/step_definitions/html_report_steps.rb
|
430
445
|
- features/step_definitions/ignore_bundle_groups_steps.rb
|
431
446
|
- features/step_definitions/manually_managed_steps.rb
|
447
|
+
- features/step_definitions/maven_steps.rb
|
432
448
|
- features/step_definitions/node_steps.rb
|
433
449
|
- features/step_definitions/project_name_steps.rb
|
434
450
|
- features/step_definitions/python_steps.rb
|
435
|
-
- features/step_definitions/rails_rake_steps.rb
|
436
451
|
- features/step_definitions/set_license_steps.rb
|
437
452
|
- features/step_definitions/shared_steps.rb
|
438
453
|
- features/step_definitions/text_report_steps.rb
|
@@ -445,6 +460,7 @@ test_files:
|
|
445
460
|
- spec/fixtures/MIT-LICENSE
|
446
461
|
- spec/fixtures/MIT-LICENSE-with-varied-disclaimer
|
447
462
|
- spec/fixtures/README-with-MIT-LICENSE
|
463
|
+
- spec/fixtures/build.gradle
|
448
464
|
- spec/fixtures/license_directory/COPYING
|
449
465
|
- spec/fixtures/license_directory/LICENSE/BSD-2-Clause.txt
|
450
466
|
- spec/fixtures/license_directory/LICENSE/GPL-2.0.txt
|
@@ -460,6 +476,7 @@ test_files:
|
|
460
476
|
- spec/fixtures/nested_gem/vendor/LICENSE
|
461
477
|
- spec/fixtures/nested_readme/vendor/README
|
462
478
|
- spec/fixtures/other_licensed_gem/LICENSE
|
479
|
+
- spec/fixtures/pom.xml
|
463
480
|
- spec/fixtures/readme/Project ReadMe
|
464
481
|
- spec/fixtures/readme/README
|
465
482
|
- spec/fixtures/readme/Readme.markdown
|
@@ -467,25 +484,17 @@ test_files:
|
|
467
484
|
- spec/lib/license_finder/cli_spec.rb
|
468
485
|
- spec/lib/license_finder/configuration_spec.rb
|
469
486
|
- spec/lib/license_finder/dependency_manager_spec.rb
|
470
|
-
- spec/lib/license_finder/
|
471
|
-
- spec/lib/license_finder/html_report_spec.rb
|
472
|
-
- spec/lib/license_finder/license/apache_spec.rb
|
473
|
-
- spec/lib/license_finder/license/bsd_spec.rb
|
474
|
-
- spec/lib/license_finder/license/gplv2_spec.rb
|
475
|
-
- spec/lib/license_finder/license/isc_spec.rb
|
476
|
-
- spec/lib/license_finder/license/lgpl_spec.rb
|
477
|
-
- spec/lib/license_finder/license/mit_spec.rb
|
478
|
-
- spec/lib/license_finder/license/new_bsd_spec.rb
|
479
|
-
- spec/lib/license_finder/license/python_spec.rb
|
480
|
-
- spec/lib/license_finder/license/ruby_spec.rb
|
481
|
-
- spec/lib/license_finder/license/simplified_bsd_spec.rb
|
487
|
+
- spec/lib/license_finder/license/definitions_spec.rb
|
482
488
|
- spec/lib/license_finder/license_spec.rb
|
483
489
|
- spec/lib/license_finder/license_url_spec.rb
|
484
|
-
- spec/lib/license_finder/markdown_report_spec.rb
|
485
490
|
- spec/lib/license_finder/package_managers/bower_package_spec.rb
|
486
491
|
- spec/lib/license_finder/package_managers/bower_spec.rb
|
487
492
|
- spec/lib/license_finder/package_managers/bundler_package_spec.rb
|
488
493
|
- spec/lib/license_finder/package_managers/bundler_spec.rb
|
494
|
+
- spec/lib/license_finder/package_managers/gradle_package_spec.rb
|
495
|
+
- spec/lib/license_finder/package_managers/gradle_spec.rb
|
496
|
+
- spec/lib/license_finder/package_managers/maven_package_spec.rb
|
497
|
+
- spec/lib/license_finder/package_managers/maven_spec.rb
|
489
498
|
- spec/lib/license_finder/package_managers/npm_package_spec.rb
|
490
499
|
- spec/lib/license_finder/package_managers/npm_spec.rb
|
491
500
|
- spec/lib/license_finder/package_managers/pip_package_spec.rb
|
@@ -493,12 +502,14 @@ test_files:
|
|
493
502
|
- spec/lib/license_finder/package_saver_spec.rb
|
494
503
|
- spec/lib/license_finder/possible_license_file_spec.rb
|
495
504
|
- spec/lib/license_finder/possible_license_files_spec.rb
|
496
|
-
- spec/lib/license_finder/
|
505
|
+
- spec/lib/license_finder/reports/detailed_text_report_spec.rb
|
506
|
+
- spec/lib/license_finder/reports/html_report_spec.rb
|
507
|
+
- spec/lib/license_finder/reports/markdown_report_spec.rb
|
508
|
+
- spec/lib/license_finder/reports/reporter_spec.rb
|
509
|
+
- spec/lib/license_finder/reports/text_report_spec.rb
|
497
510
|
- spec/lib/license_finder/tables/dependency_spec.rb
|
498
511
|
- spec/lib/license_finder/tables/license_alias_spec.rb
|
499
|
-
- spec/lib/license_finder/text_report_spec.rb
|
500
512
|
- spec/lib/license_finder/yml_to_sql_spec.rb
|
501
513
|
- spec/lib/license_finder_spec.rb
|
502
514
|
- spec/spec_helper.rb
|
503
|
-
- spec/support/license_examples.rb
|
504
515
|
- spec/support/silence_stdout.rb
|
data/features/rails_rake.feature
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
Feature: The rake task is automatically made available in Rails project
|
2
|
-
So that I do not have to modify the Rails rakefile
|
3
|
-
As an application developer
|
4
|
-
I want the license_finder rake task automatically loaded for me in a rails project
|
5
|
-
|
6
|
-
Scenario: The application is a Rails app #THIS FEATURE SHOULD BE REMOVED FOR 1.0.0 release
|
7
|
-
Given I have a rails app with license finder
|
8
|
-
When I run rake license_finder
|
9
|
-
Then I should see a normal output
|
@@ -1,12 +0,0 @@
|
|
1
|
-
Given /^I have a rails app(?:lication)? with license finder$/ do
|
2
|
-
@user = ::DSL::User.new
|
3
|
-
@user.create_rails_app
|
4
|
-
end
|
5
|
-
|
6
|
-
When(/^I run rake license_finder$/) do
|
7
|
-
@output = @user.execute_command "rake license_finder --quiet"
|
8
|
-
end
|
9
|
-
|
10
|
-
Then(/^I should see a normal output$/) do
|
11
|
-
@output.should include "Dependencies that need approval:"
|
12
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
class LicenseFinder::License::Apache2 < LicenseFinder::License::Base
|
2
|
-
self.alternative_names = ["Apache 2.0", "Apache2", "Apache-2.0", "Apache Software License", "Apache License 2.0", "Apache License Version 2.0", "Apache Public License 2.0"]
|
3
|
-
self.license_url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
|
4
|
-
|
5
|
-
def self.pretty_name
|
6
|
-
'Apache 2.0'
|
7
|
-
end
|
8
|
-
end
|
@@ -1,4 +0,0 @@
|
|
1
|
-
class LicenseFinder::License::BSD < LicenseFinder::License::Base
|
2
|
-
self.alternative_names = ["BSD4", "bsd-old", "4-clause BSD", "BSD-4-Clause", "BSD License"]
|
3
|
-
self.license_url = "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29"
|
4
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
class LicenseFinder::License::MIT < LicenseFinder::License::Base
|
2
|
-
self.license_url = "http://opensource.org/licenses/mit-license"
|
3
|
-
self.alternative_names = ["Expat", "MIT license", "MIT License"]
|
4
|
-
|
5
|
-
HEADER_REGEX = /The MIT Licen[sc]e/
|
6
|
-
ONE_LINER_REGEX = /is released under the MIT licen[sc]e/
|
7
|
-
URL_REGEX = %r{MIT Licen[sc]e.*http://(?:www.)?opensource.org/licenses/mit-license}
|
8
|
-
|
9
|
-
def matches?
|
10
|
-
super || matches_url? || matches_header?
|
11
|
-
end
|
12
|
-
|
13
|
-
private
|
14
|
-
|
15
|
-
def matches_url?
|
16
|
-
!!(text =~ URL_REGEX)
|
17
|
-
end
|
18
|
-
|
19
|
-
def matches_header?
|
20
|
-
header = text.split("\n").first
|
21
|
-
header && ((header.strip =~ HEADER_REGEX) || !!(text =~ ONE_LINER_REGEX))
|
22
|
-
end
|
23
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
class LicenseFinder::License::NewBSD < LicenseFinder::License::Base
|
2
|
-
self.license_url = "http://opensource.org/licenses/BSD-3-Clause"
|
3
|
-
self.alternative_names = ["Modified BSD", "BSD3", "BSD-3", "3-clause BSD", "BSD-3-Clause"]
|
4
|
-
|
5
|
-
def self.pretty_name
|
6
|
-
'New BSD'
|
7
|
-
end
|
8
|
-
|
9
|
-
def matches?
|
10
|
-
super || matches_alternate?
|
11
|
-
end
|
12
|
-
|
13
|
-
def matches_alternate?
|
14
|
-
!!(text =~ alternate_license_regex)
|
15
|
-
end
|
16
|
-
|
17
|
-
def alternate_license_regex
|
18
|
-
/#{Regexp.escape(alternate_license_text).gsub(/<[^<>]+>/, '(.*)')}/
|
19
|
-
end
|
20
|
-
|
21
|
-
def alternate_license_text
|
22
|
-
self.class.license_text.gsub(
|
23
|
-
"Neither the name of <organization> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.",
|
24
|
-
"The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission."
|
25
|
-
)
|
26
|
-
end
|
27
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
class LicenseFinder::License::Python < LicenseFinder::License::Base
|
2
|
-
self.alternative_names = ["PSF", "Python Software Foundation License"]
|
3
|
-
self.license_url = "http://hg.python.org/cpython/raw-file/89ce323357db/LICENSE"
|
4
|
-
|
5
|
-
def self.pretty_name
|
6
|
-
'Python Software Foundation License'
|
7
|
-
end
|
8
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
class LicenseFinder::License::SimplifiedBSD < LicenseFinder::License::Base
|
2
|
-
self.license_url = "http://opensource.org/licenses/bsd-license"
|
3
|
-
self.alternative_names = ["Simplified BSD", "FreeBSD", "2-clause BSD", "BSD-2-Clause"]
|
4
|
-
|
5
|
-
def self.pretty_name
|
6
|
-
'Simplified BSD'
|
7
|
-
end
|
8
|
-
end
|