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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14b85580896471361525873d8a29b5a4b3aa193190306322bb8f70a1c5b184d1
4
- data.tar.gz: b8fad896ebb7dedd939e8a92d5382416cc48acde2da04ce3d8fe778b6a69227b
3
+ metadata.gz: fff0dd83efc21ff06cc8fcc66bd3035387d9a61ad6ac033c50c525612a477acf
4
+ data.tar.gz: 934a3a5bbf27de7a5c0f6f0f657659e5a16a9e31d1bd6ebaff8d69365ba88299
5
5
  SHA512:
6
- metadata.gz: b5088dabb8927abf37e8a6967b87ba3655121598e65f3330fd3188596bf21da990ec1be50701d81dd799a134db70b6e9b561bb88e366ab6328e8684f81301a78
7
- data.tar.gz: 77f31edcb928565b8412267fc3cc95eaf4ad4f95004f6ef2bdd81290829a6cb2e78cba2440404bf78166f5fb75ed7fe34fa3f0c6239c76c9805aa7737a0cb6cd
6
+ metadata.gz: 24a584c6ebf0e4820082a42948f012f4017c916da060572425081add7b9ade1a44679c8d460a3f68970d2b4cc88fda3d26f64012b38fceec1b38f928a697c10d
7
+ data.tar.gz: 02e7b5e509e979d51662f985469ae929c96b20d0d85ba48dd89ce59add5afb9c5d8a5794116a3de184b2d7efa6999278bf88338eeb7ea3922f65040adfa8f2bd
data/bin/gemfile_json CHANGED
@@ -28,6 +28,7 @@
28
28
 
29
29
  # We need to load the target project's bundler config, so we have to do a full
30
30
  # bundler setup:
31
+ require "bundler"
31
32
  require "bundler/setup"
32
33
 
33
34
  # We're only using things that are in the stdlib.
@@ -168,14 +168,16 @@ module LicenseScout
168
168
 
169
169
  puts table unless LicenseScout::Config.only_show_failures && !@did_fail
170
170
 
171
- puts
172
- puts "Additional steps are required in order to pass Open Source license compliance:"
173
- puts " * Please add fallback licenses for the 'Missing' or 'Undetermined' dependencies" if @needs_fallback
174
- puts " https://github.com/chef/license_scout#fallback-licenses" if @needs_fallback
175
- puts " * Please add exceptions for the 'Flagged' or 'Not Allowed' dependencies" if @needs_exception
176
- puts " https://github.com/chef/license_scout#dependency-exceptions" if @needs_exception
177
-
178
- raise Exceptions::FailExit.new("missing or not allowed licenses detected") if @did_fail
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
@@ -94,29 +94,29 @@ module LicenseScout
94
94
 
95
95
  def special_cases
96
96
  {
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",
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" => "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",
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
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module LicenseScout
19
- VERSION = "2.1.5".freeze
19
+ VERSION = "2.2.0".freeze
20
20
  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.1.5
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: 2018-10-24 00:00:00.000000000 Z
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
- rubyforge_project:
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.