license_scout 2.1.5 → 2.2.0
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 +4 -4
- data/bin/gemfile_json +1 -0
- data/lib/license_scout/reporter.rb +10 -8
- data/lib/license_scout/spdx.rb +21 -21
- data/lib/license_scout/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fff0dd83efc21ff06cc8fcc66bd3035387d9a61ad6ac033c50c525612a477acf
|
|
4
|
+
data.tar.gz: 934a3a5bbf27de7a5c0f6f0f657659e5a16a9e31d1bd6ebaff8d69365ba88299
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24a584c6ebf0e4820082a42948f012f4017c916da060572425081add7b9ade1a44679c8d460a3f68970d2b4cc88fda3d26f64012b38fceec1b38f928a697c10d
|
|
7
|
+
data.tar.gz: 02e7b5e509e979d51662f985469ae929c96b20d0d85ba48dd89ce59add5afb9c5d8a5794116a3de184b2d7efa6999278bf88338eeb7ea3922f65040adfa8f2bd
|
data/bin/gemfile_json
CHANGED
|
@@ -168,14 +168,16 @@ module LicenseScout
|
|
|
168
168
|
|
|
169
169
|
puts table unless LicenseScout::Config.only_show_failures && !@did_fail
|
|
170
170
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
171
|
+
if @did_fail
|
|
172
|
+
puts
|
|
173
|
+
puts "Additional steps are required in order to pass Open Source license compliance:"
|
|
174
|
+
puts " * Please add fallback licenses for the 'Missing' or 'Undetermined' dependencies" if @needs_fallback
|
|
175
|
+
puts " https://github.com/chef/license_scout#fallback-licenses" if @needs_fallback
|
|
176
|
+
puts " * Please add exceptions for the 'Flagged' or 'Not Allowed' dependencies" if @needs_exception
|
|
177
|
+
puts " https://github.com/chef/license_scout#dependency-exceptions" if @needs_exception
|
|
178
|
+
|
|
179
|
+
raise Exceptions::FailExit.new("missing or not allowed licenses detected")
|
|
180
|
+
end
|
|
179
181
|
end
|
|
180
182
|
|
|
181
183
|
def generate_dependency_license_manifest
|
data/lib/license_scout/spdx.rb
CHANGED
|
@@ -94,29 +94,29 @@ module LicenseScout
|
|
|
94
94
|
|
|
95
95
|
def special_cases
|
|
96
96
|
{
|
|
97
|
-
"agpl_3"
|
|
98
|
-
"apache_1_1"
|
|
99
|
-
"apache_2_0"
|
|
100
|
-
"artistic_1"
|
|
101
|
-
"artistic_2"
|
|
102
|
-
"bsd"
|
|
103
|
-
"freebsd"
|
|
104
|
-
"gfdl_1_2"
|
|
105
|
-
"gfdl_1_3"
|
|
106
|
-
"lgpl_2_1"
|
|
107
|
-
"lgpl_3_0"
|
|
108
|
-
"mit"
|
|
97
|
+
"agpl_3" => "AGPL-3.0",
|
|
98
|
+
"apache_1_1" => "Apache-1.1",
|
|
99
|
+
"apache_2_0" => "Apache-2.0",
|
|
100
|
+
"artistic_1" => "Artistic-1.0",
|
|
101
|
+
"artistic_2" => "Artistic-2.0",
|
|
102
|
+
"bsd" => "BSD-3-Clause",
|
|
103
|
+
"freebsd" => "BSD-2-Clause-FreeBSD",
|
|
104
|
+
"gfdl_1_2" => "GFDL-1.2-only",
|
|
105
|
+
"gfdl_1_3" => "GFDL-1.3-only",
|
|
106
|
+
"lgpl_2_1" => "LGPL-2.1-only",
|
|
107
|
+
"lgpl_3_0" => "LGPL-3.0-only",
|
|
108
|
+
"mit" => "MIT",
|
|
109
109
|
"mozilla_1_0" => "MPL-1.0",
|
|
110
110
|
"mozilla_1_1" => "MPL-1.1",
|
|
111
|
-
"mplv1.0"
|
|
112
|
-
"mplv1.1"
|
|
113
|
-
"openssl"
|
|
114
|
-
"qpl_1_0"
|
|
115
|
-
"perl"
|
|
116
|
-
"perl_5"
|
|
117
|
-
"ssleay"
|
|
118
|
-
"sun"
|
|
119
|
-
"zlib"
|
|
111
|
+
"mplv1.0" => "MPL-1.0",
|
|
112
|
+
"mplv1.1" => "MPL-1.1",
|
|
113
|
+
"openssl" => "OpenSSL",
|
|
114
|
+
"qpl_1_0" => "QPL-1.0",
|
|
115
|
+
"perl" => "Artistic-1.0-Perl",
|
|
116
|
+
"perl_5" => "Artistic-1.0-Perl",
|
|
117
|
+
"ssleay" => "OpenSSL",
|
|
118
|
+
"sun" => "SISSL",
|
|
119
|
+
"zlib" => "Zlib",
|
|
120
120
|
}
|
|
121
121
|
end
|
|
122
122
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: license_scout
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Serdar Sutay
|
|
8
7
|
- Tom Duffield
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2019-03-14 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: ffi-yajl
|
|
@@ -139,7 +138,6 @@ dependencies:
|
|
|
139
138
|
version: '0'
|
|
140
139
|
description: Discovers license files of a project's dependencies.
|
|
141
140
|
email:
|
|
142
|
-
- serdar@chef.io
|
|
143
141
|
- tom@chef.io
|
|
144
142
|
executables:
|
|
145
143
|
- license_scout
|
|
@@ -199,8 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
199
197
|
- !ruby/object:Gem::Version
|
|
200
198
|
version: '0'
|
|
201
199
|
requirements: []
|
|
202
|
-
|
|
203
|
-
rubygems_version: 2.7.6
|
|
200
|
+
rubygems_version: 3.0.1
|
|
204
201
|
signing_key:
|
|
205
202
|
specification_version: 4
|
|
206
203
|
summary: Discovers license files of a project's dependencies.
|