license_finder 1.2 → 2.0.0.rc2

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