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.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/.force-build +0 -0
  3. data/.travis.yml +8 -7
  4. data/CHANGELOG.rdoc +29 -1
  5. data/Rakefile +2 -2
  6. data/db/migrate/201311192003_reassociate_manual_approval.rb +2 -3
  7. data/db/migrate/201403181732_rename_manual_fields.rb +10 -0
  8. data/db/migrate/201403190028_add_manual_approvals.rb +22 -0
  9. data/db/migrate/201403191419_add_timestamps_to_manual_approvals.rb +15 -0
  10. data/db/migrate/201403191645_remove_license_aliases.rb +23 -0
  11. data/features/cli.feature +21 -20
  12. data/features/cocoapods_dependencies.feature +10 -0
  13. data/features/configure_bundler_groups.feature +23 -0
  14. data/features/configure_ignore_dependencies.feature +16 -0
  15. data/features/{project_name.feature → configure_project_name.feature} +1 -1
  16. data/features/{whitelist.feature → configure_whitelist.feature} +6 -6
  17. data/features/manually_added.feature +19 -0
  18. data/features/{approve_dependencies.feature → manually_approved.feature} +2 -2
  19. data/features/manually_assigned_license.feature +16 -0
  20. data/features/{text_report.feature → report_csv.feature} +2 -2
  21. data/features/{html_report.feature → report_html.feature} +2 -2
  22. data/features/step_definitions/cli_steps.rb +22 -32
  23. data/features/step_definitions/cocoapod_steps.rb +8 -0
  24. data/features/step_definitions/configure_bundler_groups_steps.rb +30 -0
  25. data/features/step_definitions/configure_ignore_dependencies.rb +35 -0
  26. data/features/step_definitions/{project_name_steps.rb → configure_project_name_steps.rb} +0 -0
  27. data/features/step_definitions/configure_whitelist_steps.rb +45 -0
  28. data/features/step_definitions/gradle_steps.rb +2 -2
  29. data/features/step_definitions/manually_added_steps.rb +28 -0
  30. data/features/step_definitions/manually_approved_steps.rb +24 -0
  31. data/features/step_definitions/manually_assigned_license_steps.rb +34 -0
  32. data/features/step_definitions/maven_steps.rb +2 -2
  33. data/features/step_definitions/node_steps.rb +2 -2
  34. data/features/step_definitions/python_steps.rb +1 -1
  35. data/features/step_definitions/report_csv_steps.rb +20 -0
  36. data/features/step_definitions/report_html_steps.rb +60 -0
  37. data/features/step_definitions/shared_steps.rb +125 -104
  38. data/{files/license_finder.yml → lib/data/license_finder.example.yml} +3 -0
  39. data/lib/license_finder.rb +3 -2
  40. data/lib/license_finder/cli.rb +94 -49
  41. data/lib/license_finder/configuration.rb +21 -14
  42. data/lib/license_finder/dependency_manager.rb +27 -19
  43. data/lib/license_finder/license.rb +33 -19
  44. data/lib/license_finder/license/definitions.rb +153 -104
  45. data/lib/license_finder/license/matcher.rb +6 -1
  46. data/lib/license_finder/license/none_matcher.rb +9 -0
  47. data/lib/license_finder/license/text.rb +1 -0
  48. data/lib/license_finder/package.rb +30 -6
  49. data/lib/license_finder/package_managers/bower.rb +2 -2
  50. data/lib/license_finder/package_managers/bower_package.rb +2 -2
  51. data/lib/license_finder/package_managers/bundler.rb +9 -17
  52. data/lib/license_finder/package_managers/bundler_package.rb +1 -1
  53. data/lib/license_finder/package_managers/cocoa_pods.rb +35 -0
  54. data/lib/license_finder/package_managers/cocoa_pods_package.rb +19 -0
  55. data/lib/license_finder/package_managers/gradle.rb +9 -5
  56. data/lib/license_finder/package_managers/gradle_package.rb +4 -4
  57. data/lib/license_finder/package_managers/maven.rb +7 -3
  58. data/lib/license_finder/package_managers/maven_package.rb +5 -5
  59. data/lib/license_finder/package_managers/npm.rb +2 -2
  60. data/lib/license_finder/package_managers/npm_package.rb +2 -2
  61. data/lib/license_finder/package_managers/pip.rb +2 -2
  62. data/lib/license_finder/package_managers/pip_package.rb +7 -11
  63. data/lib/license_finder/package_saver.rb +12 -10
  64. data/lib/license_finder/possible_license_file.rb +1 -1
  65. data/lib/license_finder/possible_license_files.rb +11 -15
  66. data/lib/license_finder/reports/formatted_report.rb +25 -6
  67. data/lib/license_finder/reports/html_report.rb +2 -1
  68. data/lib/license_finder/reports/reporter.rb +3 -3
  69. data/lib/license_finder/tables.rb +6 -4
  70. data/lib/license_finder/tables/dependency.rb +36 -16
  71. data/lib/license_finder/tables/manual_approval.rb +13 -0
  72. data/lib/license_finder/yml_to_sql.rb +12 -9
  73. data/lib/templates/html_report.erb +68 -74
  74. data/lib/templates/markdown_report.erb +20 -21
  75. data/license_finder.gemspec +7 -7
  76. data/readme.md +76 -79
  77. data/spec/fixtures/Podfile +3 -0
  78. data/spec/lib/license_finder/cli_spec.rb +71 -23
  79. data/spec/lib/license_finder/configuration_spec.rb +61 -21
  80. data/spec/lib/license_finder/dependency_manager_spec.rb +52 -33
  81. data/spec/lib/license_finder/license/definitions_spec.rb +30 -14
  82. data/spec/lib/license_finder/license_spec.rb +55 -12
  83. data/spec/lib/license_finder/package_managers/bower_package_spec.rb +38 -19
  84. data/spec/lib/license_finder/package_managers/bower_spec.rb +10 -16
  85. data/spec/lib/license_finder/package_managers/bundler_package_spec.rb +39 -15
  86. data/spec/lib/license_finder/package_managers/bundler_spec.rb +10 -22
  87. data/spec/lib/license_finder/package_managers/cocoa_pods_package_spec.rb +44 -0
  88. data/spec/lib/license_finder/package_managers/cocoa_pods_spec.rb +79 -0
  89. data/spec/lib/license_finder/package_managers/gradle_package_spec.rb +4 -5
  90. data/spec/lib/license_finder/package_managers/gradle_spec.rb +26 -20
  91. data/spec/lib/license_finder/package_managers/maven_package_spec.rb +4 -5
  92. data/spec/lib/license_finder/package_managers/maven_spec.rb +16 -19
  93. data/spec/lib/license_finder/package_managers/npm_package_spec.rb +39 -19
  94. data/spec/lib/license_finder/package_managers/npm_spec.rb +10 -16
  95. data/spec/lib/license_finder/package_managers/pip_package_spec.rb +8 -8
  96. data/spec/lib/license_finder/package_managers/pip_spec.rb +10 -16
  97. data/spec/lib/license_finder/package_saver_spec.rb +27 -3
  98. data/spec/lib/license_finder/possible_license_file_spec.rb +25 -23
  99. data/spec/lib/license_finder/reports/detailed_text_report_spec.rb +6 -8
  100. data/spec/lib/license_finder/reports/html_report_spec.rb +45 -44
  101. data/spec/lib/license_finder/reports/markdown_report_spec.rb +8 -9
  102. data/spec/lib/license_finder/reports/reporter_spec.rb +1 -1
  103. data/spec/lib/license_finder/reports/text_report_spec.rb +6 -8
  104. data/spec/lib/license_finder/tables/dependency_spec.rb +57 -41
  105. data/spec/lib/license_finder/yml_to_sql_spec.rb +94 -92
  106. data/spec/spec_helper.rb +1 -0
  107. data/spec/support/stdout_helpers.rb +25 -0
  108. metadata +86 -69
  109. data/MIT.LICENSE +0 -20
  110. data/features/ignore_bundle_groups.feature +0 -23
  111. data/features/manually_managed_dependencies.feature +0 -19
  112. data/features/set_license.feature +0 -10
  113. data/features/step_definitions/approve_dependencies_steps.rb +0 -25
  114. data/features/step_definitions/html_report_steps.rb +0 -62
  115. data/features/step_definitions/ignore_bundle_groups_steps.rb +0 -29
  116. data/features/step_definitions/manually_managed_steps.rb +0 -33
  117. data/features/step_definitions/set_license_steps.rb +0 -20
  118. data/features/step_definitions/text_report_steps.rb +0 -19
  119. data/features/step_definitions/whitelist_steps.rb +0 -45
  120. data/files/dependency_breakdown.png +0 -0
  121. data/files/report_breakdown.png +0 -0
  122. data/lib/license_finder/license_url.rb +0 -9
  123. data/lib/license_finder/tables/license_alias.rb +0 -22
  124. data/spec/lib/license_finder/license_url_spec.rb +0 -16
  125. data/spec/lib/license_finder/tables/license_alias_spec.rb +0 -37
  126. data/spec/support/silence_stdout.rb +0 -13
@@ -1,121 +1,123 @@
1
1
  require "spec_helper"
2
2
 
3
- describe LicenseFinder::YmlToSql do
4
- let(:legacy_attributes) do
5
- {
6
- 'name' => "spec_name",
7
- 'version' => "2.1.3",
8
- 'license' => "GPLv2",
9
- 'license_url' => "www.license_url.org",
10
- 'approved' => true,
11
- 'summary' => "some summary",
12
- 'description' => "some description",
13
- 'homepage' => 'www.homepage.com',
14
- 'children' => ["child1_name"],
15
- 'parents' => ["parent1_name"],
16
- 'bundler_groups' => [:test],
17
- 'source' => source,
18
-
19
- 'notes' => 'some notes',
20
- 'license_files' => ['/Users/pivotal/foo/lic1', '/Users/pivotal/bar/lic2'],
21
- }
22
- end
23
- let(:source) { nil }
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
- describe ".needs_conversion?" do
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
- described_class.needs_conversion?.should be_true
31
- end
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
- it "is false otherwise" do
34
- yaml_file = double(:yaml_file, :exist? => false)
35
- LicenseFinder.config.artifacts.stub(legacy_yaml_file: yaml_file)
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
- described_class.needs_conversion?.should be_false
39
+ described_class.needs_conversion?.should be_falsey
40
+ end
38
41
  end
39
- end
40
42
 
41
- describe ".remove_yml" do
42
- it "removes the yml file" do
43
- yaml_file = double(:yaml_file)
44
- LicenseFinder.config.artifacts.stub(legacy_yaml_file: yaml_file)
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
- yaml_file.should_receive(:delete)
47
- described_class.remove_yml
48
+ yaml_file.should_receive(:delete)
49
+ described_class.remove_yml
50
+ end
48
51
  end
49
- end
50
52
 
51
- describe '.convert_all' do
52
- before do
53
- (LicenseFinder::DB.tables - [:schema_migrations]).each { |table| LicenseFinder::DB[table].truncate }
54
- end
53
+ describe '.convert_all' do
54
+ before do
55
+ (DB.tables - [:schema_migrations]).each { |table| DB[table].truncate }
56
+ end
55
57
 
56
- describe "when dependency source is set to bundle" do
57
- let(:source) { "bundle" }
58
+ describe "when dependency source is set to bundle" do
59
+ let(:source) { "bundle" }
58
60
 
59
- it "sets manual to be false" do
60
- described_class.convert_all([legacy_attributes])
61
+ it "sets manual to be false" do
62
+ described_class.convert_all([legacy_attributes])
61
63
 
62
- saved_dep = described_class::Sql::Dependency.first
63
- saved_dep.should_not be_manual
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
- describe "when dependency source is not set to bundle" do
68
- let(:source) { "" }
69
+ describe "when dependency source is not set to bundle" do
70
+ let(:source) { "" }
69
71
 
70
- it "sets manual to be true" do
71
- described_class.convert_all([legacy_attributes])
72
+ it "sets manual to be true" do
73
+ described_class.convert_all([legacy_attributes])
72
74
 
73
- saved_dep = described_class::Sql::Dependency.first
74
- saved_dep.should be_manual
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
- it "persists all of the dependency's attributes" do
79
- described_class.convert_all([legacy_attributes])
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
- it "associates the license to the dependency" do
92
- described_class.convert_all([legacy_attributes])
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
- saved_dep = described_class::Sql::Dependency.first
95
- saved_dep.license.name.should == "GPLv2"
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
- it "associates bundler groups" do
100
- described_class.convert_all([legacy_attributes])
96
+ saved_dep = described_class::Sql::Dependency.first
97
+ saved_dep.license_name.should == "GPLv2"
98
+ end
101
99
 
102
- saved_dep = described_class::Sql::Dependency.first
103
- saved_dep.bundler_groups.count.should == 1
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
- it "associates children" do
108
- child_attrs = {
109
- 'name' => 'child1_name',
110
- 'version' => '0.0.1',
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
- described_class::Sql::Dependency.count.should == 2
116
- saved_dep = described_class::Sql::Dependency.first(name: 'spec_name')
117
- saved_dep.children.count.should == 1
118
- saved_dep.children.first.name.should == 'child1_name'
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
@@ -5,6 +5,7 @@ require 'pry'
5
5
  require 'license_finder'
6
6
  require 'rspec'
7
7
  require 'webmock/rspec'
8
+ require 'rspec/its'
8
9
 
9
10
  ENV['test_run'] = true.to_s
10
11
 
@@ -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.0.0.0
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-04-03 00:00:00.000000000 Z
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: rspec
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: xpath
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: cucumber
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: pry
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: capybara
165
+ name: pry
163
166
  version_requirements: !ruby/object:Gem::Requirement
164
167
  requirements:
165
- - - ~>
168
+ - - '>='
166
169
  - !ruby/object:Gem::Version
167
- version: 2.0.0
170
+ version: '0'
168
171
  requirement: !ruby/object:Gem::Requirement
169
172
  requirements:
170
- - - ~>
173
+ - - '>='
171
174
  - !ruby/object:Gem::Version
172
- version: 2.0.0
175
+ version: '0'
173
176
  prerelease: false
174
177
  type: :development
175
178
  - !ruby/object:Gem::Dependency
176
- name: rails
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.2.0
184
+ version: '3'
182
185
  requirement: !ruby/object:Gem::Requirement
183
186
  requirements:
184
187
  - - ~>
185
188
  - !ruby/object:Gem::Version
186
- version: 3.2.0
189
+ version: '3'
187
190
  prerelease: false
188
191
  type: :development
189
192
  - !ruby/object:Gem::Dependency
190
- name: webmock
193
+ name: capybara
191
194
  version_requirements: !ruby/object:Gem::Requirement
192
195
  requirements:
193
196
  - - ~>
194
197
  - !ruby/object:Gem::Version
195
- version: '1.13'
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: '1.13'
203
+ version: 2.0.0
201
204
  prerelease: false
202
205
  type: :development
203
206
  - !ruby/object:Gem::Dependency
204
- name: rake
207
+ name: webmock
205
208
  version_requirements: !ruby/object:Gem::Requirement
206
209
  requirements:
207
- - - '>='
210
+ - - ~>
208
211
  - !ruby/object:Gem::Version
209
- version: '0'
212
+ version: '1.13'
210
213
  requirement: !ruby/object:Gem::Requirement
211
214
  requirements:
212
- - - '>='
215
+ - - ~>
213
216
  - !ruby/object:Gem::Version
214
- version: '0'
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 Gemfile, detects the licenses of the gems in it, and gives you a report that you can act on. If you already know
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
- - licensefinder@pivotalabs.com
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
- - features/approve_dependencies.feature
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/html_report.feature
261
- - features/ignore_bundle_groups.feature
262
- - features/manually_managed_dependencies.feature
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/set_license.feature
268
- - features/step_definitions/approve_dependencies_steps.rb
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/html_report_steps.rb
272
- - features/step_definitions/ignore_bundle_groups_steps.rb
273
- - features/step_definitions/manually_managed_steps.rb
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/set_license_steps.rb
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
- - features/step_definitions/text_report_steps.rb
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/license_alias.rb
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/silence_stdout.rb
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.2.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/html_report.feature
434
- - features/ignore_bundle_groups.feature
435
- - features/manually_managed_dependencies.feature
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/set_license.feature
441
- - features/step_definitions/approve_dependencies_steps.rb
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/html_report_steps.rb
445
- - features/step_definitions/ignore_bundle_groups_steps.rb
446
- - features/step_definitions/manually_managed_steps.rb
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/set_license_steps.rb
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/silence_stdout.rb
532
+ - spec/support/stdout_helpers.rb