license_finder 1.0.0.0-java → 1.1.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.force-build +0 -0
- data/.travis.yml +8 -7
- data/CHANGELOG.rdoc +29 -1
- data/Rakefile +2 -2
- data/db/migrate/201311192003_reassociate_manual_approval.rb +2 -3
- data/db/migrate/201403181732_rename_manual_fields.rb +10 -0
- data/db/migrate/201403190028_add_manual_approvals.rb +22 -0
- data/db/migrate/201403191419_add_timestamps_to_manual_approvals.rb +15 -0
- data/db/migrate/201403191645_remove_license_aliases.rb +23 -0
- data/features/cli.feature +21 -20
- data/features/cocoapods_dependencies.feature +10 -0
- data/features/configure_bundler_groups.feature +23 -0
- data/features/configure_ignore_dependencies.feature +16 -0
- data/features/{project_name.feature → configure_project_name.feature} +1 -1
- data/features/{whitelist.feature → configure_whitelist.feature} +6 -6
- data/features/manually_added.feature +19 -0
- data/features/{approve_dependencies.feature → manually_approved.feature} +2 -2
- data/features/manually_assigned_license.feature +16 -0
- data/features/{text_report.feature → report_csv.feature} +2 -2
- data/features/{html_report.feature → report_html.feature} +2 -2
- data/features/step_definitions/cli_steps.rb +22 -32
- data/features/step_definitions/cocoapod_steps.rb +8 -0
- data/features/step_definitions/configure_bundler_groups_steps.rb +30 -0
- data/features/step_definitions/configure_ignore_dependencies.rb +35 -0
- data/features/step_definitions/{project_name_steps.rb → configure_project_name_steps.rb} +0 -0
- data/features/step_definitions/configure_whitelist_steps.rb +45 -0
- data/features/step_definitions/gradle_steps.rb +2 -2
- data/features/step_definitions/manually_added_steps.rb +28 -0
- data/features/step_definitions/manually_approved_steps.rb +24 -0
- data/features/step_definitions/manually_assigned_license_steps.rb +34 -0
- data/features/step_definitions/maven_steps.rb +2 -2
- data/features/step_definitions/node_steps.rb +2 -2
- data/features/step_definitions/python_steps.rb +1 -1
- data/features/step_definitions/report_csv_steps.rb +20 -0
- data/features/step_definitions/report_html_steps.rb +60 -0
- data/features/step_definitions/shared_steps.rb +125 -104
- data/{files/license_finder.yml → lib/data/license_finder.example.yml} +3 -0
- data/lib/license_finder.rb +3 -2
- data/lib/license_finder/cli.rb +94 -49
- data/lib/license_finder/configuration.rb +21 -14
- data/lib/license_finder/dependency_manager.rb +27 -19
- data/lib/license_finder/license.rb +33 -19
- data/lib/license_finder/license/definitions.rb +153 -104
- data/lib/license_finder/license/matcher.rb +6 -1
- data/lib/license_finder/license/none_matcher.rb +9 -0
- data/lib/license_finder/license/text.rb +1 -0
- data/lib/license_finder/package.rb +30 -6
- data/lib/license_finder/package_managers/bower.rb +2 -2
- data/lib/license_finder/package_managers/bower_package.rb +2 -2
- data/lib/license_finder/package_managers/bundler.rb +9 -17
- data/lib/license_finder/package_managers/bundler_package.rb +1 -1
- data/lib/license_finder/package_managers/cocoa_pods.rb +35 -0
- data/lib/license_finder/package_managers/cocoa_pods_package.rb +19 -0
- data/lib/license_finder/package_managers/gradle.rb +9 -5
- data/lib/license_finder/package_managers/gradle_package.rb +4 -4
- data/lib/license_finder/package_managers/maven.rb +7 -3
- data/lib/license_finder/package_managers/maven_package.rb +5 -5
- data/lib/license_finder/package_managers/npm.rb +2 -2
- data/lib/license_finder/package_managers/npm_package.rb +2 -2
- data/lib/license_finder/package_managers/pip.rb +2 -2
- data/lib/license_finder/package_managers/pip_package.rb +7 -11
- data/lib/license_finder/package_saver.rb +12 -10
- data/lib/license_finder/possible_license_file.rb +1 -1
- data/lib/license_finder/possible_license_files.rb +11 -15
- data/lib/license_finder/reports/formatted_report.rb +25 -6
- data/lib/license_finder/reports/html_report.rb +2 -1
- data/lib/license_finder/reports/reporter.rb +3 -3
- data/lib/license_finder/tables.rb +6 -4
- data/lib/license_finder/tables/dependency.rb +36 -16
- data/lib/license_finder/tables/manual_approval.rb +13 -0
- data/lib/license_finder/yml_to_sql.rb +12 -9
- data/lib/templates/html_report.erb +68 -74
- data/lib/templates/markdown_report.erb +20 -21
- data/license_finder.gemspec +7 -7
- data/readme.md +76 -79
- data/spec/fixtures/Podfile +3 -0
- data/spec/lib/license_finder/cli_spec.rb +71 -23
- data/spec/lib/license_finder/configuration_spec.rb +61 -21
- data/spec/lib/license_finder/dependency_manager_spec.rb +52 -33
- data/spec/lib/license_finder/license/definitions_spec.rb +30 -14
- data/spec/lib/license_finder/license_spec.rb +55 -12
- data/spec/lib/license_finder/package_managers/bower_package_spec.rb +38 -19
- data/spec/lib/license_finder/package_managers/bower_spec.rb +10 -16
- data/spec/lib/license_finder/package_managers/bundler_package_spec.rb +39 -15
- data/spec/lib/license_finder/package_managers/bundler_spec.rb +10 -22
- data/spec/lib/license_finder/package_managers/cocoa_pods_package_spec.rb +44 -0
- data/spec/lib/license_finder/package_managers/cocoa_pods_spec.rb +79 -0
- data/spec/lib/license_finder/package_managers/gradle_package_spec.rb +4 -5
- data/spec/lib/license_finder/package_managers/gradle_spec.rb +26 -20
- data/spec/lib/license_finder/package_managers/maven_package_spec.rb +4 -5
- data/spec/lib/license_finder/package_managers/maven_spec.rb +16 -19
- data/spec/lib/license_finder/package_managers/npm_package_spec.rb +39 -19
- data/spec/lib/license_finder/package_managers/npm_spec.rb +10 -16
- data/spec/lib/license_finder/package_managers/pip_package_spec.rb +8 -8
- data/spec/lib/license_finder/package_managers/pip_spec.rb +10 -16
- data/spec/lib/license_finder/package_saver_spec.rb +27 -3
- data/spec/lib/license_finder/possible_license_file_spec.rb +25 -23
- data/spec/lib/license_finder/reports/detailed_text_report_spec.rb +6 -8
- data/spec/lib/license_finder/reports/html_report_spec.rb +45 -44
- data/spec/lib/license_finder/reports/markdown_report_spec.rb +8 -9
- data/spec/lib/license_finder/reports/reporter_spec.rb +1 -1
- data/spec/lib/license_finder/reports/text_report_spec.rb +6 -8
- data/spec/lib/license_finder/tables/dependency_spec.rb +57 -41
- data/spec/lib/license_finder/yml_to_sql_spec.rb +94 -92
- data/spec/spec_helper.rb +1 -0
- data/spec/support/stdout_helpers.rb +25 -0
- metadata +86 -69
- data/MIT.LICENSE +0 -20
- data/features/ignore_bundle_groups.feature +0 -23
- data/features/manually_managed_dependencies.feature +0 -19
- data/features/set_license.feature +0 -10
- data/features/step_definitions/approve_dependencies_steps.rb +0 -25
- data/features/step_definitions/html_report_steps.rb +0 -62
- data/features/step_definitions/ignore_bundle_groups_steps.rb +0 -29
- data/features/step_definitions/manually_managed_steps.rb +0 -33
- data/features/step_definitions/set_license_steps.rb +0 -20
- data/features/step_definitions/text_report_steps.rb +0 -19
- data/features/step_definitions/whitelist_steps.rb +0 -45
- data/files/dependency_breakdown.png +0 -0
- data/files/report_breakdown.png +0 -0
- data/lib/license_finder/license_url.rb +0 -9
- data/lib/license_finder/tables/license_alias.rb +0 -22
- data/spec/lib/license_finder/license_url_spec.rb +0 -16
- data/spec/lib/license_finder/tables/license_alias_spec.rb +0 -37
- data/spec/support/silence_stdout.rb +0 -13
@@ -1,121 +1,123 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
3
|
+
module LicenseFinder
|
4
|
+
describe YmlToSql do
|
5
|
+
let(:legacy_attributes) do
|
6
|
+
{
|
7
|
+
'name' => "spec_name",
|
8
|
+
'version' => "2.1.3",
|
9
|
+
'license' => "GPLv2",
|
10
|
+
'license_url' => "www.license_url.org",
|
11
|
+
'approved' => true,
|
12
|
+
'summary' => "some summary",
|
13
|
+
'description' => "some description",
|
14
|
+
'homepage' => 'www.homepage.com',
|
15
|
+
'children' => ["child1_name"],
|
16
|
+
'parents' => ["parent1_name"],
|
17
|
+
'bundler_groups' => [:test],
|
18
|
+
'source' => source,
|
19
|
+
|
20
|
+
'notes' => 'some notes',
|
21
|
+
'license_files' => ['/Users/pivotal/foo/lic1', '/Users/pivotal/bar/lic2'],
|
22
|
+
}
|
23
|
+
end
|
24
24
|
|
25
|
-
|
26
|
-
it "is true if the yml still exists" do
|
27
|
-
yaml_file = double(:yaml_file, :exist? => true)
|
28
|
-
LicenseFinder.config.artifacts.stub(legacy_yaml_file: yaml_file)
|
25
|
+
let(:source) { nil }
|
29
26
|
|
30
|
-
|
31
|
-
|
27
|
+
describe ".needs_conversion?" do
|
28
|
+
it "is true if the yml still exists" do
|
29
|
+
yaml_file = double(:yaml_file, :exist? => true)
|
30
|
+
LicenseFinder.config.artifacts.stub(legacy_yaml_file: yaml_file)
|
32
31
|
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
described_class.needs_conversion?.should be_truthy
|
33
|
+
end
|
34
|
+
|
35
|
+
it "is false otherwise" do
|
36
|
+
yaml_file = double(:yaml_file, :exist? => false)
|
37
|
+
LicenseFinder.config.artifacts.stub(legacy_yaml_file: yaml_file)
|
36
38
|
|
37
|
-
|
39
|
+
described_class.needs_conversion?.should be_falsey
|
40
|
+
end
|
38
41
|
end
|
39
|
-
end
|
40
42
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
describe ".remove_yml" do
|
44
|
+
it "removes the yml file" do
|
45
|
+
yaml_file = double(:yaml_file)
|
46
|
+
LicenseFinder.config.artifacts.stub(legacy_yaml_file: yaml_file)
|
45
47
|
|
46
|
-
|
47
|
-
|
48
|
+
yaml_file.should_receive(:delete)
|
49
|
+
described_class.remove_yml
|
50
|
+
end
|
48
51
|
end
|
49
|
-
end
|
50
52
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
53
|
+
describe '.convert_all' do
|
54
|
+
before do
|
55
|
+
(DB.tables - [:schema_migrations]).each { |table| DB[table].truncate }
|
56
|
+
end
|
55
57
|
|
56
|
-
|
57
|
-
|
58
|
+
describe "when dependency source is set to bundle" do
|
59
|
+
let(:source) { "bundle" }
|
58
60
|
|
59
|
-
|
60
|
-
|
61
|
+
it "sets manual to be false" do
|
62
|
+
described_class.convert_all([legacy_attributes])
|
61
63
|
|
62
|
-
|
63
|
-
|
64
|
+
saved_dep = described_class::Sql::Dependency.first
|
65
|
+
saved_dep.should_not be_added_manually
|
66
|
+
end
|
64
67
|
end
|
65
|
-
end
|
66
68
|
|
67
|
-
|
68
|
-
|
69
|
+
describe "when dependency source is not set to bundle" do
|
70
|
+
let(:source) { "" }
|
69
71
|
|
70
|
-
|
71
|
-
|
72
|
+
it "sets manual to be true" do
|
73
|
+
described_class.convert_all([legacy_attributes])
|
72
74
|
|
73
|
-
|
74
|
-
|
75
|
+
saved_dep = described_class::Sql::Dependency.first
|
76
|
+
saved_dep.should be_added_manually
|
77
|
+
end
|
75
78
|
end
|
76
|
-
end
|
77
79
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
described_class::Sql::Dependency.count.should == 1
|
82
|
-
saved_dep = described_class::Sql::Dependency.first
|
83
|
-
saved_dep.name.should == "spec_name"
|
84
|
-
saved_dep.version.should == "2.1.3"
|
85
|
-
saved_dep.summary.should == "some summary"
|
86
|
-
saved_dep.description.should == "some description"
|
87
|
-
saved_dep.homepage.should == "www.homepage.com"
|
88
|
-
saved_dep.manually_approved.should be_true
|
89
|
-
end
|
80
|
+
it "persists all of the dependency's attributes" do
|
81
|
+
described_class.convert_all([legacy_attributes])
|
90
82
|
|
91
|
-
|
92
|
-
|
83
|
+
described_class::Sql::Dependency.count.should == 1
|
84
|
+
saved_dep = described_class::Sql::Dependency.first
|
85
|
+
saved_dep.name.should == "spec_name"
|
86
|
+
saved_dep.version.should == "2.1.3"
|
87
|
+
saved_dep.summary.should == "some summary"
|
88
|
+
saved_dep.description.should == "some description"
|
89
|
+
saved_dep.homepage.should == "www.homepage.com"
|
90
|
+
saved_dep.manual_approval.should be
|
91
|
+
end
|
93
92
|
|
94
|
-
|
95
|
-
|
96
|
-
saved_dep.license.url.should == "http://www.gnu.org/licenses/gpl-2.0.txt"
|
97
|
-
end
|
93
|
+
it "associates the license to the dependency" do
|
94
|
+
described_class.convert_all([legacy_attributes])
|
98
95
|
|
99
|
-
|
100
|
-
|
96
|
+
saved_dep = described_class::Sql::Dependency.first
|
97
|
+
saved_dep.license_name.should == "GPLv2"
|
98
|
+
end
|
101
99
|
|
102
|
-
|
103
|
-
|
104
|
-
saved_dep.bundler_groups.first.name.should == 'test'
|
105
|
-
end
|
100
|
+
it "associates bundler groups" do
|
101
|
+
described_class.convert_all([legacy_attributes])
|
106
102
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
'license' => 'other'
|
112
|
-
}
|
113
|
-
described_class.convert_all([legacy_attributes, child_attrs])
|
103
|
+
saved_dep = described_class::Sql::Dependency.first
|
104
|
+
saved_dep.bundler_groups.count.should == 1
|
105
|
+
saved_dep.bundler_groups.first.name.should == 'test'
|
106
|
+
end
|
114
107
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
108
|
+
it "associates children" do
|
109
|
+
child_attrs = {
|
110
|
+
'name' => 'child1_name',
|
111
|
+
'version' => '0.0.1',
|
112
|
+
'license' => 'other'
|
113
|
+
}
|
114
|
+
described_class.convert_all([legacy_attributes, child_attrs])
|
115
|
+
|
116
|
+
described_class::Sql::Dependency.count.should == 2
|
117
|
+
saved_dep = described_class::Sql::Dependency.first(name: 'spec_name')
|
118
|
+
saved_dep.children.count.should == 1
|
119
|
+
saved_dep.children.first.name.should == 'child1_name'
|
120
|
+
end
|
119
121
|
end
|
120
122
|
end
|
121
123
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
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
|
+
def capture_stdout
|
11
|
+
orig_stdout = $stdout
|
12
|
+
stdout_reader, $stdout = IO.pipe
|
13
|
+
|
14
|
+
yield
|
15
|
+
|
16
|
+
$stdout.close
|
17
|
+
stdout_reader.read
|
18
|
+
ensure
|
19
|
+
$stdout = orig_stdout
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
RSpec.configure do |c|
|
24
|
+
c.include(StdoutHelpers)
|
25
|
+
end
|
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: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jacob Maine
|
@@ -13,10 +13,13 @@ authors:
|
|
13
13
|
- Trevor John
|
14
14
|
- David Tengdin
|
15
15
|
- William Ramsey
|
16
|
+
- David Dening
|
17
|
+
- Geoff Pleiss
|
18
|
+
- Mike Chinigo
|
16
19
|
autorequire:
|
17
20
|
bindir: bin
|
18
21
|
cert_chain: []
|
19
|
-
date: 2014-
|
22
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
20
23
|
dependencies:
|
21
24
|
- !ruby/object:Gem::Dependency
|
22
25
|
name: bundler
|
@@ -103,7 +106,7 @@ dependencies:
|
|
103
106
|
prerelease: false
|
104
107
|
type: :runtime
|
105
108
|
- !ruby/object:Gem::Dependency
|
106
|
-
name:
|
109
|
+
name: rake
|
107
110
|
version_requirements: !ruby/object:Gem::Requirement
|
108
111
|
requirements:
|
109
112
|
- - '>='
|
@@ -117,7 +120,7 @@ dependencies:
|
|
117
120
|
prerelease: false
|
118
121
|
type: :development
|
119
122
|
- !ruby/object:Gem::Dependency
|
120
|
-
name:
|
123
|
+
name: rspec-its
|
121
124
|
version_requirements: !ruby/object:Gem::Requirement
|
122
125
|
requirements:
|
123
126
|
- - '>='
|
@@ -131,7 +134,7 @@ dependencies:
|
|
131
134
|
prerelease: false
|
132
135
|
type: :development
|
133
136
|
- !ruby/object:Gem::Dependency
|
134
|
-
name:
|
137
|
+
name: xpath
|
135
138
|
version_requirements: !ruby/object:Gem::Requirement
|
136
139
|
requirements:
|
137
140
|
- - '>='
|
@@ -145,7 +148,7 @@ dependencies:
|
|
145
148
|
prerelease: false
|
146
149
|
type: :development
|
147
150
|
- !ruby/object:Gem::Dependency
|
148
|
-
name:
|
151
|
+
name: cucumber
|
149
152
|
version_requirements: !ruby/object:Gem::Requirement
|
150
153
|
requirements:
|
151
154
|
- - '>='
|
@@ -159,81 +162,81 @@ dependencies:
|
|
159
162
|
prerelease: false
|
160
163
|
type: :development
|
161
164
|
- !ruby/object:Gem::Dependency
|
162
|
-
name:
|
165
|
+
name: pry
|
163
166
|
version_requirements: !ruby/object:Gem::Requirement
|
164
167
|
requirements:
|
165
|
-
- -
|
168
|
+
- - '>='
|
166
169
|
- !ruby/object:Gem::Version
|
167
|
-
version:
|
170
|
+
version: '0'
|
168
171
|
requirement: !ruby/object:Gem::Requirement
|
169
172
|
requirements:
|
170
|
-
- -
|
173
|
+
- - '>='
|
171
174
|
- !ruby/object:Gem::Version
|
172
|
-
version:
|
175
|
+
version: '0'
|
173
176
|
prerelease: false
|
174
177
|
type: :development
|
175
178
|
- !ruby/object:Gem::Dependency
|
176
|
-
name:
|
179
|
+
name: rspec
|
177
180
|
version_requirements: !ruby/object:Gem::Requirement
|
178
181
|
requirements:
|
179
182
|
- - ~>
|
180
183
|
- !ruby/object:Gem::Version
|
181
|
-
version: 3
|
184
|
+
version: '3'
|
182
185
|
requirement: !ruby/object:Gem::Requirement
|
183
186
|
requirements:
|
184
187
|
- - ~>
|
185
188
|
- !ruby/object:Gem::Version
|
186
|
-
version: 3
|
189
|
+
version: '3'
|
187
190
|
prerelease: false
|
188
191
|
type: :development
|
189
192
|
- !ruby/object:Gem::Dependency
|
190
|
-
name:
|
193
|
+
name: capybara
|
191
194
|
version_requirements: !ruby/object:Gem::Requirement
|
192
195
|
requirements:
|
193
196
|
- - ~>
|
194
197
|
- !ruby/object:Gem::Version
|
195
|
-
version:
|
198
|
+
version: 2.0.0
|
196
199
|
requirement: !ruby/object:Gem::Requirement
|
197
200
|
requirements:
|
198
201
|
- - ~>
|
199
202
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
203
|
+
version: 2.0.0
|
201
204
|
prerelease: false
|
202
205
|
type: :development
|
203
206
|
- !ruby/object:Gem::Dependency
|
204
|
-
name:
|
207
|
+
name: webmock
|
205
208
|
version_requirements: !ruby/object:Gem::Requirement
|
206
209
|
requirements:
|
207
|
-
- -
|
210
|
+
- - ~>
|
208
211
|
- !ruby/object:Gem::Version
|
209
|
-
version: '
|
212
|
+
version: '1.13'
|
210
213
|
requirement: !ruby/object:Gem::Requirement
|
211
214
|
requirements:
|
212
|
-
- -
|
215
|
+
- - ~>
|
213
216
|
- !ruby/object:Gem::Version
|
214
|
-
version: '
|
217
|
+
version: '1.13'
|
215
218
|
prerelease: false
|
216
219
|
type: :development
|
217
220
|
description: |2
|
218
221
|
Do you know the licenses of all your application's dependencies? What open source software licenses will your business accept?
|
219
222
|
|
220
|
-
LicenseFinder culls your
|
223
|
+
LicenseFinder culls your package managers, detects the licenses of the packages in them, and gives you a report that you can act on. If you already know
|
221
224
|
what licenses your business is comfortable with, you can whitelist them, leaving you with an action report of only those dependencies that have
|
222
225
|
licenses that fall outside of the whitelist.
|
223
226
|
email:
|
224
|
-
-
|
227
|
+
- commoncode@pivotalabs.com
|
225
228
|
executables:
|
226
229
|
- license_finder
|
227
230
|
extensions: []
|
228
231
|
extra_rdoc_files: []
|
229
232
|
files:
|
233
|
+
- .force-build
|
230
234
|
- .gitignore
|
231
235
|
- .rspec
|
232
236
|
- .travis.yml
|
233
237
|
- CHANGELOG.rdoc
|
234
238
|
- Gemfile
|
235
239
|
- LICENSE
|
236
|
-
- MIT.LICENSE
|
237
240
|
- Rakefile
|
238
241
|
- bin/license_finder
|
239
242
|
- db/migrate/201303290935_create_dependencies.rb
|
@@ -254,36 +257,42 @@ files:
|
|
254
257
|
- db/migrate/201311192003_reassociate_manual_approval.rb
|
255
258
|
- db/migrate/201311192010_drop_approvals.rb
|
256
259
|
- db/migrate/201401302113_re_reassociate_license.rb
|
257
|
-
-
|
260
|
+
- db/migrate/201403181732_rename_manual_fields.rb
|
261
|
+
- db/migrate/201403190028_add_manual_approvals.rb
|
262
|
+
- db/migrate/201403191419_add_timestamps_to_manual_approvals.rb
|
263
|
+
- db/migrate/201403191645_remove_license_aliases.rb
|
258
264
|
- features/cli.feature
|
265
|
+
- features/cocoapods_dependencies.feature
|
266
|
+
- features/configure_bundler_groups.feature
|
267
|
+
- features/configure_ignore_dependencies.feature
|
268
|
+
- features/configure_project_name.feature
|
269
|
+
- features/configure_whitelist.feature
|
259
270
|
- features/gradle_dependencies.feature
|
260
|
-
- features/
|
261
|
-
- features/
|
262
|
-
- features/
|
271
|
+
- features/manually_added.feature
|
272
|
+
- features/manually_approved.feature
|
273
|
+
- features/manually_assigned_license.feature
|
263
274
|
- features/maven_dependencies.feature
|
264
275
|
- features/node_dependencies.feature
|
265
|
-
- features/project_name.feature
|
266
276
|
- features/python_dependencies.feature
|
267
|
-
- features/
|
268
|
-
- features/
|
277
|
+
- features/report_csv.feature
|
278
|
+
- features/report_html.feature
|
269
279
|
- features/step_definitions/cli_steps.rb
|
280
|
+
- features/step_definitions/cocoapod_steps.rb
|
281
|
+
- features/step_definitions/configure_bundler_groups_steps.rb
|
282
|
+
- features/step_definitions/configure_ignore_dependencies.rb
|
283
|
+
- features/step_definitions/configure_project_name_steps.rb
|
284
|
+
- features/step_definitions/configure_whitelist_steps.rb
|
270
285
|
- features/step_definitions/gradle_steps.rb
|
271
|
-
- features/step_definitions/
|
272
|
-
- features/step_definitions/
|
273
|
-
- features/step_definitions/
|
286
|
+
- features/step_definitions/manually_added_steps.rb
|
287
|
+
- features/step_definitions/manually_approved_steps.rb
|
288
|
+
- features/step_definitions/manually_assigned_license_steps.rb
|
274
289
|
- features/step_definitions/maven_steps.rb
|
275
290
|
- features/step_definitions/node_steps.rb
|
276
|
-
- features/step_definitions/project_name_steps.rb
|
277
291
|
- features/step_definitions/python_steps.rb
|
278
|
-
- features/step_definitions/
|
292
|
+
- features/step_definitions/report_csv_steps.rb
|
293
|
+
- features/step_definitions/report_html_steps.rb
|
279
294
|
- features/step_definitions/shared_steps.rb
|
280
|
-
-
|
281
|
-
- features/step_definitions/whitelist_steps.rb
|
282
|
-
- features/text_report.feature
|
283
|
-
- features/whitelist.feature
|
284
|
-
- files/dependency_breakdown.png
|
285
|
-
- files/license_finder.yml
|
286
|
-
- files/report_breakdown.png
|
295
|
+
- lib/data/license_finder.example.yml
|
287
296
|
- lib/data/licenses/Apache2.txt
|
288
297
|
- lib/data/licenses/BSD.txt
|
289
298
|
- lib/data/licenses/GPLv2.txt
|
@@ -303,14 +312,16 @@ files:
|
|
303
312
|
- lib/license_finder/license/definitions.rb
|
304
313
|
- lib/license_finder/license/header_matcher.rb
|
305
314
|
- lib/license_finder/license/matcher.rb
|
315
|
+
- lib/license_finder/license/none_matcher.rb
|
306
316
|
- lib/license_finder/license/template.rb
|
307
317
|
- lib/license_finder/license/text.rb
|
308
|
-
- lib/license_finder/license_url.rb
|
309
318
|
- lib/license_finder/package.rb
|
310
319
|
- lib/license_finder/package_managers/bower.rb
|
311
320
|
- lib/license_finder/package_managers/bower_package.rb
|
312
321
|
- lib/license_finder/package_managers/bundler.rb
|
313
322
|
- lib/license_finder/package_managers/bundler_package.rb
|
323
|
+
- lib/license_finder/package_managers/cocoa_pods.rb
|
324
|
+
- lib/license_finder/package_managers/cocoa_pods_package.rb
|
314
325
|
- lib/license_finder/package_managers/gradle.rb
|
315
326
|
- lib/license_finder/package_managers/gradle_package.rb
|
316
327
|
- lib/license_finder/package_managers/maven.rb
|
@@ -333,7 +344,7 @@ files:
|
|
333
344
|
- lib/license_finder/tables.rb
|
334
345
|
- lib/license_finder/tables/bundler_group.rb
|
335
346
|
- lib/license_finder/tables/dependency.rb
|
336
|
-
- lib/license_finder/tables/
|
347
|
+
- lib/license_finder/tables/manual_approval.rb
|
337
348
|
- lib/license_finder/yml_to_sql.rb
|
338
349
|
- lib/templates/html_report.erb
|
339
350
|
- lib/templates/markdown_report.erb
|
@@ -348,6 +359,7 @@ files:
|
|
348
359
|
- spec/fixtures/ISC-LICENSE
|
349
360
|
- spec/fixtures/MIT-LICENSE
|
350
361
|
- spec/fixtures/MIT-LICENSE-with-varied-disclaimer
|
362
|
+
- spec/fixtures/Podfile
|
351
363
|
- spec/fixtures/README-with-MIT-LICENSE
|
352
364
|
- spec/fixtures/build.gradle
|
353
365
|
- spec/fixtures/license_directory/COPYING
|
@@ -375,11 +387,12 @@ files:
|
|
375
387
|
- spec/lib/license_finder/dependency_manager_spec.rb
|
376
388
|
- spec/lib/license_finder/license/definitions_spec.rb
|
377
389
|
- spec/lib/license_finder/license_spec.rb
|
378
|
-
- spec/lib/license_finder/license_url_spec.rb
|
379
390
|
- spec/lib/license_finder/package_managers/bower_package_spec.rb
|
380
391
|
- spec/lib/license_finder/package_managers/bower_spec.rb
|
381
392
|
- spec/lib/license_finder/package_managers/bundler_package_spec.rb
|
382
393
|
- spec/lib/license_finder/package_managers/bundler_spec.rb
|
394
|
+
- spec/lib/license_finder/package_managers/cocoa_pods_package_spec.rb
|
395
|
+
- spec/lib/license_finder/package_managers/cocoa_pods_spec.rb
|
383
396
|
- spec/lib/license_finder/package_managers/gradle_package_spec.rb
|
384
397
|
- spec/lib/license_finder/package_managers/gradle_spec.rb
|
385
398
|
- spec/lib/license_finder/package_managers/maven_package_spec.rb
|
@@ -397,11 +410,10 @@ files:
|
|
397
410
|
- spec/lib/license_finder/reports/reporter_spec.rb
|
398
411
|
- spec/lib/license_finder/reports/text_report_spec.rb
|
399
412
|
- spec/lib/license_finder/tables/dependency_spec.rb
|
400
|
-
- spec/lib/license_finder/tables/license_alias_spec.rb
|
401
413
|
- spec/lib/license_finder/yml_to_sql_spec.rb
|
402
414
|
- spec/lib/license_finder_spec.rb
|
403
415
|
- spec/spec_helper.rb
|
404
|
-
- spec/support/
|
416
|
+
- spec/support/stdout_helpers.rb
|
405
417
|
homepage: https://github.com/pivotal/LicenseFinder
|
406
418
|
licenses:
|
407
419
|
- MIT
|
@@ -422,43 +434,48 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
422
434
|
version: '0'
|
423
435
|
requirements: []
|
424
436
|
rubyforge_project:
|
425
|
-
rubygems_version: 2.
|
437
|
+
rubygems_version: 2.1.9
|
426
438
|
signing_key:
|
427
439
|
specification_version: 4
|
428
440
|
summary: Audit the OSS licenses of your application's dependencies.
|
429
441
|
test_files:
|
430
|
-
- features/approve_dependencies.feature
|
431
442
|
- features/cli.feature
|
443
|
+
- features/cocoapods_dependencies.feature
|
444
|
+
- features/configure_bundler_groups.feature
|
445
|
+
- features/configure_ignore_dependencies.feature
|
446
|
+
- features/configure_project_name.feature
|
447
|
+
- features/configure_whitelist.feature
|
432
448
|
- features/gradle_dependencies.feature
|
433
|
-
- features/
|
434
|
-
- features/
|
435
|
-
- features/
|
449
|
+
- features/manually_added.feature
|
450
|
+
- features/manually_approved.feature
|
451
|
+
- features/manually_assigned_license.feature
|
436
452
|
- features/maven_dependencies.feature
|
437
453
|
- features/node_dependencies.feature
|
438
|
-
- features/project_name.feature
|
439
454
|
- features/python_dependencies.feature
|
440
|
-
- features/
|
441
|
-
- features/
|
455
|
+
- features/report_csv.feature
|
456
|
+
- features/report_html.feature
|
442
457
|
- features/step_definitions/cli_steps.rb
|
458
|
+
- features/step_definitions/cocoapod_steps.rb
|
459
|
+
- features/step_definitions/configure_bundler_groups_steps.rb
|
460
|
+
- features/step_definitions/configure_ignore_dependencies.rb
|
461
|
+
- features/step_definitions/configure_project_name_steps.rb
|
462
|
+
- features/step_definitions/configure_whitelist_steps.rb
|
443
463
|
- features/step_definitions/gradle_steps.rb
|
444
|
-
- features/step_definitions/
|
445
|
-
- features/step_definitions/
|
446
|
-
- features/step_definitions/
|
464
|
+
- features/step_definitions/manually_added_steps.rb
|
465
|
+
- features/step_definitions/manually_approved_steps.rb
|
466
|
+
- features/step_definitions/manually_assigned_license_steps.rb
|
447
467
|
- features/step_definitions/maven_steps.rb
|
448
468
|
- features/step_definitions/node_steps.rb
|
449
|
-
- features/step_definitions/project_name_steps.rb
|
450
469
|
- features/step_definitions/python_steps.rb
|
451
|
-
- features/step_definitions/
|
470
|
+
- features/step_definitions/report_csv_steps.rb
|
471
|
+
- features/step_definitions/report_html_steps.rb
|
452
472
|
- features/step_definitions/shared_steps.rb
|
453
|
-
- features/step_definitions/text_report_steps.rb
|
454
|
-
- features/step_definitions/whitelist_steps.rb
|
455
|
-
- features/text_report.feature
|
456
|
-
- features/whitelist.feature
|
457
473
|
- spec/fixtures/APACHE-2-LICENSE
|
458
474
|
- spec/fixtures/GPLv2
|
459
475
|
- spec/fixtures/ISC-LICENSE
|
460
476
|
- spec/fixtures/MIT-LICENSE
|
461
477
|
- spec/fixtures/MIT-LICENSE-with-varied-disclaimer
|
478
|
+
- spec/fixtures/Podfile
|
462
479
|
- spec/fixtures/README-with-MIT-LICENSE
|
463
480
|
- spec/fixtures/build.gradle
|
464
481
|
- spec/fixtures/license_directory/COPYING
|
@@ -486,11 +503,12 @@ test_files:
|
|
486
503
|
- spec/lib/license_finder/dependency_manager_spec.rb
|
487
504
|
- spec/lib/license_finder/license/definitions_spec.rb
|
488
505
|
- spec/lib/license_finder/license_spec.rb
|
489
|
-
- spec/lib/license_finder/license_url_spec.rb
|
490
506
|
- spec/lib/license_finder/package_managers/bower_package_spec.rb
|
491
507
|
- spec/lib/license_finder/package_managers/bower_spec.rb
|
492
508
|
- spec/lib/license_finder/package_managers/bundler_package_spec.rb
|
493
509
|
- spec/lib/license_finder/package_managers/bundler_spec.rb
|
510
|
+
- spec/lib/license_finder/package_managers/cocoa_pods_package_spec.rb
|
511
|
+
- spec/lib/license_finder/package_managers/cocoa_pods_spec.rb
|
494
512
|
- spec/lib/license_finder/package_managers/gradle_package_spec.rb
|
495
513
|
- spec/lib/license_finder/package_managers/gradle_spec.rb
|
496
514
|
- spec/lib/license_finder/package_managers/maven_package_spec.rb
|
@@ -508,8 +526,7 @@ test_files:
|
|
508
526
|
- spec/lib/license_finder/reports/reporter_spec.rb
|
509
527
|
- spec/lib/license_finder/reports/text_report_spec.rb
|
510
528
|
- spec/lib/license_finder/tables/dependency_spec.rb
|
511
|
-
- spec/lib/license_finder/tables/license_alias_spec.rb
|
512
529
|
- spec/lib/license_finder/yml_to_sql_spec.rb
|
513
530
|
- spec/lib/license_finder_spec.rb
|
514
531
|
- spec/spec_helper.rb
|
515
|
-
- spec/support/
|
532
|
+
- spec/support/stdout_helpers.rb
|