license_finder 1.2 → 2.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/CHANGELOG.rdoc +27 -0
- data/CONTRIBUTING.md +38 -0
- data/README.md +139 -159
- data/Rakefile +17 -13
- data/features/features/cli_spec.rb +43 -0
- data/features/features/configure/add_dependencies_spec.rb +37 -0
- data/features/features/configure/approve_dependencies_spec.rb +30 -0
- data/features/features/configure/assign_licenses_spec.rb +20 -0
- data/features/features/configure/ignore_dependencies_spec.rb +35 -0
- data/features/features/configure/ignore_groups_spec.rb +31 -0
- data/features/features/configure/name_project_spec.rb +32 -0
- data/features/features/configure/whitelist_licenses_spec.rb +40 -0
- data/features/features/package_managers/bower_spec.rb +14 -0
- data/features/features/package_managers/cocoapods_spec.rb +14 -0
- data/features/features/package_managers/gradle_spec.rb +14 -0
- data/features/features/package_managers/maven_spec.rb +14 -0
- data/features/features/package_managers/npm_spec.rb +14 -0
- data/features/features/package_managers/pip_spec.rb +14 -0
- data/features/features/report/csv_spec.rb +17 -0
- data/features/features/report/html_spec.rb +50 -0
- data/{spec → features}/fixtures/Podfile +0 -0
- data/{spec → features}/fixtures/build.gradle +0 -0
- data/{spec → features}/fixtures/pom.xml +0 -0
- data/features/support/testing_dsl.rb +295 -0
- data/lib/license_finder.rb +16 -50
- data/lib/license_finder/cli.rb +13 -253
- data/lib/license_finder/cli/approvals.rb +26 -0
- data/lib/license_finder/cli/base.rb +20 -0
- data/lib/license_finder/cli/dependencies.rb +39 -0
- data/lib/license_finder/cli/ignored_dependencies.rb +30 -0
- data/lib/license_finder/cli/ignored_groups.rb +30 -0
- data/lib/license_finder/cli/licenses.rb +24 -0
- data/lib/license_finder/cli/main.rb +82 -0
- data/lib/license_finder/cli/makes_decisions.rb +48 -0
- data/lib/license_finder/cli/patched_thor.rb +34 -0
- data/lib/license_finder/cli/project_name.rb +31 -0
- data/lib/license_finder/cli/whitelist.rb +32 -0
- data/lib/license_finder/configuration.rb +14 -145
- data/lib/license_finder/decision_applier.rb +46 -0
- data/lib/license_finder/decisions.rb +174 -0
- data/lib/license_finder/license.rb +13 -32
- data/lib/license_finder/license/definitions.rb +15 -13
- data/lib/license_finder/license/template.rb +1 -1
- data/lib/{data/licenses → license_finder/license/templates}/Apache2.txt +0 -0
- data/lib/{data/licenses → license_finder/license/templates}/BSD.txt +0 -0
- data/lib/{data/licenses → license_finder/license/templates}/GPLv2.txt +0 -0
- data/lib/{data/licenses → license_finder/license/templates}/ISC.txt +0 -0
- data/lib/{data/licenses → license_finder/license/templates}/LGPL.txt +0 -0
- data/lib/{data/licenses → license_finder/license/templates}/MIT.txt +0 -0
- data/lib/{data/licenses → license_finder/license/templates}/NewBSD.txt +0 -0
- data/lib/{data/licenses → license_finder/license/templates}/Python.txt +0 -0
- data/lib/{data/licenses → license_finder/license/templates}/Ruby.txt +0 -0
- data/lib/{data/licenses → license_finder/license/templates}/SimplifiedBSD.txt +0 -0
- data/lib/license_finder/package.rb +77 -7
- data/lib/license_finder/package_manager.rb +43 -0
- data/lib/license_finder/package_managers/bower.rb +1 -1
- data/lib/license_finder/package_managers/bower_package.rb +23 -44
- data/lib/license_finder/package_managers/bundler.rb +4 -7
- data/lib/license_finder/package_managers/bundler_package.rb +14 -31
- data/lib/license_finder/package_managers/cocoa_pods.rb +1 -1
- data/lib/license_finder/package_managers/cocoa_pods_package.rb +2 -10
- data/lib/license_finder/package_managers/gradle.rb +6 -2
- data/lib/license_finder/package_managers/gradle_package.rb +6 -30
- data/lib/license_finder/package_managers/manual_package.rb +25 -0
- data/lib/license_finder/package_managers/maven_package.rb +8 -37
- data/lib/license_finder/package_managers/npm.rb +16 -4
- data/lib/license_finder/package_managers/npm_package.rb +12 -43
- data/lib/license_finder/package_managers/pip_package.rb +17 -37
- data/lib/license_finder/platform.rb +0 -16
- data/lib/license_finder/possible_license_file.rb +9 -14
- data/lib/license_finder/possible_license_files.rb +1 -5
- data/lib/license_finder/report.rb +26 -0
- data/lib/license_finder/reports/csv_report.rb +58 -0
- data/lib/license_finder/reports/erb_report.rb +61 -0
- data/lib/license_finder/reports/html_report.rb +10 -1
- data/lib/license_finder/reports/markdown_report.rb +7 -1
- data/lib/license_finder/reports/templates/bootstrap.css +9 -0
- data/lib/license_finder/reports/templates/html_report.erb +105 -0
- data/lib/{templates → license_finder/reports/templates}/markdown_report.erb +7 -7
- data/lib/license_finder/reports/text_report.rb +5 -3
- data/lib/license_finder/version.rb +3 -0
- data/license_finder.gemspec +2 -6
- data/release/instructions.md +8 -0
- data/spec/feature_helper.rb +11 -0
- data/spec/fixtures/config/license_finder.yml +3 -0
- data/spec/fixtures/{nested_readme/vendor/README → license_directory/LICENSE/Apache.txt} +0 -0
- data/spec/lib/license_finder/cli/approvals_spec.rb +63 -0
- data/spec/lib/license_finder/cli/dependencies_spec.rb +59 -0
- data/spec/lib/license_finder/cli/ignored_dependencies_spec.rb +47 -0
- data/spec/lib/license_finder/cli/ignored_groups_spec.rb +40 -0
- data/spec/lib/license_finder/cli/licenses_spec.rb +60 -0
- data/spec/lib/license_finder/cli/main_spec.rb +110 -0
- data/spec/lib/license_finder/cli/project_name_spec.rb +40 -0
- data/spec/lib/license_finder/cli/whitelist_spec.rb +58 -0
- data/spec/lib/license_finder/configuration_spec.rb +46 -191
- data/spec/lib/license_finder/decision_applier_spec.rb +65 -0
- data/spec/lib/license_finder/decisions_spec.rb +347 -0
- data/spec/lib/license_finder/license/definitions_spec.rb +1 -7
- data/spec/lib/license_finder/license_spec.rb +2 -30
- data/spec/lib/license_finder/package_manager_spec.rb +22 -0
- data/spec/lib/license_finder/package_managers/bower_package_spec.rb +33 -66
- data/spec/lib/license_finder/package_managers/bundler_package_spec.rb +7 -71
- data/spec/lib/license_finder/package_managers/cocoa_pods_package_spec.rb +8 -11
- data/spec/lib/license_finder/package_managers/gradle_package_spec.rb +28 -32
- data/spec/lib/license_finder/package_managers/gradle_spec.rb +18 -23
- data/spec/lib/license_finder/package_managers/maven_package_spec.rb +20 -43
- data/spec/lib/license_finder/package_managers/npm_package_spec.rb +22 -73
- data/spec/lib/license_finder/package_managers/npm_spec.rb +18 -21
- data/spec/lib/license_finder/package_managers/pip_package_spec.rb +24 -63
- data/spec/lib/license_finder/package_spec.rb +121 -0
- data/spec/lib/license_finder/possible_license_file_spec.rb +2 -3
- data/spec/lib/license_finder/possible_license_files_spec.rb +18 -22
- data/spec/lib/license_finder/reports/csv_report_spec.rb +26 -0
- data/spec/lib/license_finder/reports/html_report_spec.rb +39 -22
- data/spec/lib/license_finder/reports/markdown_report_spec.rb +8 -16
- data/spec/lib/license_finder/reports/text_report_spec.rb +21 -12
- data/spec/spec_helper.rb +1 -4
- data/spec/support/shared_examples_for_package.rb +0 -11
- data/spec/support/shared_examples_for_package_manager.rb +1 -0
- data/spec/support/stdout_helpers.rb +4 -11
- metadata +73 -158
- data/db/migrate/201303290935_create_dependencies.rb +0 -14
- data/db/migrate/201303291155_create_licenses.rb +0 -13
- data/db/migrate/201303291402_create_approvals.rb +0 -13
- data/db/migrate/201303291456_create_ancestries.rb +0 -9
- data/db/migrate/201303291519_create_bundler_groups.rb +0 -13
- data/db/migrate/201303291720_move_manual_from_approvals_to_licenses.rb +0 -11
- data/db/migrate/201303291753_allow_null_license_names.rb +0 -7
- data/db/migrate/201304011027_allow_null_dependency_version.rb +0 -7
- data/db/migrate/201304020947_change_table_name_licenses_to_license_aliases.rb +0 -5
- data/db/migrate/201304181524_add_manual_to_dependencies.rb +0 -7
- data/db/migrate/201307250917_add_license_manual_to_dependencies.rb +0 -7
- data/db/migrate/201307251004_data_fix_manual_licenses.rb +0 -15
- data/db/migrate/201307251107_reassociate_license.rb +0 -23
- data/db/migrate/201307251340_remove_manual_from_license_aliases.rb +0 -7
- data/db/migrate/201311192002_add_manually_approved_to_dependencies.rb +0 -7
- data/db/migrate/201311192003_reassociate_manual_approval.rb +0 -13
- data/db/migrate/201311192010_drop_approvals.rb +0 -5
- data/db/migrate/201401302113_re_reassociate_license.rb +0 -23
- data/db/migrate/201403181732_rename_manual_fields.rb +0 -10
- data/db/migrate/201403190028_add_manual_approvals.rb +0 -22
- data/db/migrate/201403191419_add_timestamps_to_manual_approvals.rb +0 -15
- data/db/migrate/201403191645_remove_license_aliases.rb +0 -23
- data/db/migrate/201410031451_rename_dependency_license_name.rb +0 -6
- data/features/cli.feature +0 -37
- data/features/cocoapods_dependencies.feature +0 -10
- data/features/configure_bundler_groups.feature +0 -23
- data/features/configure_ignore_dependencies.feature +0 -16
- data/features/configure_project_name.feature +0 -10
- data/features/configure_whitelist.feature +0 -27
- data/features/gradle_dependencies.feature +0 -9
- data/features/manually_added.feature +0 -19
- data/features/manually_approved.feature +0 -10
- data/features/manually_assigned_license.feature +0 -16
- data/features/maven_dependencies.feature +0 -9
- data/features/multiple_licenses.feature +0 -9
- data/features/node_dependencies.feature +0 -9
- data/features/python_dependencies.feature +0 -9
- data/features/report_csv.feature +0 -15
- data/features/report_html.feature +0 -24
- data/features/step_definitions/cli_steps.rb +0 -51
- data/features/step_definitions/cocoapod_steps.rb +0 -8
- data/features/step_definitions/configure_bundler_groups_steps.rb +0 -30
- data/features/step_definitions/configure_ignore_dependencies.rb +0 -35
- data/features/step_definitions/configure_project_name_steps.rb +0 -3
- data/features/step_definitions/configure_whitelist_steps.rb +0 -45
- data/features/step_definitions/gradle_steps.rb +0 -8
- data/features/step_definitions/manually_added_steps.rb +0 -28
- data/features/step_definitions/manually_approved_steps.rb +0 -24
- data/features/step_definitions/manually_assigned_license_steps.rb +0 -34
- data/features/step_definitions/maven_steps.rb +0 -8
- data/features/step_definitions/multiple_licenses_steps.rb +0 -14
- data/features/step_definitions/node_steps.rb +0 -8
- data/features/step_definitions/python_steps.rb +0 -8
- data/features/step_definitions/report_csv_steps.rb +0 -20
- data/features/step_definitions/report_html_steps.rb +0 -60
- data/features/step_definitions/shared_steps.rb +0 -307
- data/lib/data/license_finder.example.yml +0 -12
- data/lib/license_finder/dependency_manager.rb +0 -92
- data/lib/license_finder/package_saver.rb +0 -44
- data/lib/license_finder/reports/dependency_report.rb +0 -34
- data/lib/license_finder/reports/detailed_text_report.rb +0 -19
- data/lib/license_finder/reports/formatted_report.rb +0 -40
- data/lib/license_finder/reports/reporter.rb +0 -27
- data/lib/license_finder/tables.rb +0 -9
- data/lib/license_finder/tables/bundler_group.rb +0 -7
- data/lib/license_finder/tables/dependency.rb +0 -113
- data/lib/license_finder/tables/manual_approval.rb +0 -13
- data/lib/license_finder/yml_to_sql.rb +0 -117
- data/lib/templates/html_report.erb +0 -117
- data/lib/templates/text_report.erb +0 -3
- data/release/gem_version.rb +0 -3
- data/release/manual_instructions.md +0 -29
- data/release/publish.sh +0 -32
- data/spec/fixtures/APACHE-2-LICENSE +0 -202
- data/spec/fixtures/GPLv2 +0 -339
- data/spec/fixtures/ISC-LICENSE +0 -10
- data/spec/fixtures/MIT-LICENSE +0 -22
- data/spec/fixtures/MIT-LICENSE-with-varied-disclaimer +0 -22
- data/spec/fixtures/README-with-MIT-LICENSE +0 -222
- data/spec/fixtures/license_directory/LICENSE/BSD-2-Clause.txt +0 -25
- data/spec/fixtures/license_directory/LICENSE/GPL-2.0.txt +0 -339
- data/spec/fixtures/license_directory/LICENSE/LICENSE +0 -191
- data/spec/fixtures/license_directory/LICENSE/MIT.txt +0 -21
- data/spec/fixtures/license_directory/LICENSE/RUBY.txt +0 -60
- data/spec/fixtures/mit_licensed_gem/LICENSE +0 -22
- data/spec/fixtures/other_licensed_gem/LICENSE +0 -3
- data/spec/fixtures/readme/Project ReadMe b/data/spec/fixtures/readme/Project → ReadMe +0 -0
- data/spec/fixtures/readme/README +0 -0
- data/spec/fixtures/readme/Readme.markdown +0 -0
- data/spec/lib/license_finder/cli_spec.rb +0 -298
- data/spec/lib/license_finder/dependency_manager_spec.rb +0 -198
- data/spec/lib/license_finder/package_saver_spec.rb +0 -82
- data/spec/lib/license_finder/reports/detailed_text_report_spec.rb +0 -33
- data/spec/lib/license_finder/reports/reporter_spec.rb +0 -33
- data/spec/lib/license_finder/tables/dependency_spec.rb +0 -196
- data/spec/lib/license_finder/yml_to_sql_spec.rb +0 -123
- data/spec/lib/license_finder_spec.rb +0 -16
@@ -1,16 +1,5 @@
|
|
1
1
|
module LicenseFinder
|
2
2
|
shared_examples "a Package" do
|
3
|
-
context "the interface required by PackageSave" do
|
4
|
-
it { expect { subject.name }.to_not raise_error }
|
5
|
-
it { expect { subject.version }.to_not raise_error }
|
6
|
-
it { expect { subject.summary }.to_not raise_error }
|
7
|
-
it { expect { subject.description }.to_not raise_error }
|
8
|
-
it { expect { subject.homepage }.to_not raise_error }
|
9
|
-
it { expect { subject.groups }.to_not raise_error }
|
10
|
-
it { expect { subject.children }.to_not raise_error }
|
11
|
-
it { expect { subject.licenses }.to_not raise_error }
|
12
|
-
end
|
13
|
-
|
14
3
|
context "logging" do
|
15
4
|
let!(:logger) { Logger::Quiet.new }
|
16
5
|
before { allow(Logger::Default).to receive(:new) { logger } }
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module LicenseFinder
|
2
2
|
shared_examples "a PackageManager" do
|
3
3
|
it { expect(described_class.ancestors).to include PackageManager }
|
4
|
+
it { expect(PackageManager.package_managers).to include described_class }
|
4
5
|
|
5
6
|
context "logging" do
|
6
7
|
it "logs when it checks for active-ness" do
|
@@ -1,23 +1,16 @@
|
|
1
1
|
module StdoutHelpers
|
2
|
-
def silence_stdout
|
3
|
-
orig_stdout = $stdout
|
4
|
-
$stdout = File.open("/dev/null", "w")
|
5
|
-
yield
|
6
|
-
ensure
|
7
|
-
$stdout = orig_stdout
|
8
|
-
end
|
9
|
-
|
10
2
|
def capture_stdout
|
11
3
|
orig_stdout = $stdout
|
12
|
-
|
4
|
+
$stdout = StringIO.new
|
13
5
|
|
14
6
|
yield
|
15
7
|
|
16
|
-
$stdout.
|
17
|
-
stdout_reader.read
|
8
|
+
$stdout.string
|
18
9
|
ensure
|
19
10
|
$stdout = orig_stdout
|
20
11
|
end
|
12
|
+
|
13
|
+
alias silence_stdout capture_stdout
|
21
14
|
end
|
22
15
|
|
23
16
|
RSpec.configure do |c|
|
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:
|
4
|
+
version: 2.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Maine
|
@@ -20,7 +20,7 @@ authors:
|
|
20
20
|
autorequire:
|
21
21
|
bindir: bin
|
22
22
|
cert_chain: []
|
23
|
-
date:
|
23
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
@@ -36,20 +36,6 @@ dependencies:
|
|
36
36
|
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '0'
|
39
|
-
- !ruby/object:Gem::Dependency
|
40
|
-
name: sequel
|
41
|
-
requirement: !ruby/object:Gem::Requirement
|
42
|
-
requirements:
|
43
|
-
- - ">="
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
|
-
type: :runtime
|
47
|
-
prerelease: false
|
48
|
-
version_requirements: !ruby/object:Gem::Requirement
|
49
|
-
requirements:
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '0'
|
53
39
|
- !ruby/object:Gem::Dependency
|
54
40
|
name: thor
|
55
41
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,20 +78,6 @@ dependencies:
|
|
92
78
|
- - ">="
|
93
79
|
- !ruby/object:Gem::Version
|
94
80
|
version: '0'
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: sqlite3
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
98
|
-
requirements:
|
99
|
-
- - ">="
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
type: :runtime
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - ">="
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '0'
|
109
81
|
- !ruby/object:Gem::Dependency
|
110
82
|
name: rake
|
111
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,20 +120,6 @@ dependencies:
|
|
148
120
|
- - ">="
|
149
121
|
- !ruby/object:Gem::Version
|
150
122
|
version: '0'
|
151
|
-
- !ruby/object:Gem::Dependency
|
152
|
-
name: cucumber
|
153
|
-
requirement: !ruby/object:Gem::Requirement
|
154
|
-
requirements:
|
155
|
-
- - ">="
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '0'
|
158
|
-
type: :development
|
159
|
-
prerelease: false
|
160
|
-
version_requirements: !ruby/object:Gem::Requirement
|
161
|
-
requirements:
|
162
|
-
- - ">="
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: '0'
|
165
123
|
- !ruby/object:Gem::Dependency
|
166
124
|
name: pry
|
167
125
|
requirement: !ruby/object:Gem::Requirement
|
@@ -236,6 +194,7 @@ files:
|
|
236
194
|
- ".rspec"
|
237
195
|
- ".travis.yml"
|
238
196
|
- CHANGELOG.rdoc
|
197
|
+
- CONTRIBUTING.md
|
239
198
|
- Gemfile
|
240
199
|
- LICENSE
|
241
200
|
- README.md
|
@@ -243,77 +202,42 @@ files:
|
|
243
202
|
- TODO.md
|
244
203
|
- bin/license_finder
|
245
204
|
- bin/license_finder_pip.py
|
246
|
-
-
|
247
|
-
-
|
248
|
-
-
|
249
|
-
-
|
250
|
-
-
|
251
|
-
-
|
252
|
-
-
|
253
|
-
-
|
254
|
-
-
|
255
|
-
-
|
256
|
-
-
|
257
|
-
-
|
258
|
-
-
|
259
|
-
-
|
260
|
-
-
|
261
|
-
-
|
262
|
-
-
|
263
|
-
-
|
264
|
-
-
|
265
|
-
-
|
266
|
-
- db/migrate/201403191419_add_timestamps_to_manual_approvals.rb
|
267
|
-
- db/migrate/201403191645_remove_license_aliases.rb
|
268
|
-
- db/migrate/201410031451_rename_dependency_license_name.rb
|
269
|
-
- features/cli.feature
|
270
|
-
- features/cocoapods_dependencies.feature
|
271
|
-
- features/configure_bundler_groups.feature
|
272
|
-
- features/configure_ignore_dependencies.feature
|
273
|
-
- features/configure_project_name.feature
|
274
|
-
- features/configure_whitelist.feature
|
275
|
-
- features/gradle_dependencies.feature
|
276
|
-
- features/manually_added.feature
|
277
|
-
- features/manually_approved.feature
|
278
|
-
- features/manually_assigned_license.feature
|
279
|
-
- features/maven_dependencies.feature
|
280
|
-
- features/multiple_licenses.feature
|
281
|
-
- features/node_dependencies.feature
|
282
|
-
- features/python_dependencies.feature
|
283
|
-
- features/report_csv.feature
|
284
|
-
- features/report_html.feature
|
285
|
-
- features/step_definitions/cli_steps.rb
|
286
|
-
- features/step_definitions/cocoapod_steps.rb
|
287
|
-
- features/step_definitions/configure_bundler_groups_steps.rb
|
288
|
-
- features/step_definitions/configure_ignore_dependencies.rb
|
289
|
-
- features/step_definitions/configure_project_name_steps.rb
|
290
|
-
- features/step_definitions/configure_whitelist_steps.rb
|
291
|
-
- features/step_definitions/gradle_steps.rb
|
292
|
-
- features/step_definitions/manually_added_steps.rb
|
293
|
-
- features/step_definitions/manually_approved_steps.rb
|
294
|
-
- features/step_definitions/manually_assigned_license_steps.rb
|
295
|
-
- features/step_definitions/maven_steps.rb
|
296
|
-
- features/step_definitions/multiple_licenses_steps.rb
|
297
|
-
- features/step_definitions/node_steps.rb
|
298
|
-
- features/step_definitions/python_steps.rb
|
299
|
-
- features/step_definitions/report_csv_steps.rb
|
300
|
-
- features/step_definitions/report_html_steps.rb
|
301
|
-
- features/step_definitions/shared_steps.rb
|
302
|
-
- lib/data/license_finder.example.yml
|
303
|
-
- lib/data/licenses/Apache2.txt
|
304
|
-
- lib/data/licenses/BSD.txt
|
305
|
-
- lib/data/licenses/GPLv2.txt
|
306
|
-
- lib/data/licenses/ISC.txt
|
307
|
-
- lib/data/licenses/LGPL.txt
|
308
|
-
- lib/data/licenses/MIT.txt
|
309
|
-
- lib/data/licenses/NewBSD.txt
|
310
|
-
- lib/data/licenses/Python.txt
|
311
|
-
- lib/data/licenses/Ruby.txt
|
312
|
-
- lib/data/licenses/SimplifiedBSD.txt
|
205
|
+
- features/features/cli_spec.rb
|
206
|
+
- features/features/configure/add_dependencies_spec.rb
|
207
|
+
- features/features/configure/approve_dependencies_spec.rb
|
208
|
+
- features/features/configure/assign_licenses_spec.rb
|
209
|
+
- features/features/configure/ignore_dependencies_spec.rb
|
210
|
+
- features/features/configure/ignore_groups_spec.rb
|
211
|
+
- features/features/configure/name_project_spec.rb
|
212
|
+
- features/features/configure/whitelist_licenses_spec.rb
|
213
|
+
- features/features/package_managers/bower_spec.rb
|
214
|
+
- features/features/package_managers/cocoapods_spec.rb
|
215
|
+
- features/features/package_managers/gradle_spec.rb
|
216
|
+
- features/features/package_managers/maven_spec.rb
|
217
|
+
- features/features/package_managers/npm_spec.rb
|
218
|
+
- features/features/package_managers/pip_spec.rb
|
219
|
+
- features/features/report/csv_spec.rb
|
220
|
+
- features/features/report/html_spec.rb
|
221
|
+
- features/fixtures/Podfile
|
222
|
+
- features/fixtures/build.gradle
|
223
|
+
- features/fixtures/pom.xml
|
224
|
+
- features/support/testing_dsl.rb
|
313
225
|
- lib/license_finder.rb
|
314
226
|
- lib/license_finder/cli.rb
|
227
|
+
- lib/license_finder/cli/approvals.rb
|
228
|
+
- lib/license_finder/cli/base.rb
|
229
|
+
- lib/license_finder/cli/dependencies.rb
|
230
|
+
- lib/license_finder/cli/ignored_dependencies.rb
|
231
|
+
- lib/license_finder/cli/ignored_groups.rb
|
232
|
+
- lib/license_finder/cli/licenses.rb
|
233
|
+
- lib/license_finder/cli/main.rb
|
234
|
+
- lib/license_finder/cli/makes_decisions.rb
|
235
|
+
- lib/license_finder/cli/patched_thor.rb
|
236
|
+
- lib/license_finder/cli/project_name.rb
|
237
|
+
- lib/license_finder/cli/whitelist.rb
|
315
238
|
- lib/license_finder/configuration.rb
|
316
|
-
- lib/license_finder/
|
239
|
+
- lib/license_finder/decision_applier.rb
|
240
|
+
- lib/license_finder/decisions.rb
|
317
241
|
- lib/license_finder/license.rb
|
318
242
|
- lib/license_finder/license/any_matcher.rb
|
319
243
|
- lib/license_finder/license/definitions.rb
|
@@ -321,6 +245,16 @@ files:
|
|
321
245
|
- lib/license_finder/license/matcher.rb
|
322
246
|
- lib/license_finder/license/none_matcher.rb
|
323
247
|
- lib/license_finder/license/template.rb
|
248
|
+
- lib/license_finder/license/templates/Apache2.txt
|
249
|
+
- lib/license_finder/license/templates/BSD.txt
|
250
|
+
- lib/license_finder/license/templates/GPLv2.txt
|
251
|
+
- lib/license_finder/license/templates/ISC.txt
|
252
|
+
- lib/license_finder/license/templates/LGPL.txt
|
253
|
+
- lib/license_finder/license/templates/MIT.txt
|
254
|
+
- lib/license_finder/license/templates/NewBSD.txt
|
255
|
+
- lib/license_finder/license/templates/Python.txt
|
256
|
+
- lib/license_finder/license/templates/Ruby.txt
|
257
|
+
- lib/license_finder/license/templates/SimplifiedBSD.txt
|
324
258
|
- lib/license_finder/license/text.rb
|
325
259
|
- lib/license_finder/logger.rb
|
326
260
|
- lib/license_finder/package.rb
|
@@ -333,68 +267,53 @@ files:
|
|
333
267
|
- lib/license_finder/package_managers/cocoa_pods_package.rb
|
334
268
|
- lib/license_finder/package_managers/gradle.rb
|
335
269
|
- lib/license_finder/package_managers/gradle_package.rb
|
270
|
+
- lib/license_finder/package_managers/manual_package.rb
|
336
271
|
- lib/license_finder/package_managers/maven.rb
|
337
272
|
- lib/license_finder/package_managers/maven_package.rb
|
338
273
|
- lib/license_finder/package_managers/npm.rb
|
339
274
|
- lib/license_finder/package_managers/npm_package.rb
|
340
275
|
- lib/license_finder/package_managers/pip.rb
|
341
276
|
- lib/license_finder/package_managers/pip_package.rb
|
342
|
-
- lib/license_finder/package_saver.rb
|
343
277
|
- lib/license_finder/platform.rb
|
344
278
|
- lib/license_finder/possible_license_file.rb
|
345
279
|
- lib/license_finder/possible_license_files.rb
|
346
|
-
- lib/license_finder/
|
347
|
-
- lib/license_finder/reports/
|
348
|
-
- lib/license_finder/reports/
|
280
|
+
- lib/license_finder/report.rb
|
281
|
+
- lib/license_finder/reports/csv_report.rb
|
282
|
+
- lib/license_finder/reports/erb_report.rb
|
349
283
|
- lib/license_finder/reports/html_report.rb
|
350
284
|
- lib/license_finder/reports/markdown_report.rb
|
351
|
-
- lib/license_finder/reports/
|
285
|
+
- lib/license_finder/reports/templates/bootstrap.css
|
286
|
+
- lib/license_finder/reports/templates/html_report.erb
|
287
|
+
- lib/license_finder/reports/templates/markdown_report.erb
|
352
288
|
- lib/license_finder/reports/text_report.rb
|
353
|
-
- lib/license_finder/
|
354
|
-
- lib/license_finder/tables/bundler_group.rb
|
355
|
-
- lib/license_finder/tables/dependency.rb
|
356
|
-
- lib/license_finder/tables/manual_approval.rb
|
357
|
-
- lib/license_finder/yml_to_sql.rb
|
358
|
-
- lib/templates/html_report.erb
|
359
|
-
- lib/templates/markdown_report.erb
|
360
|
-
- lib/templates/text_report.erb
|
289
|
+
- lib/license_finder/version.rb
|
361
290
|
- license_finder.gemspec
|
362
|
-
- release/
|
363
|
-
-
|
364
|
-
-
|
365
|
-
- spec/fixtures/APACHE-2-LICENSE
|
366
|
-
- spec/fixtures/GPLv2
|
367
|
-
- spec/fixtures/ISC-LICENSE
|
368
|
-
- spec/fixtures/MIT-LICENSE
|
369
|
-
- spec/fixtures/MIT-LICENSE-with-varied-disclaimer
|
370
|
-
- spec/fixtures/Podfile
|
371
|
-
- spec/fixtures/README-with-MIT-LICENSE
|
372
|
-
- spec/fixtures/build.gradle
|
291
|
+
- release/instructions.md
|
292
|
+
- spec/feature_helper.rb
|
293
|
+
- spec/fixtures/config/license_finder.yml
|
373
294
|
- spec/fixtures/license_directory/COPYING
|
374
|
-
- spec/fixtures/license_directory/LICENSE/
|
375
|
-
- spec/fixtures/license_directory/LICENSE/GPL-2.0.txt
|
376
|
-
- spec/fixtures/license_directory/LICENSE/LICENSE
|
377
|
-
- spec/fixtures/license_directory/LICENSE/MIT.txt
|
378
|
-
- spec/fixtures/license_directory/LICENSE/RUBY.txt
|
295
|
+
- spec/fixtures/license_directory/LICENSE/Apache.txt
|
379
296
|
- spec/fixtures/license_names/COPYING.txt
|
380
297
|
- spec/fixtures/license_names/LICENSE
|
381
298
|
- spec/fixtures/license_names/Licence.rdoc
|
382
299
|
- spec/fixtures/license_names/Mit-License
|
383
300
|
- spec/fixtures/license_names/README.rdoc
|
384
|
-
- spec/fixtures/mit_licensed_gem/LICENSE
|
385
301
|
- spec/fixtures/nested_gem/vendor/LICENSE
|
386
|
-
- spec/fixtures/nested_readme/vendor/README
|
387
|
-
- spec/fixtures/other_licensed_gem/LICENSE
|
388
|
-
- spec/fixtures/pom.xml
|
389
|
-
- spec/fixtures/readme/Project ReadMe
|
390
|
-
- spec/fixtures/readme/README
|
391
|
-
- spec/fixtures/readme/Readme.markdown
|
392
302
|
- spec/fixtures/utf8_gem/README
|
393
|
-
- spec/lib/license_finder/
|
303
|
+
- spec/lib/license_finder/cli/approvals_spec.rb
|
304
|
+
- spec/lib/license_finder/cli/dependencies_spec.rb
|
305
|
+
- spec/lib/license_finder/cli/ignored_dependencies_spec.rb
|
306
|
+
- spec/lib/license_finder/cli/ignored_groups_spec.rb
|
307
|
+
- spec/lib/license_finder/cli/licenses_spec.rb
|
308
|
+
- spec/lib/license_finder/cli/main_spec.rb
|
309
|
+
- spec/lib/license_finder/cli/project_name_spec.rb
|
310
|
+
- spec/lib/license_finder/cli/whitelist_spec.rb
|
394
311
|
- spec/lib/license_finder/configuration_spec.rb
|
395
|
-
- spec/lib/license_finder/
|
312
|
+
- spec/lib/license_finder/decision_applier_spec.rb
|
313
|
+
- spec/lib/license_finder/decisions_spec.rb
|
396
314
|
- spec/lib/license_finder/license/definitions_spec.rb
|
397
315
|
- spec/lib/license_finder/license_spec.rb
|
316
|
+
- spec/lib/license_finder/package_manager_spec.rb
|
398
317
|
- spec/lib/license_finder/package_managers/bower_package_spec.rb
|
399
318
|
- spec/lib/license_finder/package_managers/bower_spec.rb
|
400
319
|
- spec/lib/license_finder/package_managers/bundler_package_spec.rb
|
@@ -409,17 +328,13 @@ files:
|
|
409
328
|
- spec/lib/license_finder/package_managers/npm_spec.rb
|
410
329
|
- spec/lib/license_finder/package_managers/pip_package_spec.rb
|
411
330
|
- spec/lib/license_finder/package_managers/pip_spec.rb
|
412
|
-
- spec/lib/license_finder/
|
331
|
+
- spec/lib/license_finder/package_spec.rb
|
413
332
|
- spec/lib/license_finder/possible_license_file_spec.rb
|
414
333
|
- spec/lib/license_finder/possible_license_files_spec.rb
|
415
|
-
- spec/lib/license_finder/reports/
|
334
|
+
- spec/lib/license_finder/reports/csv_report_spec.rb
|
416
335
|
- spec/lib/license_finder/reports/html_report_spec.rb
|
417
336
|
- spec/lib/license_finder/reports/markdown_report_spec.rb
|
418
|
-
- spec/lib/license_finder/reports/reporter_spec.rb
|
419
337
|
- spec/lib/license_finder/reports/text_report_spec.rb
|
420
|
-
- spec/lib/license_finder/tables/dependency_spec.rb
|
421
|
-
- spec/lib/license_finder/yml_to_sql_spec.rb
|
422
|
-
- spec/lib/license_finder_spec.rb
|
423
338
|
- spec/spec_helper.rb
|
424
339
|
- spec/support/shared_examples_for_package.rb
|
425
340
|
- spec/support/shared_examples_for_package_manager.rb
|
@@ -439,9 +354,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
439
354
|
version: 1.9.3
|
440
355
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
441
356
|
requirements:
|
442
|
-
- - "
|
357
|
+
- - ">"
|
443
358
|
- !ruby/object:Gem::Version
|
444
|
-
version:
|
359
|
+
version: 1.3.1
|
445
360
|
requirements: []
|
446
361
|
rubyforge_project:
|
447
362
|
rubygems_version: 2.2.2
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# sequel -m db/migrate -E sqlite://doc/dependencies.db
|
2
|
-
|
3
|
-
Sequel.migration do
|
4
|
-
change do
|
5
|
-
create_table(:dependencies) do
|
6
|
-
primary_key :id
|
7
|
-
String :name, null: false
|
8
|
-
String :version, null: false
|
9
|
-
String :summary
|
10
|
-
String :description
|
11
|
-
String :homepage
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|