license_scout 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02eaf156a98d990328da198254101d5341bc3728ff2dca5642871c0813c1f9be
4
- data.tar.gz: 973cff400ba26136c10c78521e60ca120e80d97fb06d4ce466ed85865a1b0803
3
+ metadata.gz: ced991c0ec5763e87b3fc4625be5118dd3076b91e629a754ffc591b94f2c3130
4
+ data.tar.gz: ed6b3015814704a100efcd54f35cb0a085429d5e43c2b2aea28302b056aeef43
5
5
  SHA512:
6
- metadata.gz: dfb2faf09c1ad50d298342ad2f436b692a9a8ee44e3e48c25a0fd5d4dd455b80d426fd33c3111db138b2641f31b3dac28ed76cc16fb39f3c8fda310c198becab
7
- data.tar.gz: c3ae56ea939c74c6adc81ef09b19ba3089e65696b14f19c07b10bf2eae02f763001e7dd41036740bee68d55939a603140c21748e8f466e78c45055ca31f93a7c
6
+ metadata.gz: 3077ecddb855dc501bfd2970e988252acf059cf112e3c5bae297978daf32d0e0e9a6a82aefae6dc8258a7e86debb53c304ced6a624a48d8ecb27fc9ea7ffffb9
7
+ data.tar.gz: 5459885a3ea30d8dfbe4f67997665a3260485c94d806216b4d7d06bf459171ddbc0f3fcba56c096b9c186aefdb2edf939bb5430fbebe12815a413bff4d08e222
@@ -152,8 +152,11 @@ module LicenseScout
152
152
  if license_files.empty?
153
153
  nil
154
154
  else
155
- found_license = LicenseScout::LicenseFileAnalyzer.find_by_text(IO.read(license_files.first))
156
- found_license ? found_license.short_name : nil
155
+ license_names = license_files.map do |license_file|
156
+ found_license = LicenseScout::LicenseFileAnalyzer.find_by_text(IO.read(license_file))
157
+ found_license ? found_license.short_name : nil
158
+ end
159
+ license_names.find {|x| x}
157
160
  end
158
161
  end
159
162
 
@@ -307,17 +307,17 @@ module LicenseScout
307
307
  ["aws-sdk", nil, ["https://raw.githubusercontent.com/aws/aws-sdk-ruby/master/README.md"]],
308
308
  ["fuzzyurl", nil, ["https://raw.githubusercontent.com/gamache/fuzzyurl/master/LICENSE.txt"]],
309
309
  ["jwt", nil, ["https://raw.githubusercontent.com/jwt/ruby-jwt/master/LICENSE"]],
310
- ["win32-process", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
311
- ["win32-api", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
312
- ["win32-dir", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
313
- ["win32-ipc", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
314
- ["win32-event", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
315
- ["win32-eventlog", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
316
- ["win32-mmap", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
317
- ["win32-mutex", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
318
- ["win32-service", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
319
- ["win32-taskscheduler", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
320
- ["windows-api", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
310
+ ["win32-process", "Artistic-2.0", ["https://raw.githubusercontent.com/chef/win32-process/ffi/README.md"]],
311
+ ["win32-api", "Artistic-2.0", ["https://raw.githubusercontent.com/cosmo0920/win32-api/master/README"]],
312
+ ["win32-dir", "Artistic-2.0", ["https://raw.githubusercontent.com/chef/win32-dir/ffi/README.md"]],
313
+ ["win32-ipc", "Artistic-2.0", ["https://raw.githubusercontent.com/chef/win32-ipc/ffi/README.md"]],
314
+ ["win32-event", "Artistic-2.0", ["https://raw.githubusercontent.com/chef/win32-event/ffi/README"]],
315
+ ["win32-eventlog", "Artistic-2.0", ["https://raw.githubusercontent.com/chef/win32-eventlog/ffi/README"]],
316
+ ["win32-mmap", "Artistic-2.0", ["https://raw.githubusercontent.com/chef/win32-mmap/ffi/README.md"]],
317
+ ["win32-mutex", "Artistic-2.0", ["https://raw.githubusercontent.com/chef/win32-mutex/ffi/README.md"]],
318
+ ["win32-service", "Artistic-2.0", ["https://raw.githubusercontent.com/chef/win32-service/ffi/README.md"]],
319
+ ["win32-taskscheduler", "Artistic-2.0", ["https://raw.githubusercontent.com/chef/win32-taskscheduler/ole/README.md"]],
320
+ ["windows-api", "Artistic-2.0", ["https://raw.githubusercontent.com/cosmo0920/windows-api/master/README"]],
321
321
  ["rdoc", "Ruby", ["https://raw.githubusercontent.com/ruby/rdoc/master/LICENSE.rdoc"]],
322
322
  ["rest-client", "MIT", ["https://raw.githubusercontent.com/rest-client/rest-client/master/LICENSE"]],
323
323
  ["rspec-rerun", nil, ["https://raw.githubusercontent.com/dblock/rspec-rerun/master/LICENSE.md"]],
@@ -403,14 +403,14 @@ module LicenseScout
403
403
  ["Scalar-List-Utils", nil, ["README"]],
404
404
  ["perl", nil, ["README"]],
405
405
  ["IO", nil, ["README"]],
406
- ["ExtUtils-MakeMaker", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
406
+ ["ExtUtils-MakeMaker", "Perl-5", ["http://www.perl.com/perl/misc/Artistic.html"]],
407
407
  ["PathTools", "Perl-5", ["lib/File/Spec.pm"]],
408
408
  ["Exporter", nil, ["README"]],
409
409
  ["Carp", nil, ["README"]],
410
410
  ["lib", nil, ["Artistic"]],
411
- ["Pod-Escapes", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
411
+ ["Pod-Escapes", "Perl-5", ["lib/Pod/Escapes.pm"]],
412
412
  ["Pod-Usage", nil, ["README"]],
413
- ["base", "Perl-5", ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
413
+ ["base", "Perl-5", ["http://www.perl.com/perl/misc/Artistic.html"]],
414
414
  ["Encode", nil, ["AUTHORS"]],
415
415
  ["Moo", nil, ["README"]],
416
416
  ["Sub-Quote", nil, ["README"]],
@@ -465,9 +465,9 @@ module LicenseScout
465
465
  ["Digest-SHA1", nil, ["README"]],
466
466
  ["JSON-PP", nil, ["README"]],
467
467
  ["MRO-Compat", nil, ["README"]],
468
- ["MouseX-NativeTraits", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
469
- ["MouseX-Types", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
470
- ["MouseX-Types-Path-Class", nil, ["http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt"]],
468
+ ["MouseX-NativeTraits", "Artistic-1.0", ["lib/MouseX/NativeTraits.pm"]],
469
+ ["MouseX-Types", "Artistic-1.0", ["lib/MouseX/Types.pm"]],
470
+ ["MouseX-Types-Path-Class", "Artistic-1.0", ["lib/MouseX/Types/Path/Class.pm"]],
471
471
  ["Test-UseAllModules", nil, ["README"]],
472
472
  ["Variable-Magic", nil, ["README"]],
473
473
  ["Class-Data-Inheritable", nil, ["https://raw.githubusercontent.com/tmtmtmtm/class-data-inheritable/master/README"]],
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module LicenseScout
19
- VERSION = "1.0.10"
19
+ VERSION = "1.0.11"
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serdar Sutay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-31 00:00:00.000000000 Z
11
+ date: 2018-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi-yajl