license_finder 0.4.5 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/README.markdown +43 -11
  2. data/bin/license_finder +2 -5
  3. data/features/executables/license_finder.feature +19 -0
  4. data/features/rake_tasks/action_items.feature +18 -4
  5. data/features/rake_tasks/action_items_ok.feature +10 -7
  6. data/features/rake_tasks/generate_dependencies.feature +43 -12
  7. data/features/rake_tasks/init.feature +8 -1
  8. data/features/rake_tasks/regressions.feature +18 -0
  9. data/features/step_definitions/steps.rb +163 -43
  10. data/lib/license_finder.rb +9 -4
  11. data/lib/license_finder/{gem_spec_details.rb → bundled_gem.rb} +12 -41
  12. data/lib/license_finder/bundler_dependency_query.rb +51 -0
  13. data/lib/license_finder/cli.rb +16 -0
  14. data/lib/license_finder/dependency.rb +80 -28
  15. data/lib/license_finder/dependency_list.rb +20 -35
  16. data/lib/license_finder/finder.rb +2 -2
  17. data/lib/license_finder/license.rb +74 -0
  18. data/lib/license_finder/license/apache.rb +5 -0
  19. data/lib/license_finder/license/bsd.rb +2 -0
  20. data/lib/license_finder/license/gplv2.rb +2 -0
  21. data/lib/license_finder/license/isc.rb +2 -0
  22. data/lib/license_finder/license/lgpl.rb +2 -0
  23. data/lib/license_finder/license/mit.rb +20 -0
  24. data/lib/license_finder/license/new_bsd.rb +5 -0
  25. data/lib/license_finder/license/ruby.rb +11 -0
  26. data/lib/license_finder/license/simplified_bsd.rb +5 -0
  27. data/lib/license_finder/{file_parser.rb → possible_license_file.rb} +9 -17
  28. data/lib/tasks/license_finder.rake +8 -8
  29. data/lib/templates/{Apache-2.0-body → Apache.txt} +0 -0
  30. data/lib/templates/BSD.txt +24 -0
  31. data/lib/templates/{GPL-2.0-body → GPLv2.txt} +0 -0
  32. data/lib/templates/{ISC-body → ISC.txt} +0 -0
  33. data/lib/templates/{LGPL-body → LGPL.txt} +0 -0
  34. data/lib/templates/{MIT-body → MIT.txt} +0 -0
  35. data/lib/templates/NewBSD.txt +21 -0
  36. data/lib/templates/Ruby.txt +52 -0
  37. data/lib/templates/SimplifiedBSD.txt +23 -0
  38. data/license_finder.gemspec +4 -3
  39. data/spec/fixtures/{no_license/.gitkeep → license_names/Licence.rdoc} +0 -0
  40. data/spec/lib/license_finder/bundled_gem_spec.rb +148 -0
  41. data/spec/lib/license_finder/dependency_list_spec.rb +133 -144
  42. data/spec/lib/license_finder/dependency_spec.rb +189 -5
  43. data/spec/lib/license_finder/license/apache_spec.rb +7 -0
  44. data/spec/lib/license_finder/license/bsd_spec.rb +41 -0
  45. data/spec/lib/license_finder/license/gplv2_spec.rb +7 -0
  46. data/spec/lib/license_finder/license/isc_spec.rb +7 -0
  47. data/spec/lib/license_finder/license/lgpl_spec.rb +7 -0
  48. data/spec/lib/license_finder/license/mit_spec.rb +33 -0
  49. data/spec/lib/license_finder/license/new_bsd_spec.rb +35 -0
  50. data/spec/lib/license_finder/license/ruby_spec.rb +19 -0
  51. data/spec/lib/license_finder/license/simplified_bsd_spec.rb +7 -0
  52. data/spec/lib/license_finder/possible_license_file_spec.rb +42 -0
  53. data/spec/spec_helper.rb +6 -0
  54. data/spec/support/license_examples.rb +24 -0
  55. metadata +89 -33
  56. data/lib/license_finder/license_file.rb +0 -98
  57. data/spec/fixtures/apache_licensed_gem/LICENSE +0 -191
  58. data/spec/fixtures/gplv2_licensed_gem/LICENSE +0 -339
  59. data/spec/fixtures/isc_licensed_gem/LICENSE +0 -10
  60. data/spec/fixtures/lgpl_licensed_gem/LICENSE +0 -165
  61. data/spec/fixtures/mit_licensed_gem_in_README/README.rdoc +0 -222
  62. data/spec/fixtures/mit_licensed_gem_via_url/README +0 -210
  63. data/spec/fixtures/mit_licensed_with_hashes/MIT-LICENSE +0 -20
  64. data/spec/lib/license_finder/file_parser_spec.rb +0 -16
  65. data/spec/lib/license_finder/gem_spec_details_spec.rb +0 -229
  66. data/spec/lib/license_finder/license_file_spec.rb +0 -155
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe LicenseFinder::License::Apache do
4
+ subject { LicenseFinder::License::Apache.new("") }
5
+
6
+ it_behaves_like "a license matcher"
7
+ end
@@ -0,0 +1,41 @@
1
+ require 'spec_helper'
2
+
3
+ describe LicenseFinder::License::BSD do
4
+ subject { LicenseFinder::License::BSD.new("") }
5
+
6
+ it_behaves_like "a license matcher"
7
+
8
+ it "should match regardless of organization or copyright holder names or quotes" do
9
+ license = LicenseFinder::License::BSD.new <<-LICENSE
10
+ Copyright (c) 2000, Widgets, Inc.
11
+ All rights reserved.
12
+
13
+ Redistribution and use in source and binary forms, with or without
14
+ modification, are permitted provided that the following conditions are met:
15
+ 1. Redistributions of source code must retain the above copyright
16
+ notice, this list of conditions and the following disclaimer.
17
+ 2. Redistributions in binary form must reproduce the above copyright
18
+ notice, this list of conditions and the following disclaimer in the
19
+ documentation and/or other materials provided with the distribution.
20
+ 3. All advertising materials mentioning features or use of this software
21
+ must display the following acknowledgement:
22
+ This product includes software developed by <organization>.
23
+ 4. Neither the name of foo bar *%*%*%*% nor the
24
+ names of its contributors may be used to endorse or promote products
25
+ derived from this software without specific prior written permission.
26
+
27
+ THIS SOFTWARE IS PROVIDED BY awesome *$*$* copyright name 'AS IS' AND ANY
28
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
31
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
33
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
34
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37
+ LICENSE
38
+
39
+ license.should be_matches
40
+ end
41
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe LicenseFinder::License::GPLv2 do
4
+ subject { LicenseFinder::License::GPLv2.new("") }
5
+
6
+ it_behaves_like "a license matcher"
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe LicenseFinder::License::ISC do
4
+ subject { LicenseFinder::License::ISC.new("") }
5
+
6
+ it_behaves_like "a license matcher"
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe LicenseFinder::License::LGPL do
4
+ subject { LicenseFinder::License::LGPL.new("") }
5
+
6
+ it_behaves_like "a license matcher"
7
+ end
@@ -0,0 +1,33 @@
1
+ require 'spec_helper'
2
+
3
+ describe LicenseFinder::License::MIT do
4
+ subject { LicenseFinder::License::MIT.new("") }
5
+
6
+ it_behaves_like "a license matcher"
7
+
8
+ describe "#matches?" do
9
+ it "should return true if the text contains the MIT url" do
10
+ subject.text = "MIT License is awesome http://www.opensource.org/licenses/mit-license"
11
+ should be_matches
12
+
13
+ subject.text = "MIT Licence is awesome http://www.opensource.org/licenses/mit-license"
14
+ should be_matches
15
+ end
16
+
17
+ it "should return true if the text contains 'The MIT License'" do
18
+ subject.text = "The MIT License"
19
+ should be_matches
20
+
21
+ subject.text = "The MIT Licence"
22
+ should be_matches
23
+ end
24
+
25
+ it "should return true if the text contains 'is released under the MIT license'" do
26
+ subject.text = "is released under the MIT license"
27
+ should be_matches
28
+
29
+ subject.text = "is released under the MIT licence"
30
+ should be_matches
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ describe LicenseFinder::License::NewBSD do
4
+ subject { LicenseFinder::License::NewBSD.new("") }
5
+
6
+ it_behaves_like "a license matcher"
7
+
8
+ it "should match regardless of organization or copyright holder names" do
9
+ license = LicenseFinder::License::NewBSD.new <<-LICENSE
10
+ Redistribution and use in source and binary forms, with or without
11
+ modification, are permitted provided that the following conditions are met:
12
+ * Redistributions of source code must retain the above copyright
13
+ notice, this list of conditions and the following disclaimer.
14
+ * Redistributions in binary form must reproduce the above copyright
15
+ notice, this list of conditions and the following disclaimer in the
16
+ documentation and/or other materials provided with the distribution.
17
+ * Neither the name of Johnny %$#!.43298432, Guitar INC! nor the
18
+ names of its contributors may be used to endorse or promote products
19
+ derived from this software without specific prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
+ DISCLAIMED. IN NO EVENT SHALL Johnny %$#!.43298432, Guitar BE LIABLE FOR ANY
25
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
28
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ LICENSE
32
+
33
+ license.should be_matches
34
+ end
35
+ end
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ describe LicenseFinder::License::Ruby do
4
+ subject { LicenseFinder::License::Ruby.new("") }
5
+
6
+ it_behaves_like "a license matcher"
7
+
8
+ describe "#matches?" do
9
+ it "should return true when the Ruby license URL is present" do
10
+ subject.text = "This gem is available under the following license:\nhttp://www.ruby-lang.org/en/LICENSE.txt\nOkay?"
11
+ should be_matches
12
+ end
13
+
14
+ it "should return false when the Ruby License URL is not present" do
15
+ subject.text = "This gem is available under the following license:\nhttp://www.example.com\nOkay?"
16
+ should_not be_matches
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe LicenseFinder::License::SimplifiedBSD do
4
+ subject { LicenseFinder::License::SimplifiedBSD.new("") }
5
+
6
+ it_behaves_like "a license matcher"
7
+ end
@@ -0,0 +1,42 @@
1
+ require 'spec_helper'
2
+
3
+ describe LicenseFinder::PossibleLicenseFile do
4
+ context "file parsing" do
5
+ subject { LicenseFinder::PossibleLicenseFile.new('root', 'root/nested/path') }
6
+
7
+ context "ignoring text" do
8
+ before do
9
+ stub(IO).read { "file text" }
10
+ stub(IO).binread { "file text" }
11
+ end
12
+
13
+ its(:file_path) { should == 'nested/path' }
14
+ its(:file_name) { should == 'path' }
15
+ its(:text) { should == 'file text' }
16
+ end
17
+ end
18
+
19
+ subject { LicenseFinder::PossibleLicenseFile.new('gem', 'gem/license/path') }
20
+
21
+ context "with a known license" do
22
+ before do
23
+ stub(IO).read { "a known license" }
24
+ stub(IO).binread { "a known license" }
25
+
26
+ stub(LicenseFinder::License::MIT).new("a known license").stub!.matches? { true }
27
+ end
28
+
29
+ its(:license) { should == "MIT" }
30
+ end
31
+
32
+ context "with an unknown license" do
33
+ before do
34
+ stub(IO).read { "" }
35
+ stub(IO).binread { "" }
36
+
37
+ any_instance_of(LicenseFinder::License::Base, :matches? => false)
38
+ end
39
+
40
+ its(:license) { should be_nil }
41
+ end
42
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,9 +1,15 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
+ require 'pry'
3
4
 
4
5
  require 'license_finder'
5
6
 
6
7
  require 'rspec'
8
+
9
+ Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each do |file|
10
+ require file
11
+ end
12
+
7
13
  RSpec.configure do |config|
8
14
  config.mock_with :rr
9
15
  end
@@ -0,0 +1,24 @@
1
+ shared_examples_for "a license matcher" do
2
+ describe "#matches?" do
3
+ context "when a license text template exists" do
4
+ before do
5
+ stub(subject.class).license_text { 'AWESOME "FOO" LICENSE' }
6
+ end
7
+
8
+ it "should return true if the body matches exactly" do
9
+ subject.text = 'AWESOME "FOO" LICENSE'
10
+ should be_matches
11
+ end
12
+
13
+ it "should return false if the body does not match at all" do
14
+ subject.text = "hi"
15
+ should_not be_matches
16
+ end
17
+
18
+ it "should return true if the body matches disregarding quote and new line differences" do
19
+ subject.text = "AWESOME\n'FOO'\nLICENSE"
20
+ should be_matches
21
+ end
22
+ end
23
+ end
24
+ 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.4.5
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,28 @@ authors:
9
9
  - Matthew Kane Parker
10
10
  - Ian Lesperance
11
11
  - David Edwards
12
+ - Paul Meskers
12
13
  autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
- date: 2012-09-09 00:00:00.000000000 Z
16
+ date: 2012-09-12 00:00:00.000000000 Z
16
17
  dependencies:
18
+ - !ruby/object:Gem::Dependency
19
+ name: bundler
20
+ requirement: !ruby/object:Gem::Requirement
21
+ none: false
22
+ requirements:
23
+ - - ! '>='
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ type: :runtime
27
+ prerelease: false
28
+ version_requirements: !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
17
34
  - !ruby/object:Gem::Dependency
18
35
  name: rails
19
36
  requirement: !ruby/object:Gem::Requirement
@@ -110,6 +127,22 @@ dependencies:
110
127
  - - ! '>='
111
128
  - !ruby/object:Gem::Version
112
129
  version: '0'
130
+ - !ruby/object:Gem::Dependency
131
+ name: pry
132
+ requirement: !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ none: false
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
113
146
  description: Find and display licenses of a project's gem dependencies, so that you
114
147
  know what your limitations are when distributing your application.
115
148
  email:
@@ -126,26 +159,43 @@ files:
126
159
  - README.markdown
127
160
  - Rakefile
128
161
  - bin/license_finder
162
+ - features/executables/license_finder.feature
129
163
  - features/rake_tasks/action_items.feature
130
164
  - features/rake_tasks/action_items_ok.feature
131
165
  - features/rake_tasks/generate_dependencies.feature
132
166
  - features/rake_tasks/init.feature
167
+ - features/rake_tasks/regressions.feature
133
168
  - features/step_definitions/steps.rb
134
169
  - files/license_finder.yml
135
170
  - lib/license_finder.rb
171
+ - lib/license_finder/bundled_gem.rb
172
+ - lib/license_finder/bundler_dependency_query.rb
173
+ - lib/license_finder/cli.rb
136
174
  - lib/license_finder/dependency.rb
137
175
  - lib/license_finder/dependency_list.rb
138
- - lib/license_finder/file_parser.rb
139
176
  - lib/license_finder/finder.rb
140
- - lib/license_finder/gem_spec_details.rb
141
- - lib/license_finder/license_file.rb
177
+ - lib/license_finder/license.rb
178
+ - lib/license_finder/license/apache.rb
179
+ - lib/license_finder/license/bsd.rb
180
+ - lib/license_finder/license/gplv2.rb
181
+ - lib/license_finder/license/isc.rb
182
+ - lib/license_finder/license/lgpl.rb
183
+ - lib/license_finder/license/mit.rb
184
+ - lib/license_finder/license/new_bsd.rb
185
+ - lib/license_finder/license/ruby.rb
186
+ - lib/license_finder/license/simplified_bsd.rb
187
+ - lib/license_finder/possible_license_file.rb
142
188
  - lib/license_finder/railtie.rb
143
189
  - lib/tasks/license_finder.rake
144
- - lib/templates/Apache-2.0-body
145
- - lib/templates/GPL-2.0-body
146
- - lib/templates/ISC-body
147
- - lib/templates/LGPL-body
148
- - lib/templates/MIT-body
190
+ - lib/templates/Apache.txt
191
+ - lib/templates/BSD.txt
192
+ - lib/templates/GPLv2.txt
193
+ - lib/templates/ISC.txt
194
+ - lib/templates/LGPL.txt
195
+ - lib/templates/MIT.txt
196
+ - lib/templates/NewBSD.txt
197
+ - lib/templates/Ruby.txt
198
+ - lib/templates/SimplifiedBSD.txt
149
199
  - license_finder.gemspec
150
200
  - spec/fixtures/APACHE-2-LICENSE
151
201
  - spec/fixtures/GPLv2
@@ -153,10 +203,6 @@ files:
153
203
  - spec/fixtures/MIT-LICENSE
154
204
  - spec/fixtures/MIT-LICENSE-with-varied-disclaimer
155
205
  - spec/fixtures/README-with-MIT-LICENSE
156
- - spec/fixtures/apache_licensed_gem/LICENSE
157
- - spec/fixtures/gplv2_licensed_gem/LICENSE
158
- - spec/fixtures/isc_licensed_gem/LICENSE
159
- - spec/fixtures/lgpl_licensed_gem/LICENSE
160
206
  - spec/fixtures/license_directory/COPYING
161
207
  - spec/fixtures/license_directory/LICENSE/BSD-2-Clause.txt
162
208
  - spec/fixtures/license_directory/LICENSE/GPL-2.0.txt
@@ -165,28 +211,34 @@ files:
165
211
  - spec/fixtures/license_directory/LICENSE/RUBY.txt
166
212
  - spec/fixtures/license_names/COPYING.txt
167
213
  - spec/fixtures/license_names/LICENSE
214
+ - spec/fixtures/license_names/Licence.rdoc
168
215
  - spec/fixtures/license_names/Mit-License
169
216
  - spec/fixtures/license_names/README.rdoc
170
217
  - spec/fixtures/mit_licensed_gem/LICENSE
171
- - spec/fixtures/mit_licensed_gem_in_README/README.rdoc
172
- - spec/fixtures/mit_licensed_gem_via_url/README
173
- - spec/fixtures/mit_licensed_with_hashes/MIT-LICENSE
174
218
  - spec/fixtures/nested_gem/vendor/LICENSE
175
219
  - spec/fixtures/nested_readme/vendor/README
176
- - spec/fixtures/no_license/.gitkeep
177
220
  - spec/fixtures/other_licensed_gem/LICENSE
178
221
  - spec/fixtures/readme/Project ReadMe
179
222
  - spec/fixtures/readme/README
180
223
  - spec/fixtures/readme/Readme.markdown
181
224
  - spec/fixtures/utf8_gem/README
225
+ - spec/lib/license_finder/bundled_gem_spec.rb
182
226
  - spec/lib/license_finder/dependency_list_spec.rb
183
227
  - spec/lib/license_finder/dependency_spec.rb
184
- - spec/lib/license_finder/file_parser_spec.rb
185
228
  - spec/lib/license_finder/finder_spec.rb
186
- - spec/lib/license_finder/gem_spec_details_spec.rb
187
- - spec/lib/license_finder/license_file_spec.rb
229
+ - spec/lib/license_finder/license/apache_spec.rb
230
+ - spec/lib/license_finder/license/bsd_spec.rb
231
+ - spec/lib/license_finder/license/gplv2_spec.rb
232
+ - spec/lib/license_finder/license/isc_spec.rb
233
+ - spec/lib/license_finder/license/lgpl_spec.rb
234
+ - spec/lib/license_finder/license/mit_spec.rb
235
+ - spec/lib/license_finder/license/new_bsd_spec.rb
236
+ - spec/lib/license_finder/license/ruby_spec.rb
237
+ - spec/lib/license_finder/license/simplified_bsd_spec.rb
238
+ - spec/lib/license_finder/possible_license_file_spec.rb
188
239
  - spec/lib/license_finder_spec.rb
189
240
  - spec/spec_helper.rb
241
+ - spec/support/license_examples.rb
190
242
  homepage: https://github.com/pivotal/LicenseFinder
191
243
  licenses:
192
244
  - MIT
@@ -208,16 +260,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
260
  version: '0'
209
261
  requirements: []
210
262
  rubyforge_project:
211
- rubygems_version: 1.8.24
263
+ rubygems_version: 1.8.23
212
264
  signing_key:
213
265
  specification_version: 3
214
266
  summary: Know your dependencies - and the licenses they are binding your application
215
267
  to.
216
268
  test_files:
269
+ - features/executables/license_finder.feature
217
270
  - features/rake_tasks/action_items.feature
218
271
  - features/rake_tasks/action_items_ok.feature
219
272
  - features/rake_tasks/generate_dependencies.feature
220
273
  - features/rake_tasks/init.feature
274
+ - features/rake_tasks/regressions.feature
221
275
  - features/step_definitions/steps.rb
222
276
  - spec/fixtures/APACHE-2-LICENSE
223
277
  - spec/fixtures/GPLv2
@@ -225,10 +279,6 @@ test_files:
225
279
  - spec/fixtures/MIT-LICENSE
226
280
  - spec/fixtures/MIT-LICENSE-with-varied-disclaimer
227
281
  - spec/fixtures/README-with-MIT-LICENSE
228
- - spec/fixtures/apache_licensed_gem/LICENSE
229
- - spec/fixtures/gplv2_licensed_gem/LICENSE
230
- - spec/fixtures/isc_licensed_gem/LICENSE
231
- - spec/fixtures/lgpl_licensed_gem/LICENSE
232
282
  - spec/fixtures/license_directory/COPYING
233
283
  - spec/fixtures/license_directory/LICENSE/BSD-2-Clause.txt
234
284
  - spec/fixtures/license_directory/LICENSE/GPL-2.0.txt
@@ -237,25 +287,31 @@ test_files:
237
287
  - spec/fixtures/license_directory/LICENSE/RUBY.txt
238
288
  - spec/fixtures/license_names/COPYING.txt
239
289
  - spec/fixtures/license_names/LICENSE
290
+ - spec/fixtures/license_names/Licence.rdoc
240
291
  - spec/fixtures/license_names/Mit-License
241
292
  - spec/fixtures/license_names/README.rdoc
242
293
  - spec/fixtures/mit_licensed_gem/LICENSE
243
- - spec/fixtures/mit_licensed_gem_in_README/README.rdoc
244
- - spec/fixtures/mit_licensed_gem_via_url/README
245
- - spec/fixtures/mit_licensed_with_hashes/MIT-LICENSE
246
294
  - spec/fixtures/nested_gem/vendor/LICENSE
247
295
  - spec/fixtures/nested_readme/vendor/README
248
- - spec/fixtures/no_license/.gitkeep
249
296
  - spec/fixtures/other_licensed_gem/LICENSE
250
297
  - spec/fixtures/readme/Project ReadMe
251
298
  - spec/fixtures/readme/README
252
299
  - spec/fixtures/readme/Readme.markdown
253
300
  - spec/fixtures/utf8_gem/README
301
+ - spec/lib/license_finder/bundled_gem_spec.rb
254
302
  - spec/lib/license_finder/dependency_list_spec.rb
255
303
  - spec/lib/license_finder/dependency_spec.rb
256
- - spec/lib/license_finder/file_parser_spec.rb
257
304
  - spec/lib/license_finder/finder_spec.rb
258
- - spec/lib/license_finder/gem_spec_details_spec.rb
259
- - spec/lib/license_finder/license_file_spec.rb
305
+ - spec/lib/license_finder/license/apache_spec.rb
306
+ - spec/lib/license_finder/license/bsd_spec.rb
307
+ - spec/lib/license_finder/license/gplv2_spec.rb
308
+ - spec/lib/license_finder/license/isc_spec.rb
309
+ - spec/lib/license_finder/license/lgpl_spec.rb
310
+ - spec/lib/license_finder/license/mit_spec.rb
311
+ - spec/lib/license_finder/license/new_bsd_spec.rb
312
+ - spec/lib/license_finder/license/ruby_spec.rb
313
+ - spec/lib/license_finder/license/simplified_bsd_spec.rb
314
+ - spec/lib/license_finder/possible_license_file_spec.rb
260
315
  - spec/lib/license_finder_spec.rb
261
316
  - spec/spec_helper.rb
317
+ - spec/support/license_examples.rb