license_scout 1.0.20 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/license_scout/dependency_manager/base.rb +1 -1
- data/lib/license_scout/dependency_manager/dep.rb +1 -1
- data/lib/license_scout/dependency_manager/rebar.rb +1 -1
- data/lib/license_scout/net_fetcher.rb +1 -1
- data/lib/license_scout/options.rb +1 -1
- data/lib/license_scout/overrides.rb +1 -0
- data/lib/license_scout/reporter.rb +1 -1
- data/lib/license_scout/version.rb +1 -1
- metadata +10 -19
- data/README.md +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 345f1ddd0d7695021dd955700e4d0513a3a737dccc380dcb2107e9bf987589bd
|
4
|
+
data.tar.gz: b392c482a852a996ffb99a911cc4139f20bca30fbb7c7f2fd20d8a135d6b4380
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fb24f3840dd2fdd0701d5f704ddabc88e038062951ab75f8e620850ce637d681b84929bdda77cdbf52b9cdab81f9c9d9061d5d7d16cb513c55cfa0d0eb927c1
|
7
|
+
data.tar.gz: e199fdc41ef3ec05fd4c19cab6c2d54880efc66d00c10c77b73bdd8f6a6e7ec7edc501f39a8ebcb58c5b1e0d012dd2bfe849cff45022b1e58e682d869749a5be
|
@@ -37,7 +37,7 @@ module LicenseScout
|
|
37
37
|
deps = File.open(root_dep_file) do |f|
|
38
38
|
TomlRB.parse(f)
|
39
39
|
end
|
40
|
-
return [] unless deps.
|
40
|
+
return [] unless deps.key?("projects")
|
41
41
|
deps["projects"].map do |pkg_info|
|
42
42
|
pkg_import_name = pkg_info["name"]
|
43
43
|
pkg_file_name = pkg_import_name.tr("/", "_")
|
@@ -156,7 +156,7 @@ module LicenseScout
|
|
156
156
|
found_license = LicenseScout::LicenseFileAnalyzer.find_by_text(IO.read(license_file))
|
157
157
|
found_license ? found_license.short_name : nil
|
158
158
|
end
|
159
|
-
license_names.find {|x| x}
|
159
|
+
license_names.find { |x| x }
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
@@ -19,7 +19,7 @@ require "license_scout/overrides"
|
|
19
19
|
|
20
20
|
module LicenseScout
|
21
21
|
class Options
|
22
|
-
SUPPORTED_OPTIONS = [:overrides, :environment, :ruby_bin, :cpan_cache, :manual_licenses]
|
22
|
+
SUPPORTED_OPTIONS = [:overrides, :environment, :ruby_bin, :cpan_cache, :manual_licenses].freeze
|
23
23
|
|
24
24
|
SUPPORTED_OPTIONS.each do |o|
|
25
25
|
send(:attr_reader, o)
|
@@ -293,6 +293,7 @@ module LicenseScout
|
|
293
293
|
["httpclient", "Ruby", ["README.md"]],
|
294
294
|
["inifile", "MIT", ["README.md"]],
|
295
295
|
["ipaddress", "MIT", nil],
|
296
|
+
["jaro_winkler", "MIT", ["LICENSE.txt"]],
|
296
297
|
["jsonschema", "MIT", ["README.rdoc"]],
|
297
298
|
["knife-opc", "Apache-2.0", nil],
|
298
299
|
["little-plugger", "MIT", ["README.rdoc"]],
|
@@ -39,7 +39,7 @@ module LicenseScout
|
|
39
39
|
|
40
40
|
ok_deps, problem_deps = 0, 0
|
41
41
|
|
42
|
-
dependencies.
|
42
|
+
dependencies.sort_by { |a| a["name"] }.each do |dependency|
|
43
43
|
dep_ok, problems = license_info_ok?(dependency_manager, dependency)
|
44
44
|
|
45
45
|
if dep_ok
|
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.
|
4
|
+
version: 1.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serdar Sutay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi-yajl
|
@@ -52,34 +52,26 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: bundler
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.12'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '1.12'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: rake
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- - "
|
59
|
+
- - ">="
|
74
60
|
- !ruby/object:Gem::Version
|
75
61
|
version: '10.0'
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '13'
|
76
65
|
type: :development
|
77
66
|
prerelease: false
|
78
67
|
version_requirements: !ruby/object:Gem::Requirement
|
79
68
|
requirements:
|
80
|
-
- - "
|
69
|
+
- - ">="
|
81
70
|
- !ruby/object:Gem::Version
|
82
71
|
version: '10.0'
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '13'
|
83
75
|
- !ruby/object:Gem::Dependency
|
84
76
|
name: rspec
|
85
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,7 +151,6 @@ extensions: []
|
|
159
151
|
extra_rdoc_files: []
|
160
152
|
files:
|
161
153
|
- LICENSE
|
162
|
-
- README.md
|
163
154
|
- bin/license_scout
|
164
155
|
- bin/rebar_lock_json
|
165
156
|
- erl_src/rebar_lock_json/README.md
|
data/README.md
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# license_scout
|
2
|
-
|
3
|
-
[![Build Status](https://travis-ci.org/chef/license_scout.svg?branch=1-stable)](https://travis-ci.org/chef/license_scout)
|
4
|
-
|
5
|
-
LicenseScout discovers and collects the licenses of a project and its
|
6
|
-
dependencies, including transitive dependencies.
|
7
|
-
|
8
|
-
Currently supported project types are:
|
9
|
-
|
10
|
-
* Chef - Berkshelf
|
11
|
-
* Erlang - rebar
|
12
|
-
* Golang - godeps
|
13
|
-
* Javascript - npm
|
14
|
-
* Perl - CPAN
|
15
|
-
* Ruby - bundler
|
16
|
-
|
17
|
-
## Usage
|
18
|
-
|
19
|
-
```bash
|
20
|
-
$ bin/license_scout /dir/to/scout/successfully/
|
21
|
-
|
22
|
-
$ bin/license_scout /dir/to/scout/unsuccessfully/
|
23
|
-
Dependency 'gopkg.in_yaml.v2' version '53feefa2559fb8dfa8d81baad31be332c97d6c77' under 'go_godep' is missing license information.
|
24
|
-
>> Found 41 dependencies for go_godep. 40 OK, 1 with problems
|
25
|
-
```
|
26
|
-
|
27
|
-
Detailed instructions for fixing licensing failures found by license_scout are now provided in the script's output. See [bin/license_scout](bin/license_scout) for more details.
|
28
|
-
|
29
|
-
## Contributing
|
30
|
-
|
31
|
-
This project is maintained by the contribution guidelines identified for
|
32
|
-
[chef](https://github.com/chef/chef) project. You can find the guidelines here:
|
33
|
-
|
34
|
-
https://github.com/chef/chef/blob/master/CONTRIBUTING.md
|
35
|
-
|
36
|
-
Pull requests in this project are merged when they have two :+1:s from maintainers.
|
37
|
-
|
38
|
-
## Maintainers
|
39
|
-
|
40
|
-
- [Dan DeLeo](https://github.com/danielsdeleo)
|
41
|
-
- [Ryan Cragun](https://github.com/ryancragun)
|