license_finder 0.8.1-java → 0.8.2-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/CHANGELOG.rdoc +15 -1
- data/bin/license_finder +1 -61
- data/db/migrate/201304181524_add_manual_to_dependencies.rb +7 -0
- data/features/ignore_bundle_groups.feature +15 -2
- data/features/non_bundler_dependencies.feature +19 -0
- data/features/step_definitions/approve_dependencies_steps.rb +1 -1
- data/features/step_definitions/cli_steps.rb +1 -1
- data/features/step_definitions/html_report_steps.rb +1 -6
- data/features/step_definitions/ignore_bundle_groups_steps.rb +18 -2
- data/features/step_definitions/non_bundler_steps.rb +33 -0
- data/features/step_definitions/set_license_steps.rb +1 -1
- data/features/step_definitions/shared_steps.rb +5 -8
- data/lib/license_finder.rb +24 -25
- data/lib/license_finder/bundle.rb +2 -2
- data/lib/license_finder/bundled_gem.rb +3 -3
- data/lib/license_finder/{gem_saver.rb → bundled_gem_saver.rb} +3 -5
- data/lib/license_finder/bundler_group_manager.rb +22 -0
- data/lib/license_finder/cli.rb +137 -31
- data/lib/license_finder/configuration.rb +28 -12
- data/lib/license_finder/dependency_manager.rb +49 -0
- data/lib/license_finder/license.rb +3 -3
- data/lib/license_finder/{license_files.rb → possible_license_files.rb} +2 -2
- data/lib/license_finder/{dependency_report.rb → reports/dependency_report.rb} +1 -1
- data/lib/license_finder/{html_report.rb → reports/html_report.rb} +0 -0
- data/lib/license_finder/{reporter.rb → reports/reporter.rb} +0 -0
- data/lib/license_finder/{text_report.rb → reports/text_report.rb} +0 -0
- data/lib/license_finder/tables.rb +1 -1
- data/lib/license_finder/tables/dependency.rb +24 -5
- data/lib/license_finder/yml_to_sql.rb +5 -0
- data/lib/tasks/license_finder.rake +1 -1
- data/license_finder.gemspec +5 -3
- data/readme.md +103 -26
- data/release.md +7 -2
- data/spec/lib/license_finder/bundle_spec.rb +4 -11
- data/spec/lib/license_finder/{gem_saver_spec.rb → bundled_gem_saver_spec.rb} +7 -4
- data/spec/lib/license_finder/bundled_gem_spec.rb +1 -1
- data/spec/lib/license_finder/bundler_group_manager_spec.rb +60 -0
- data/spec/lib/license_finder/cli_spec.rb +119 -19
- data/spec/lib/license_finder/configuration_spec.rb +31 -8
- data/spec/lib/license_finder/dependency_manager_spec.rb +107 -0
- data/spec/lib/license_finder/html_report_spec.rb +3 -3
- data/spec/lib/license_finder/{license_files_spec.rb → possible_license_files_spec.rb} +7 -7
- data/spec/lib/license_finder/tables/dependency_spec.rb +31 -44
- data/spec/lib/license_finder/yml_to_sql_spec.rb +24 -2
- data/spec/spec_helper.rb +0 -1
- data/spec/support/silence_stdout.rb +13 -0
- metadata +85 -76
- data/lib/license_finder/bundle_syncer.rb +0 -11
- data/spec/lib/license_finder/bundle_syncer_spec.rb +0 -16
@@ -36,7 +36,7 @@ module LicenseFinder
|
|
36
36
|
end
|
37
37
|
|
38
38
|
context "when the gem has at least one bundler group" do
|
39
|
-
before { dependency.stub(bundler_groups: [
|
39
|
+
before { dependency.stub(bundler_groups: [double(name: "group")]) }
|
40
40
|
it "should show the bundler group(s) in parens" do
|
41
41
|
should have_text "(group)"
|
42
42
|
end
|
@@ -52,7 +52,7 @@ module LicenseFinder
|
|
52
52
|
end
|
53
53
|
|
54
54
|
context "when the gem has at least one parent" do
|
55
|
-
before { dependency.stub(parents: [
|
55
|
+
before { dependency.stub(parents: [double(:name => "foo parent")]) }
|
56
56
|
it "should include a parents section" do
|
57
57
|
should have_text "Parents"
|
58
58
|
should have_text "foo parent"
|
@@ -66,7 +66,7 @@ module LicenseFinder
|
|
66
66
|
end
|
67
67
|
|
68
68
|
context "when the gem has at least one child" do
|
69
|
-
before { dependency.stub(children: [
|
69
|
+
before { dependency.stub(children: [double(:name => "foo child")]) }
|
70
70
|
|
71
71
|
it "should include a Children section" do
|
72
72
|
should have_text "Children"
|
@@ -1,35 +1,35 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
module LicenseFinder
|
4
|
-
describe
|
4
|
+
describe PossibleLicenseFiles do
|
5
5
|
def fixture_path(fixture)
|
6
6
|
Pathname.new(File.join(File.dirname(__FILE__), '..', '..', '..', 'spec', 'fixtures', fixture)).realpath.to_s
|
7
7
|
end
|
8
8
|
|
9
|
-
describe "#
|
9
|
+
describe "#find" do
|
10
10
|
it "is empty if there aren't any license files" do
|
11
11
|
subject = described_class.new('/not/a/dir')
|
12
|
-
subject.
|
12
|
+
subject.find.should == []
|
13
13
|
end
|
14
14
|
|
15
15
|
it "includes files with names like LICENSE, License or COPYING" do
|
16
16
|
subject = described_class.new(fixture_path('license_names'))
|
17
17
|
|
18
|
-
subject.
|
18
|
+
subject.find.map(&:file_name).should =~
|
19
19
|
%w[COPYING.txt LICENSE Mit-License README.rdoc Licence.rdoc]
|
20
20
|
end
|
21
21
|
|
22
22
|
it "includes files deep in the hierarchy" do
|
23
23
|
subject = described_class.new(fixture_path('nested_gem'))
|
24
24
|
|
25
|
-
subject.
|
25
|
+
subject.find.map { |f| [f.file_name, f.file_path] }.should =~ [
|
26
26
|
%w[LICENSE vendor/LICENSE]
|
27
27
|
]
|
28
28
|
end
|
29
29
|
|
30
30
|
it "includes both files nested inside LICENSE directory and top level files" do
|
31
31
|
subject = described_class.new(fixture_path('license_directory'))
|
32
|
-
found_license_files = subject.
|
32
|
+
found_license_files = subject.find
|
33
33
|
|
34
34
|
found_license_files.map { |f| [f.file_name, f.file_path] }.should =~ [
|
35
35
|
%w[BSD-2-Clause.txt LICENSE/BSD-2-Clause.txt],
|
@@ -43,7 +43,7 @@ module LicenseFinder
|
|
43
43
|
|
44
44
|
it "handles non UTF8 encodings" do
|
45
45
|
subject = described_class.new(fixture_path('utf8_gem'))
|
46
|
-
expect { subject.
|
46
|
+
expect { subject.find }.not_to raise_error
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
@@ -2,39 +2,14 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module LicenseFinder
|
4
4
|
describe Dependency do
|
5
|
-
|
6
|
-
{
|
7
|
-
'name' => "spec_name",
|
8
|
-
'version' => "2.1.3",
|
9
|
-
'license' => "GPLv2",
|
10
|
-
'approved' => false,
|
11
|
-
'notes' => 'some notes',
|
12
|
-
'homepage' => 'homepage',
|
13
|
-
'license_files' => ['/Users/pivotal/foo/lic1', '/Users/pivotal/bar/lic2'],
|
14
|
-
'bundler_groups' => ["test"]
|
15
|
-
}
|
16
|
-
end
|
17
|
-
|
18
|
-
let(:config) { Configuration.new }
|
19
|
-
|
20
|
-
before do
|
21
|
-
LicenseFinder.stub(:config).and_return config
|
22
|
-
config.whitelist = ["MIT", "other"]
|
23
|
-
end
|
24
|
-
|
25
|
-
describe ".destroy_obsolete" do
|
26
|
-
it "destroys every dependency except for the ones provided as 'current'" do
|
27
|
-
cur1 = Dependency.create(name: "current dependency 1")
|
28
|
-
cur2 = Dependency.create(name: "current dependency 2")
|
29
|
-
Dependency.create(name: "old dependency 1")
|
30
|
-
Dependency.create(name: "old dependency 2")
|
5
|
+
describe '.unapproved' do
|
6
|
+
let(:config) { Configuration.new }
|
31
7
|
|
32
|
-
|
33
|
-
|
8
|
+
before do
|
9
|
+
LicenseFinder.stub(:config).and_return config
|
10
|
+
config.whitelist = ["MIT", "other"]
|
34
11
|
end
|
35
|
-
end
|
36
12
|
|
37
|
-
describe '.unapproved' do
|
38
13
|
it "should return all unapproved dependencies" do
|
39
14
|
dependency = Dependency.create(name: "unapproved dependency", version: '0.0.1')
|
40
15
|
dependency.approval = Approval.create(state: false)
|
@@ -53,6 +28,32 @@ module LicenseFinder
|
|
53
28
|
end
|
54
29
|
end
|
55
30
|
|
31
|
+
describe ".named" do
|
32
|
+
it "creates a new dependency" do
|
33
|
+
dep = described_class.named("never_seen")
|
34
|
+
dep.name.should == "never_seen"
|
35
|
+
dep.should_not be_new
|
36
|
+
end
|
37
|
+
|
38
|
+
it "returns an existing dependency" do
|
39
|
+
described_class.named("referenced_again")
|
40
|
+
dep = described_class.named("referenced_again")
|
41
|
+
dep.name.should == "referenced_again"
|
42
|
+
dep.should_not be_new
|
43
|
+
Dependency.count(name: "referenced_again").should == 1
|
44
|
+
end
|
45
|
+
|
46
|
+
it "always attaches an approval" do
|
47
|
+
described_class.named("referenced_again").reload.approval.should be
|
48
|
+
described_class.named("referenced_again").reload.approval.should be
|
49
|
+
end
|
50
|
+
|
51
|
+
it "attaches an approval to a dependency that is currently missing one" do
|
52
|
+
Dependency.create(name: "foo")
|
53
|
+
described_class.named("foo").reload.approval.should be
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
56
57
|
describe '#approve!' do
|
57
58
|
it "should update the database to show the dependency is approved" do
|
58
59
|
dependency = Dependency.create(name: "foo", version: '0.0.1')
|
@@ -83,20 +84,6 @@ module LicenseFinder
|
|
83
84
|
dependency.should_not be_approved
|
84
85
|
end
|
85
86
|
end
|
86
|
-
|
87
|
-
describe "#set_license_manually" do
|
88
|
-
let(:gem) do
|
89
|
-
dependency = Dependency.new(name: "bob", version: '0.0.1')
|
90
|
-
dependency.license = LicenseAlias.create(name: 'Original')
|
91
|
-
dependency.save
|
92
|
-
dependency
|
93
|
-
end
|
94
|
-
|
95
|
-
it "delegates to the license" do
|
96
|
-
gem.license.should_receive(:set_manually).with('Updated')
|
97
|
-
gem.set_license_manually('Updated')
|
98
|
-
end
|
99
|
-
end
|
100
87
|
end
|
101
88
|
end
|
102
89
|
|
@@ -8,19 +8,20 @@ describe LicenseFinder::YmlToSql do
|
|
8
8
|
'license' => "GPLv2",
|
9
9
|
'license_url' => "www.license_url.org",
|
10
10
|
'approved' => true,
|
11
|
-
'manual' => true,
|
12
11
|
'summary' => "some summary",
|
13
12
|
'description' => "some description",
|
14
13
|
'homepage' => 'www.homepage.com',
|
15
14
|
'children' => ["child1_name"],
|
16
15
|
'parents' => ["parent1_name"],
|
17
16
|
'bundler_groups' => [:test],
|
17
|
+
'source' => source,
|
18
18
|
|
19
19
|
'notes' => 'some notes',
|
20
20
|
'license_files' => ['/Users/pivotal/foo/lic1', '/Users/pivotal/bar/lic2'],
|
21
21
|
}
|
22
22
|
end
|
23
23
|
let(:config) { LicenseFinder::Configuration.new }
|
24
|
+
let(:source) { nil }
|
24
25
|
|
25
26
|
before do
|
26
27
|
LicenseFinder.stub(:config) { config }
|
@@ -53,6 +54,28 @@ describe LicenseFinder::YmlToSql do
|
|
53
54
|
(DB.tables - [:schema_migrations]).each { |table| DB[table].truncate }
|
54
55
|
end
|
55
56
|
|
57
|
+
describe "when dependency source is set to bundle" do
|
58
|
+
let(:source) { "bundle" }
|
59
|
+
|
60
|
+
it "sets manual to be false" do
|
61
|
+
described_class.convert_all([legacy_attributes])
|
62
|
+
|
63
|
+
saved_dep = described_class::Sql::Dependency.first
|
64
|
+
saved_dep.manual.should == false
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe "when dependency source is not set to bundle" do
|
69
|
+
let(:source) { "" }
|
70
|
+
|
71
|
+
it "sets manual to be false" do
|
72
|
+
described_class.convert_all([legacy_attributes])
|
73
|
+
|
74
|
+
saved_dep = described_class::Sql::Dependency.first
|
75
|
+
saved_dep.manual.should == true
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
56
79
|
it "persists all of the dependency's attributes" do
|
57
80
|
described_class.convert_all([legacy_attributes])
|
58
81
|
|
@@ -71,7 +94,6 @@ describe LicenseFinder::YmlToSql do
|
|
71
94
|
saved_dep = described_class::Sql::Dependency.first
|
72
95
|
saved_dep.license.name.should == "GPLv2"
|
73
96
|
saved_dep.license.url.should == "www.license_url.org"
|
74
|
-
saved_dep.license.manual.should == true
|
75
97
|
end
|
76
98
|
|
77
99
|
it "associates bundler groups" do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: license_finder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.8.
|
5
|
+
version: 0.8.2
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Jacob Maine
|
@@ -12,26 +12,25 @@ authors:
|
|
12
12
|
- Paul Meskers
|
13
13
|
- Brent Wheeldon
|
14
14
|
- David Tengdin
|
15
|
+
- William Ramsey
|
15
16
|
autorequire:
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
|
-
date: 2013-
|
19
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: bundler
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
|
-
- -
|
25
|
+
- - '>='
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
MA==
|
27
|
+
version: '0'
|
28
28
|
none: false
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
MA==
|
33
|
+
version: '0'
|
35
34
|
none: false
|
36
35
|
prerelease: false
|
37
36
|
type: :runtime
|
@@ -39,17 +38,31 @@ dependencies:
|
|
39
38
|
name: sequel
|
40
39
|
version_requirements: !ruby/object:Gem::Requirement
|
41
40
|
requirements:
|
42
|
-
- -
|
41
|
+
- - '>='
|
43
42
|
- !ruby/object:Gem::Version
|
44
|
-
version:
|
45
|
-
MA==
|
43
|
+
version: '0'
|
46
44
|
none: false
|
47
45
|
requirement: !ruby/object:Gem::Requirement
|
48
46
|
requirements:
|
49
|
-
- -
|
47
|
+
- - '>='
|
50
48
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
52
|
-
|
49
|
+
version: '0'
|
50
|
+
none: false
|
51
|
+
prerelease: false
|
52
|
+
type: :runtime
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: thor
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
none: false
|
61
|
+
requirement: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
53
66
|
none: false
|
54
67
|
prerelease: false
|
55
68
|
type: :runtime
|
@@ -57,17 +70,15 @@ dependencies:
|
|
57
70
|
name: jdbc-sqlite3
|
58
71
|
version_requirements: !ruby/object:Gem::Requirement
|
59
72
|
requirements:
|
60
|
-
- -
|
73
|
+
- - '>='
|
61
74
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
63
|
-
MA==
|
75
|
+
version: '0'
|
64
76
|
none: false
|
65
77
|
requirement: !ruby/object:Gem::Requirement
|
66
78
|
requirements:
|
67
|
-
- -
|
79
|
+
- - '>='
|
68
80
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
70
|
-
MA==
|
81
|
+
version: '0'
|
71
82
|
none: false
|
72
83
|
prerelease: false
|
73
84
|
type: :runtime
|
@@ -75,17 +86,15 @@ dependencies:
|
|
75
86
|
name: rspec
|
76
87
|
version_requirements: !ruby/object:Gem::Requirement
|
77
88
|
requirements:
|
78
|
-
- -
|
89
|
+
- - '>='
|
79
90
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
81
|
-
MA==
|
91
|
+
version: '0'
|
82
92
|
none: false
|
83
93
|
requirement: !ruby/object:Gem::Requirement
|
84
94
|
requirements:
|
85
|
-
- -
|
95
|
+
- - '>='
|
86
96
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
88
|
-
MA==
|
97
|
+
version: '0'
|
89
98
|
none: false
|
90
99
|
prerelease: false
|
91
100
|
type: :development
|
@@ -93,17 +102,15 @@ dependencies:
|
|
93
102
|
name: rake
|
94
103
|
version_requirements: !ruby/object:Gem::Requirement
|
95
104
|
requirements:
|
96
|
-
- -
|
105
|
+
- - '>='
|
97
106
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
99
|
-
MA==
|
107
|
+
version: '0'
|
100
108
|
none: false
|
101
109
|
requirement: !ruby/object:Gem::Requirement
|
102
110
|
requirements:
|
103
|
-
- -
|
111
|
+
- - '>='
|
104
112
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
106
|
-
MA==
|
113
|
+
version: '0'
|
107
114
|
none: false
|
108
115
|
prerelease: false
|
109
116
|
type: :development
|
@@ -111,17 +118,15 @@ dependencies:
|
|
111
118
|
name: xpath
|
112
119
|
version_requirements: !ruby/object:Gem::Requirement
|
113
120
|
requirements:
|
114
|
-
- -
|
121
|
+
- - '>='
|
115
122
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
117
|
-
MA==
|
123
|
+
version: '0'
|
118
124
|
none: false
|
119
125
|
requirement: !ruby/object:Gem::Requirement
|
120
126
|
requirements:
|
121
|
-
- -
|
127
|
+
- - '>='
|
122
128
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
124
|
-
MA==
|
129
|
+
version: '0'
|
125
130
|
none: false
|
126
131
|
prerelease: false
|
127
132
|
type: :development
|
@@ -129,17 +134,15 @@ dependencies:
|
|
129
134
|
name: cucumber
|
130
135
|
version_requirements: !ruby/object:Gem::Requirement
|
131
136
|
requirements:
|
132
|
-
- -
|
137
|
+
- - '>='
|
133
138
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
135
|
-
MA==
|
139
|
+
version: '0'
|
136
140
|
none: false
|
137
141
|
requirement: !ruby/object:Gem::Requirement
|
138
142
|
requirements:
|
139
|
-
- -
|
143
|
+
- - '>='
|
140
144
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
142
|
-
MA==
|
145
|
+
version: '0'
|
143
146
|
none: false
|
144
147
|
prerelease: false
|
145
148
|
type: :development
|
@@ -147,17 +150,15 @@ dependencies:
|
|
147
150
|
name: database_cleaner
|
148
151
|
version_requirements: !ruby/object:Gem::Requirement
|
149
152
|
requirements:
|
150
|
-
- -
|
153
|
+
- - '='
|
151
154
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
153
|
-
MA==
|
155
|
+
version: 0.9.1
|
154
156
|
none: false
|
155
157
|
requirement: !ruby/object:Gem::Requirement
|
156
158
|
requirements:
|
157
|
-
- -
|
159
|
+
- - '='
|
158
160
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
160
|
-
MA==
|
161
|
+
version: 0.9.1
|
161
162
|
none: false
|
162
163
|
prerelease: false
|
163
164
|
type: :development
|
@@ -165,13 +166,13 @@ dependencies:
|
|
165
166
|
name: capybara
|
166
167
|
version_requirements: !ruby/object:Gem::Requirement
|
167
168
|
requirements:
|
168
|
-
- -
|
169
|
+
- - ~>
|
169
170
|
- !ruby/object:Gem::Version
|
170
171
|
version: 2.0.0
|
171
172
|
none: false
|
172
173
|
requirement: !ruby/object:Gem::Requirement
|
173
174
|
requirements:
|
174
|
-
- -
|
175
|
+
- - ~>
|
175
176
|
- !ruby/object:Gem::Version
|
176
177
|
version: 2.0.0
|
177
178
|
none: false
|
@@ -181,13 +182,13 @@ dependencies:
|
|
181
182
|
name: rails
|
182
183
|
version_requirements: !ruby/object:Gem::Requirement
|
183
184
|
requirements:
|
184
|
-
- -
|
185
|
+
- - ~>
|
185
186
|
- !ruby/object:Gem::Version
|
186
187
|
version: 3.2.0
|
187
188
|
none: false
|
188
189
|
requirement: !ruby/object:Gem::Requirement
|
189
190
|
requirements:
|
190
|
-
- -
|
191
|
+
- - ~>
|
191
192
|
- !ruby/object:Gem::Version
|
192
193
|
version: 3.2.0
|
193
194
|
none: false
|
@@ -206,9 +207,9 @@ executables:
|
|
206
207
|
extensions: []
|
207
208
|
extra_rdoc_files: []
|
208
209
|
files:
|
209
|
-
-
|
210
|
-
-
|
211
|
-
-
|
210
|
+
- .gitignore
|
211
|
+
- .rspec
|
212
|
+
- .travis.yml
|
212
213
|
- CHANGELOG.rdoc
|
213
214
|
- Gemfile
|
214
215
|
- LICENSE
|
@@ -223,16 +224,19 @@ files:
|
|
223
224
|
- db/migrate/201303291753_allow_null_license_names.rb
|
224
225
|
- db/migrate/201304011027_allow_null_dependency_version.rb
|
225
226
|
- db/migrate/201304020947_change_table_name_licenses_to_license_aliases.rb
|
227
|
+
- db/migrate/201304181524_add_manual_to_dependencies.rb
|
226
228
|
- features/approve_dependencies.feature
|
227
229
|
- features/cli.feature
|
228
230
|
- features/html_report.feature
|
229
231
|
- features/ignore_bundle_groups.feature
|
232
|
+
- features/non_bundler_dependencies.feature
|
230
233
|
- features/rails_rake.feature
|
231
234
|
- features/set_license.feature
|
232
235
|
- features/step_definitions/approve_dependencies_steps.rb
|
233
236
|
- features/step_definitions/cli_steps.rb
|
234
237
|
- features/step_definitions/html_report_steps.rb
|
235
238
|
- features/step_definitions/ignore_bundle_groups_steps.rb
|
239
|
+
- features/step_definitions/non_bundler_steps.rb
|
236
240
|
- features/step_definitions/rails_rake_steps.rb
|
237
241
|
- features/step_definitions/set_license_steps.rb
|
238
242
|
- features/step_definitions/shared_steps.rb
|
@@ -252,13 +256,12 @@ files:
|
|
252
256
|
- lib/data/licenses/SimplifiedBSD.txt
|
253
257
|
- lib/license_finder.rb
|
254
258
|
- lib/license_finder/bundle.rb
|
255
|
-
- lib/license_finder/bundle_syncer.rb
|
256
259
|
- lib/license_finder/bundled_gem.rb
|
260
|
+
- lib/license_finder/bundled_gem_saver.rb
|
261
|
+
- lib/license_finder/bundler_group_manager.rb
|
257
262
|
- lib/license_finder/cli.rb
|
258
263
|
- lib/license_finder/configuration.rb
|
259
|
-
- lib/license_finder/
|
260
|
-
- lib/license_finder/gem_saver.rb
|
261
|
-
- lib/license_finder/html_report.rb
|
264
|
+
- lib/license_finder/dependency_manager.rb
|
262
265
|
- lib/license_finder/license.rb
|
263
266
|
- lib/license_finder/license/apache2.rb
|
264
267
|
- lib/license_finder/license/bsd.rb
|
@@ -269,18 +272,20 @@ files:
|
|
269
272
|
- lib/license_finder/license/new_bsd.rb
|
270
273
|
- lib/license_finder/license/ruby.rb
|
271
274
|
- lib/license_finder/license/simplified_bsd.rb
|
272
|
-
- lib/license_finder/license_files.rb
|
273
275
|
- lib/license_finder/license_url.rb
|
274
276
|
- lib/license_finder/platform.rb
|
275
277
|
- lib/license_finder/possible_license_file.rb
|
278
|
+
- lib/license_finder/possible_license_files.rb
|
276
279
|
- lib/license_finder/railtie.rb
|
277
|
-
- lib/license_finder/
|
280
|
+
- lib/license_finder/reports/dependency_report.rb
|
281
|
+
- lib/license_finder/reports/html_report.rb
|
282
|
+
- lib/license_finder/reports/reporter.rb
|
283
|
+
- lib/license_finder/reports/text_report.rb
|
278
284
|
- lib/license_finder/tables.rb
|
279
285
|
- lib/license_finder/tables/approval.rb
|
280
286
|
- lib/license_finder/tables/bundler_group.rb
|
281
287
|
- lib/license_finder/tables/dependency.rb
|
282
288
|
- lib/license_finder/tables/license_alias.rb
|
283
|
-
- lib/license_finder/text_report.rb
|
284
289
|
- lib/license_finder/yml_to_sql.rb
|
285
290
|
- lib/tasks/license_finder.rake
|
286
291
|
- lib/templates/html_report.erb
|
@@ -314,11 +319,12 @@ files:
|
|
314
319
|
- spec/fixtures/readme/Readme.markdown
|
315
320
|
- spec/fixtures/utf8_gem/README
|
316
321
|
- spec/lib/license_finder/bundle_spec.rb
|
317
|
-
- spec/lib/license_finder/
|
322
|
+
- spec/lib/license_finder/bundled_gem_saver_spec.rb
|
318
323
|
- spec/lib/license_finder/bundled_gem_spec.rb
|
324
|
+
- spec/lib/license_finder/bundler_group_manager_spec.rb
|
319
325
|
- spec/lib/license_finder/cli_spec.rb
|
320
326
|
- spec/lib/license_finder/configuration_spec.rb
|
321
|
-
- spec/lib/license_finder/
|
327
|
+
- spec/lib/license_finder/dependency_manager_spec.rb
|
322
328
|
- spec/lib/license_finder/html_report_spec.rb
|
323
329
|
- spec/lib/license_finder/license/apache_spec.rb
|
324
330
|
- spec/lib/license_finder/license/bsd_spec.rb
|
@@ -329,10 +335,10 @@ files:
|
|
329
335
|
- spec/lib/license_finder/license/new_bsd_spec.rb
|
330
336
|
- spec/lib/license_finder/license/ruby_spec.rb
|
331
337
|
- spec/lib/license_finder/license/simplified_bsd_spec.rb
|
332
|
-
- spec/lib/license_finder/license_files_spec.rb
|
333
338
|
- spec/lib/license_finder/license_spec.rb
|
334
339
|
- spec/lib/license_finder/license_url_spec.rb
|
335
340
|
- spec/lib/license_finder/possible_license_file_spec.rb
|
341
|
+
- spec/lib/license_finder/possible_license_files_spec.rb
|
336
342
|
- spec/lib/license_finder/reporter_spec.rb
|
337
343
|
- spec/lib/license_finder/tables/dependency_spec.rb
|
338
344
|
- spec/lib/license_finder/tables/license_alias_spec.rb
|
@@ -341,6 +347,7 @@ files:
|
|
341
347
|
- spec/lib/license_finder_spec.rb
|
342
348
|
- spec/spec_helper.rb
|
343
349
|
- spec/support/license_examples.rb
|
350
|
+
- spec/support/silence_stdout.rb
|
344
351
|
homepage: https://github.com/pivotal/LicenseFinder
|
345
352
|
licenses:
|
346
353
|
- MIT
|
@@ -350,23 +357,21 @@ require_paths:
|
|
350
357
|
- lib
|
351
358
|
required_ruby_version: !ruby/object:Gem::Requirement
|
352
359
|
requirements:
|
353
|
-
- -
|
360
|
+
- - '>='
|
354
361
|
- !ruby/object:Gem::Version
|
355
362
|
segments:
|
356
363
|
- 0
|
357
364
|
hash: 2
|
358
|
-
version:
|
359
|
-
MA==
|
365
|
+
version: '0'
|
360
366
|
none: false
|
361
367
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
362
368
|
requirements:
|
363
|
-
- -
|
369
|
+
- - '>='
|
364
370
|
- !ruby/object:Gem::Version
|
365
371
|
segments:
|
366
372
|
- 0
|
367
373
|
hash: 2
|
368
|
-
version:
|
369
|
-
MA==
|
374
|
+
version: '0'
|
370
375
|
none: false
|
371
376
|
requirements: []
|
372
377
|
rubyforge_project:
|
@@ -379,12 +384,14 @@ test_files:
|
|
379
384
|
- features/cli.feature
|
380
385
|
- features/html_report.feature
|
381
386
|
- features/ignore_bundle_groups.feature
|
387
|
+
- features/non_bundler_dependencies.feature
|
382
388
|
- features/rails_rake.feature
|
383
389
|
- features/set_license.feature
|
384
390
|
- features/step_definitions/approve_dependencies_steps.rb
|
385
391
|
- features/step_definitions/cli_steps.rb
|
386
392
|
- features/step_definitions/html_report_steps.rb
|
387
393
|
- features/step_definitions/ignore_bundle_groups_steps.rb
|
394
|
+
- features/step_definitions/non_bundler_steps.rb
|
388
395
|
- features/step_definitions/rails_rake_steps.rb
|
389
396
|
- features/step_definitions/set_license_steps.rb
|
390
397
|
- features/step_definitions/shared_steps.rb
|
@@ -418,11 +425,12 @@ test_files:
|
|
418
425
|
- spec/fixtures/readme/Readme.markdown
|
419
426
|
- spec/fixtures/utf8_gem/README
|
420
427
|
- spec/lib/license_finder/bundle_spec.rb
|
421
|
-
- spec/lib/license_finder/
|
428
|
+
- spec/lib/license_finder/bundled_gem_saver_spec.rb
|
422
429
|
- spec/lib/license_finder/bundled_gem_spec.rb
|
430
|
+
- spec/lib/license_finder/bundler_group_manager_spec.rb
|
423
431
|
- spec/lib/license_finder/cli_spec.rb
|
424
432
|
- spec/lib/license_finder/configuration_spec.rb
|
425
|
-
- spec/lib/license_finder/
|
433
|
+
- spec/lib/license_finder/dependency_manager_spec.rb
|
426
434
|
- spec/lib/license_finder/html_report_spec.rb
|
427
435
|
- spec/lib/license_finder/license/apache_spec.rb
|
428
436
|
- spec/lib/license_finder/license/bsd_spec.rb
|
@@ -433,10 +441,10 @@ test_files:
|
|
433
441
|
- spec/lib/license_finder/license/new_bsd_spec.rb
|
434
442
|
- spec/lib/license_finder/license/ruby_spec.rb
|
435
443
|
- spec/lib/license_finder/license/simplified_bsd_spec.rb
|
436
|
-
- spec/lib/license_finder/license_files_spec.rb
|
437
444
|
- spec/lib/license_finder/license_spec.rb
|
438
445
|
- spec/lib/license_finder/license_url_spec.rb
|
439
446
|
- spec/lib/license_finder/possible_license_file_spec.rb
|
447
|
+
- spec/lib/license_finder/possible_license_files_spec.rb
|
440
448
|
- spec/lib/license_finder/reporter_spec.rb
|
441
449
|
- spec/lib/license_finder/tables/dependency_spec.rb
|
442
450
|
- spec/lib/license_finder/tables/license_alias_spec.rb
|
@@ -445,3 +453,4 @@ test_files:
|
|
445
453
|
- spec/lib/license_finder_spec.rb
|
446
454
|
- spec/spec_helper.rb
|
447
455
|
- spec/support/license_examples.rb
|
456
|
+
- spec/support/silence_stdout.rb
|