license_finder 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -7
- data/.travis.yml +1 -3
- data/CHANGELOG.rdoc +13 -0
- data/db/migrate/201307251004_data_fix_manual_licenses.rb +2 -2
- data/db/migrate/201307251107_reassociate_license.rb +18 -18
- data/db/migrate/201311192002_add_manually_approved_to_dependencies.rb +7 -0
- data/db/migrate/201311192003_reassociate_manual_approval.rb +14 -0
- data/db/migrate/201311192010_drop_approvals.rb +5 -0
- data/features/cli.feature +1 -1
- data/features/html_report.feature +1 -1
- data/features/{non_bundler_dependencies.feature → manually_managed_dependencies.feature} +6 -6
- data/features/step_definitions/html_report_steps.rb +2 -9
- data/features/step_definitions/{non_bundler_steps.rb → manually_managed_steps.rb} +0 -0
- data/features/step_definitions/shared_steps.rb +4 -8
- data/lib/license_finder.rb +21 -17
- data/lib/license_finder/bower.rb +3 -34
- data/lib/license_finder/bower_package.rb +63 -0
- data/lib/license_finder/bundler.rb +73 -0
- data/lib/license_finder/bundler_package.rb +33 -0
- data/lib/license_finder/cli.rb +33 -35
- data/lib/license_finder/dependency_manager.rb +14 -23
- data/lib/license_finder/license/apache2.rb +1 -1
- data/lib/license_finder/license/lgpl.rb +1 -0
- data/lib/license_finder/npm.rb +22 -39
- data/lib/license_finder/npm_package.rb +61 -0
- data/lib/license_finder/package.rb +14 -80
- data/lib/license_finder/package_saver.rb +13 -75
- data/lib/license_finder/pip.rb +21 -33
- data/lib/license_finder/pip_package.rb +51 -0
- data/lib/license_finder/platform.rb +3 -15
- data/lib/license_finder/possible_license_file.rb +0 -4
- data/lib/license_finder/possible_license_files.rb +4 -0
- data/lib/license_finder/tables.rb +2 -2
- data/lib/license_finder/tables/bundler_group.rb +3 -0
- data/lib/license_finder/tables/dependency.rb +43 -18
- data/lib/license_finder/tables/license_alias.rb +4 -0
- data/lib/license_finder/yml_to_sql.rb +22 -30
- data/license_finder.gemspec +3 -3
- data/readme.md +5 -5
- data/spec/lib/license_finder/bower_package_spec.rb +56 -0
- data/spec/lib/license_finder/bower_spec.rb +3 -24
- data/spec/lib/license_finder/bundler_package_spec.rb +62 -0
- data/spec/lib/license_finder/{bundle_spec.rb → bundler_spec.rb} +7 -7
- data/spec/lib/license_finder/cli_spec.rb +6 -6
- data/spec/lib/license_finder/dependency_manager_spec.rb +14 -15
- data/spec/lib/license_finder/html_report_spec.rb +2 -3
- data/spec/lib/license_finder/markdown_report_spec.rb +4 -4
- data/spec/lib/license_finder/npm_package_spec.rb +51 -0
- data/spec/lib/license_finder/npm_spec.rb +25 -25
- data/spec/lib/license_finder/package_saver_spec.rb +50 -190
- data/spec/lib/license_finder/pip_package_spec.rb +74 -0
- data/spec/lib/license_finder/pip_spec.rb +33 -55
- data/spec/lib/license_finder/tables/dependency_spec.rb +83 -32
- data/spec/lib/license_finder/yml_to_sql_spec.rb +5 -12
- data/spec/spec_helper.rb +22 -2
- metadata +30 -18
- data/lib/license_finder/bundle.rb +0 -74
- data/lib/license_finder/tables/approval.rb +0 -4
- data/spec/lib/license_finder/package_spec.rb +0 -98
@@ -2,25 +2,45 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module LicenseFinder
|
4
4
|
describe Pip do
|
5
|
-
describe '.
|
6
|
-
|
7
|
-
allow(Pip).to receive(:`).with(/python/).and_return(
|
5
|
+
describe '.current_packages' do
|
6
|
+
def stub_pip(stdout)
|
7
|
+
allow(Pip).to receive(:`).with(/python/).and_return(stdout)
|
8
|
+
end
|
9
|
+
|
10
|
+
def stub_pypi(name, version, response)
|
11
|
+
stub_request(:get, "https://pypi.python.org/pypi/#{name}/#{version}/json").
|
12
|
+
to_return(response)
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'fetches data from pip' do
|
16
|
+
stub_pip('[["jasmine", "1.3.1", "jasmine/path"], ["jasmine-core", "1.3.1", "jasmine-core/path"]]')
|
17
|
+
stub_pypi("jasmine", "1.3.1", status: 200, body: '{}')
|
18
|
+
stub_pypi("jasmine-core", "1.3.1", status: 200, body: '{}')
|
19
|
+
|
20
|
+
current_packages = Pip.current_packages
|
21
|
+
|
22
|
+
expect(current_packages.size).to eq(2)
|
23
|
+
expect(current_packages.first).to be_a(Package)
|
24
|
+
end
|
8
25
|
|
9
|
-
|
26
|
+
it "fetches data from pypi" do
|
27
|
+
stub_pip('[["jasmine", "1.3.1", "jasmine/path"]]')
|
28
|
+
stub_pypi("jasmine", "1.3.1", status: 200, body: JSON.generate(info: {summary: "A summary"}))
|
10
29
|
|
11
|
-
expect(
|
12
|
-
|
30
|
+
expect(PipPackage).to receive(:new).with("jasmine", "1.3.1", "jasmine/path/jasmine", "summary" => "A summary")
|
31
|
+
Pip.current_packages
|
13
32
|
end
|
14
33
|
|
15
|
-
it
|
16
|
-
|
34
|
+
it "ignores pypi if it can't find useful info" do
|
35
|
+
stub_pip('[["jasmine", "1.3.1", "jasmine/path"]]')
|
36
|
+
stub_pypi("jasmine", "1.3.1", status: 404, body: '')
|
17
37
|
|
18
|
-
|
19
|
-
Pip.
|
38
|
+
expect(PipPackage).to receive(:new).with("jasmine", "1.3.1", "jasmine/path/jasmine", {})
|
39
|
+
Pip.current_packages
|
20
40
|
end
|
21
41
|
end
|
22
42
|
|
23
|
-
describe '.
|
43
|
+
describe '.active?' do
|
24
44
|
let(:requirements) { Pathname.new('requirements.txt').expand_path }
|
25
45
|
|
26
46
|
context 'with a requirements file' do
|
@@ -29,7 +49,7 @@ module LicenseFinder
|
|
29
49
|
end
|
30
50
|
|
31
51
|
it 'returns true' do
|
32
|
-
expect(Pip.
|
52
|
+
expect(Pip.active?).to eq(true)
|
33
53
|
end
|
34
54
|
end
|
35
55
|
|
@@ -39,51 +59,9 @@ module LicenseFinder
|
|
39
59
|
end
|
40
60
|
|
41
61
|
it 'returns false' do
|
42
|
-
expect(Pip.
|
62
|
+
expect(Pip.active?).to eq(false)
|
43
63
|
end
|
44
64
|
end
|
45
65
|
end
|
46
|
-
|
47
|
-
describe '.license_for' do
|
48
|
-
let(:package) { PythonPackage.new(OpenStruct.new(name: 'jasmine', version: '1.3.1')) }
|
49
|
-
|
50
|
-
before :each do
|
51
|
-
stub_request(:get, "https://pypi.python.org/pypi/jasmine/1.3.1/json").
|
52
|
-
to_return(:status => 200, :body => "{}", :headers => {})
|
53
|
-
end
|
54
|
-
|
55
|
-
it 'reaches out to PyPI with the package name and version' do
|
56
|
-
Pip.license_for(package)
|
57
|
-
|
58
|
-
WebMock.should have_requested(:get, "https://pypi.python.org/pypi/jasmine/1.3.1/json")
|
59
|
-
end
|
60
|
-
|
61
|
-
it 'returns the license from info => license preferentially' do
|
62
|
-
data = { info: { license: "MIT", classifiers: [ 'License :: OSI Approved :: Apache 2.0 License' ] } }
|
63
|
-
|
64
|
-
stub_request(:get, "https://pypi.python.org/pypi/jasmine/1.3.1/json").
|
65
|
-
to_return(:status => 200, :body => JSON.generate(data), :headers => {})
|
66
|
-
|
67
|
-
expect(Pip.license_for(package)).to eq('MIT')
|
68
|
-
end
|
69
|
-
|
70
|
-
it 'returns the first license from the classifiers if no info => license exists' do
|
71
|
-
data = { info: { classifiers: [ 'License :: OSI Approved :: Apache 2.0 License' ] } }
|
72
|
-
|
73
|
-
stub_request(:get, "https://pypi.python.org/pypi/jasmine/1.3.1/json").
|
74
|
-
to_return(:status => 200, :body => JSON.generate(data), :headers => {})
|
75
|
-
|
76
|
-
expect(Pip.license_for(package)).to eq('Apache 2.0 License')
|
77
|
-
end
|
78
|
-
|
79
|
-
it 'returns other if no license can be found' do
|
80
|
-
data = {}
|
81
|
-
|
82
|
-
stub_request(:get, "https://pypi.python.org/pypi/jasmine/1.3.1/json").
|
83
|
-
to_return(:status => 200, :body => JSON.generate(data), :headers => {})
|
84
|
-
|
85
|
-
expect(Pip.license_for(package)).to eq('other')
|
86
|
-
end
|
87
|
-
end
|
88
66
|
end
|
89
67
|
end
|
@@ -12,14 +12,11 @@ module LicenseFinder
|
|
12
12
|
|
13
13
|
it "should return all unapproved dependencies" do
|
14
14
|
dependency = Dependency.create(name: "unapproved dependency", version: '0.0.1')
|
15
|
-
dependency.approval = Approval.create(state: false)
|
16
|
-
dependency.save
|
17
15
|
approved = Dependency.create(name: "approved dependency", version: '0.0.1')
|
18
|
-
approved.
|
16
|
+
approved.manually_approved = true
|
19
17
|
approved.save
|
20
18
|
whitelisted = Dependency.create(name: "approved dependency", version: '0.0.1')
|
21
19
|
whitelisted.license = LicenseAlias.create(name: 'MIT')
|
22
|
-
whitelisted.approval = Approval.create(state: false)
|
23
20
|
whitelisted.save
|
24
21
|
|
25
22
|
unapproved = Dependency.unapproved
|
@@ -42,52 +39,33 @@ module LicenseFinder
|
|
42
39
|
dep.should_not be_new
|
43
40
|
Dependency.count(name: "referenced_again").should == 1
|
44
41
|
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
42
|
end
|
56
43
|
|
57
44
|
describe '#approve!' do
|
58
45
|
it "should update the database to show the dependency is approved" do
|
59
46
|
dependency = Dependency.create(name: "foo", version: '0.0.1')
|
60
|
-
dependency.approval = Approval.create(state: false)
|
61
|
-
dependency.save
|
62
47
|
dependency.approve!
|
63
48
|
dependency.reload.should be_approved
|
64
49
|
end
|
65
50
|
end
|
66
51
|
|
67
52
|
describe "#approved?" do
|
68
|
-
let(:
|
53
|
+
let(:not_manually_approved) { Dependency.create(name: 'some gem', manually_approved: false).reload }
|
54
|
+
let(:manually_approved) { Dependency.create(name: 'some gem', manually_approved: true).reload }
|
69
55
|
|
70
56
|
it "is true if its license is whitelisted" do
|
71
|
-
|
72
|
-
|
57
|
+
not_manually_approved.stub_chain(:license, whitelisted?: true)
|
58
|
+
not_manually_approved.should be_approved
|
73
59
|
end
|
74
60
|
|
75
61
|
it "is true if it has been approved" do
|
76
|
-
|
77
|
-
|
78
|
-
dependency.should be_approved
|
79
|
-
|
80
|
-
dependency.stub_chain(:approval, state: 1) # jruby
|
81
|
-
dependency.should be_approved
|
62
|
+
manually_approved.stub_chain(:license, whitelisted?: false)
|
63
|
+
manually_approved.should be_approved
|
82
64
|
end
|
83
65
|
|
84
66
|
it "is false otherwise" do
|
85
|
-
|
86
|
-
|
87
|
-
dependency.should_not be_approved
|
88
|
-
|
89
|
-
dependency.stub_chain(:approval, state: 0) # jruby
|
90
|
-
dependency.should_not be_approved
|
67
|
+
not_manually_approved.stub_chain(:license, whitelisted?: false)
|
68
|
+
not_manually_approved.should_not be_approved
|
91
69
|
end
|
92
70
|
end
|
93
71
|
|
@@ -102,11 +80,84 @@ module LicenseFinder
|
|
102
80
|
end
|
103
81
|
|
104
82
|
it "modifies the license" do
|
105
|
-
LicenseAlias.should_receive(:
|
83
|
+
LicenseAlias.should_receive(:named).with('Updated').and_return(license)
|
106
84
|
dependency.set_license_manually!('Updated')
|
107
85
|
dependency.reload.license.should == license
|
108
86
|
end
|
109
87
|
end
|
88
|
+
|
89
|
+
describe "#bundler_group_names=" do
|
90
|
+
let(:dependency) { Dependency.named('some gem') }
|
91
|
+
|
92
|
+
it "saves the bundler groups" do
|
93
|
+
dependency.bundler_group_names = %w[1 2 3]
|
94
|
+
dependency.bundler_groups.map(&:name).should =~ %w[1 2 3]
|
95
|
+
end
|
96
|
+
|
97
|
+
it "removed outdated groups and adds new groups" do
|
98
|
+
dependency.add_bundler_group BundlerGroup.named('old')
|
99
|
+
dependency.add_bundler_group BundlerGroup.named('maintained')
|
100
|
+
dependency.bundler_group_names = %w[new maintained]
|
101
|
+
dependency.bundler_groups.map(&:name).should =~ %w[new maintained]
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
describe "children_names=" do
|
106
|
+
let(:dependency) { Dependency.named('some gem') }
|
107
|
+
|
108
|
+
it "saves the children" do
|
109
|
+
dependency.children_names = %w[1 2 3]
|
110
|
+
dependency.children.map(&:name).should =~ %w[1 2 3]
|
111
|
+
end
|
112
|
+
|
113
|
+
it "removes outdated children and adds new children" do
|
114
|
+
dependency.add_child Dependency.named('old')
|
115
|
+
dependency.add_child Dependency.named('maintained')
|
116
|
+
dependency.children_names = %w[new maintained]
|
117
|
+
dependency.children.map(&:name).should =~ %w[new maintained]
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
describe "#apply_better_license" do
|
122
|
+
let(:dependency) { Dependency.named('some gem') }
|
123
|
+
|
124
|
+
it "keeps a manually assigned license" do
|
125
|
+
dependency.license = LicenseAlias.named("manual")
|
126
|
+
dependency.license_manual = true
|
127
|
+
|
128
|
+
dependency.apply_better_license "new"
|
129
|
+
dependency.license.name.should == "manual"
|
130
|
+
end
|
131
|
+
|
132
|
+
it "saves a new license" do
|
133
|
+
dependency.apply_better_license "new license"
|
134
|
+
dependency.license.name.should == "new license"
|
135
|
+
end
|
136
|
+
|
137
|
+
it "re-uses an existing, unassociated, license alias" do
|
138
|
+
dependency.license = LicenseAlias.named("old")
|
139
|
+
|
140
|
+
new_license = LicenseAlias.named("new license")
|
141
|
+
|
142
|
+
dependency.apply_better_license "new license"
|
143
|
+
dependency.license.should == new_license
|
144
|
+
end
|
145
|
+
|
146
|
+
it "updates the license's name" do
|
147
|
+
dependency.license = LicenseAlias.named("old")
|
148
|
+
|
149
|
+
dependency.apply_better_license "new license"
|
150
|
+
dependency.license.name.should == "new license"
|
151
|
+
end
|
152
|
+
|
153
|
+
it "does not change the approval" do
|
154
|
+
dependency.license = LicenseAlias.named("old")
|
155
|
+
dependency.manually_approved = true
|
156
|
+
|
157
|
+
dependency.apply_better_license "new license"
|
158
|
+
dependency.should be_approved
|
159
|
+
end
|
160
|
+
end
|
110
161
|
end
|
111
162
|
end
|
112
163
|
|
@@ -51,7 +51,7 @@ describe LicenseFinder::YmlToSql do
|
|
51
51
|
|
52
52
|
describe '.convert_all' do
|
53
53
|
before do
|
54
|
-
(DB.tables - [:schema_migrations]).each { |table| DB[table].truncate }
|
54
|
+
(LicenseFinder::DB.tables - [:schema_migrations]).each { |table| LicenseFinder::DB[table].truncate }
|
55
55
|
end
|
56
56
|
|
57
57
|
describe "when dependency source is set to bundle" do
|
@@ -61,26 +61,18 @@ describe LicenseFinder::YmlToSql do
|
|
61
61
|
described_class.convert_all([legacy_attributes])
|
62
62
|
|
63
63
|
saved_dep = described_class::Sql::Dependency.first
|
64
|
-
|
65
|
-
saved_dep.manual.should == 0
|
66
|
-
else
|
67
|
-
saved_dep.manual.should == false
|
68
|
-
end
|
64
|
+
saved_dep.should_not be_manual
|
69
65
|
end
|
70
66
|
end
|
71
67
|
|
72
68
|
describe "when dependency source is not set to bundle" do
|
73
69
|
let(:source) { "" }
|
74
70
|
|
75
|
-
it "sets manual to be
|
71
|
+
it "sets manual to be true" do
|
76
72
|
described_class.convert_all([legacy_attributes])
|
77
73
|
|
78
74
|
saved_dep = described_class::Sql::Dependency.first
|
79
|
-
|
80
|
-
saved_dep.manual.should == 1
|
81
|
-
else
|
82
|
-
saved_dep.manual.should == true
|
83
|
-
end
|
75
|
+
saved_dep.should be_manual
|
84
76
|
end
|
85
77
|
end
|
86
78
|
|
@@ -94,6 +86,7 @@ describe LicenseFinder::YmlToSql do
|
|
94
86
|
saved_dep.summary.should == "some summary"
|
95
87
|
saved_dep.description.should == "some description"
|
96
88
|
saved_dep.homepage.should == "www.homepage.com"
|
89
|
+
saved_dep.manually_approved.should be_true
|
97
90
|
end
|
98
91
|
|
99
92
|
it "associates the license to the dependency" do
|
data/spec/spec_helper.rb
CHANGED
@@ -6,6 +6,8 @@ require 'license_finder'
|
|
6
6
|
require 'rspec'
|
7
7
|
require 'webmock/rspec'
|
8
8
|
|
9
|
+
ENV['test_run'] = true.to_s
|
10
|
+
|
9
11
|
Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each do |file|
|
10
12
|
require file
|
11
13
|
end
|
@@ -15,8 +17,26 @@ RSpec.configure do |config|
|
|
15
17
|
end
|
16
18
|
|
17
19
|
RSpec.configure do |config|
|
18
|
-
config.before { FileUtils.rm_f("config/license_finder.yml") }
|
19
20
|
config.around do |example|
|
20
|
-
DB.transaction(rollback: :always) { example.run }
|
21
|
+
LicenseFinder::DB.transaction(rollback: :always) { example.run }
|
22
|
+
end
|
23
|
+
|
24
|
+
config.after(:suite) do
|
25
|
+
["./doc", "./elsewhere", "./test path", "./config"].each do |tmp_dir|
|
26
|
+
FileUtils.rm_rf(tmp_dir)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
module LicenseFinder
|
32
|
+
shared_examples "it conforms to interface required by PackageSaver" do
|
33
|
+
it { expect { subject.name }.to_not raise_error }
|
34
|
+
it { expect { subject.version }.to_not raise_error }
|
35
|
+
it { expect { subject.summary }.to_not raise_error }
|
36
|
+
it { expect { subject.description }.to_not raise_error }
|
37
|
+
it { expect { subject.homepage }.to_not raise_error }
|
38
|
+
it { expect { subject.groups }.to_not raise_error }
|
39
|
+
it { expect { subject.children }.to_not raise_error }
|
40
|
+
it { expect { subject.license }.to_not raise_error }
|
21
41
|
end
|
22
42
|
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: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
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-01-
|
19
|
+
date: 2014-01-30 00:00:00.000000000 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: bundler
|
@@ -78,16 +78,16 @@ dependencies:
|
|
78
78
|
name: httparty
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0
|
83
|
+
version: '0'
|
84
84
|
type: :runtime
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0
|
90
|
+
version: '0'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: sqlite3
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -235,12 +235,15 @@ files:
|
|
235
235
|
- db/migrate/201307251004_data_fix_manual_licenses.rb
|
236
236
|
- db/migrate/201307251107_reassociate_license.rb
|
237
237
|
- db/migrate/201307251340_remove_manual_from_license_aliases.rb
|
238
|
+
- db/migrate/201311192002_add_manually_approved_to_dependencies.rb
|
239
|
+
- db/migrate/201311192003_reassociate_manual_approval.rb
|
240
|
+
- db/migrate/201311192010_drop_approvals.rb
|
238
241
|
- features/approve_dependencies.feature
|
239
242
|
- features/cli.feature
|
240
243
|
- features/html_report.feature
|
241
244
|
- features/ignore_bundle_groups.feature
|
245
|
+
- features/manually_managed_dependencies.feature
|
242
246
|
- features/node_dependencies.feature
|
243
|
-
- features/non_bundler_dependencies.feature
|
244
247
|
- features/project_name.feature
|
245
248
|
- features/python_dependencies.feature
|
246
249
|
- features/rails_rake.feature
|
@@ -249,8 +252,8 @@ files:
|
|
249
252
|
- features/step_definitions/cli_steps.rb
|
250
253
|
- features/step_definitions/html_report_steps.rb
|
251
254
|
- features/step_definitions/ignore_bundle_groups_steps.rb
|
255
|
+
- features/step_definitions/manually_managed_steps.rb
|
252
256
|
- features/step_definitions/node_steps.rb
|
253
|
-
- features/step_definitions/non_bundler_steps.rb
|
254
257
|
- features/step_definitions/project_name_steps.rb
|
255
258
|
- features/step_definitions/python_steps.rb
|
256
259
|
- features/step_definitions/rails_rake_steps.rb
|
@@ -275,7 +278,9 @@ files:
|
|
275
278
|
- lib/data/licenses/SimplifiedBSD.txt
|
276
279
|
- lib/license_finder.rb
|
277
280
|
- lib/license_finder/bower.rb
|
278
|
-
- lib/license_finder/
|
281
|
+
- lib/license_finder/bower_package.rb
|
282
|
+
- lib/license_finder/bundler.rb
|
283
|
+
- lib/license_finder/bundler_package.rb
|
279
284
|
- lib/license_finder/cli.rb
|
280
285
|
- lib/license_finder/configuration.rb
|
281
286
|
- lib/license_finder/dependency_manager.rb
|
@@ -292,9 +297,11 @@ files:
|
|
292
297
|
- lib/license_finder/license/simplified_bsd.rb
|
293
298
|
- lib/license_finder/license_url.rb
|
294
299
|
- lib/license_finder/npm.rb
|
300
|
+
- lib/license_finder/npm_package.rb
|
295
301
|
- lib/license_finder/package.rb
|
296
302
|
- lib/license_finder/package_saver.rb
|
297
303
|
- lib/license_finder/pip.rb
|
304
|
+
- lib/license_finder/pip_package.rb
|
298
305
|
- lib/license_finder/platform.rb
|
299
306
|
- lib/license_finder/possible_license_file.rb
|
300
307
|
- lib/license_finder/possible_license_files.rb
|
@@ -306,7 +313,6 @@ files:
|
|
306
313
|
- lib/license_finder/reports/reporter.rb
|
307
314
|
- lib/license_finder/reports/text_report.rb
|
308
315
|
- lib/license_finder/tables.rb
|
309
|
-
- lib/license_finder/tables/approval.rb
|
310
316
|
- lib/license_finder/tables/bundler_group.rb
|
311
317
|
- lib/license_finder/tables/dependency.rb
|
312
318
|
- lib/license_finder/tables/license_alias.rb
|
@@ -345,8 +351,10 @@ files:
|
|
345
351
|
- spec/fixtures/readme/README
|
346
352
|
- spec/fixtures/readme/Readme.markdown
|
347
353
|
- spec/fixtures/utf8_gem/README
|
354
|
+
- spec/lib/license_finder/bower_package_spec.rb
|
348
355
|
- spec/lib/license_finder/bower_spec.rb
|
349
|
-
- spec/lib/license_finder/
|
356
|
+
- spec/lib/license_finder/bundler_package_spec.rb
|
357
|
+
- spec/lib/license_finder/bundler_spec.rb
|
350
358
|
- spec/lib/license_finder/cli_spec.rb
|
351
359
|
- spec/lib/license_finder/configuration_spec.rb
|
352
360
|
- spec/lib/license_finder/dependency_manager_spec.rb
|
@@ -365,9 +373,10 @@ files:
|
|
365
373
|
- spec/lib/license_finder/license_spec.rb
|
366
374
|
- spec/lib/license_finder/license_url_spec.rb
|
367
375
|
- spec/lib/license_finder/markdown_report_spec.rb
|
376
|
+
- spec/lib/license_finder/npm_package_spec.rb
|
368
377
|
- spec/lib/license_finder/npm_spec.rb
|
369
378
|
- spec/lib/license_finder/package_saver_spec.rb
|
370
|
-
- spec/lib/license_finder/
|
379
|
+
- spec/lib/license_finder/pip_package_spec.rb
|
371
380
|
- spec/lib/license_finder/pip_spec.rb
|
372
381
|
- spec/lib/license_finder/possible_license_file_spec.rb
|
373
382
|
- spec/lib/license_finder/possible_license_files_spec.rb
|
@@ -392,7 +401,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
392
401
|
requirements:
|
393
402
|
- - ">="
|
394
403
|
- !ruby/object:Gem::Version
|
395
|
-
version: 1.9.
|
404
|
+
version: 1.9.3
|
396
405
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
397
406
|
requirements:
|
398
407
|
- - ">="
|
@@ -400,7 +409,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
400
409
|
version: '0'
|
401
410
|
requirements: []
|
402
411
|
rubyforge_project:
|
403
|
-
rubygems_version: 2.2.
|
412
|
+
rubygems_version: 2.2.1
|
404
413
|
signing_key:
|
405
414
|
specification_version: 4
|
406
415
|
summary: Audit the OSS licenses of your application's dependencies.
|
@@ -409,8 +418,8 @@ test_files:
|
|
409
418
|
- features/cli.feature
|
410
419
|
- features/html_report.feature
|
411
420
|
- features/ignore_bundle_groups.feature
|
421
|
+
- features/manually_managed_dependencies.feature
|
412
422
|
- features/node_dependencies.feature
|
413
|
-
- features/non_bundler_dependencies.feature
|
414
423
|
- features/project_name.feature
|
415
424
|
- features/python_dependencies.feature
|
416
425
|
- features/rails_rake.feature
|
@@ -419,8 +428,8 @@ test_files:
|
|
419
428
|
- features/step_definitions/cli_steps.rb
|
420
429
|
- features/step_definitions/html_report_steps.rb
|
421
430
|
- features/step_definitions/ignore_bundle_groups_steps.rb
|
431
|
+
- features/step_definitions/manually_managed_steps.rb
|
422
432
|
- features/step_definitions/node_steps.rb
|
423
|
-
- features/step_definitions/non_bundler_steps.rb
|
424
433
|
- features/step_definitions/project_name_steps.rb
|
425
434
|
- features/step_definitions/python_steps.rb
|
426
435
|
- features/step_definitions/rails_rake_steps.rb
|
@@ -455,8 +464,10 @@ test_files:
|
|
455
464
|
- spec/fixtures/readme/README
|
456
465
|
- spec/fixtures/readme/Readme.markdown
|
457
466
|
- spec/fixtures/utf8_gem/README
|
467
|
+
- spec/lib/license_finder/bower_package_spec.rb
|
458
468
|
- spec/lib/license_finder/bower_spec.rb
|
459
|
-
- spec/lib/license_finder/
|
469
|
+
- spec/lib/license_finder/bundler_package_spec.rb
|
470
|
+
- spec/lib/license_finder/bundler_spec.rb
|
460
471
|
- spec/lib/license_finder/cli_spec.rb
|
461
472
|
- spec/lib/license_finder/configuration_spec.rb
|
462
473
|
- spec/lib/license_finder/dependency_manager_spec.rb
|
@@ -475,9 +486,10 @@ test_files:
|
|
475
486
|
- spec/lib/license_finder/license_spec.rb
|
476
487
|
- spec/lib/license_finder/license_url_spec.rb
|
477
488
|
- spec/lib/license_finder/markdown_report_spec.rb
|
489
|
+
- spec/lib/license_finder/npm_package_spec.rb
|
478
490
|
- spec/lib/license_finder/npm_spec.rb
|
479
491
|
- spec/lib/license_finder/package_saver_spec.rb
|
480
|
-
- spec/lib/license_finder/
|
492
|
+
- spec/lib/license_finder/pip_package_spec.rb
|
481
493
|
- spec/lib/license_finder/pip_spec.rb
|
482
494
|
- spec/lib/license_finder/possible_license_file_spec.rb
|
483
495
|
- spec/lib/license_finder/possible_license_files_spec.rb
|