license_scout 2.0.4 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b3570e2546cf8b7270601ba98e7918176fa39fab4cfe64ffe1f7dbd05f5059a
4
- data.tar.gz: d40684bd6b3596d012c6d7e127187f04a963758d406825203902189ad8abe815
3
+ metadata.gz: c7ca7856e42ab2d7004c0e839c6ca76d8469fc1a576bcec0fdb2531e047c7ae8
4
+ data.tar.gz: dc19f95eaabff06016349cbfedfe786ffe4a44495f3fefc7bdf585aa9212d7c1
5
5
  SHA512:
6
- metadata.gz: e9f1d919eb0f5f5195f13b4aebcc52f3cf346c9e4472f4bc02fa6e25556cc419584554526a647eb3a2d456c475c2cce9f8a95b5b4d4b8d33b5a3f31bea15e77b
7
- data.tar.gz: fd6e227a8eccbdc3f65577b844dff91572a9fa2b3d7d21c1c1390efba1326eb3e6f4c6487088df703dc748d5205afe7c9cb8ebc0040b040c16bc172685d03950
6
+ metadata.gz: df5e1640eeddbac7d2e36ee9ce3ead1195facf295e366e49a86e526150c7018ffd7e606d8d107286c932a63f0c6715e22776ba71d06d635c8182db0d117d6e21
7
+ data.tar.gz: 503398a3e3f5e82481502fbc8e2debf31be840def48592d928bd7fa96aa26415495b1b2e27c7c5ffd0b968b352cb3e821080dcbad0d0c3947e4ea199c892d5a3
data/README.md CHANGED
@@ -15,11 +15,26 @@ nodejs | npm
15
15
  perl | cpan
16
16
  ruby | bundler
17
17
 
18
- ## Dependencies
18
+ ## Installation
19
+
20
+ ### Ruby Gem
21
+
22
+ ```
23
+ gem install license_scout
24
+ ```
25
+
26
+ #### Dependencies
19
27
 
20
28
  * If you wish to scan for `berkshelf` dependencies, you'll need to manually install the Berkshelf gem in the same Ruby as License Scout
21
29
  * If you wish to scan for `mix` or `rebar` dependencies, you'll need to install Erlang OTP 18.3 or greater.
22
30
 
31
+ ### Habitat
32
+
33
+ ```
34
+ hab pkg install chef/license_scout
35
+ hab pkg binlink chef/license_scout license_scout
36
+ ```
37
+
23
38
  ## Usage
24
39
 
25
40
  License Scout's default behavior is to scan the current directory and return a breakdown of all the licenses it can find.
data/bin/gemfile_json CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright:: Copyright 2016, Chef Software Inc.
3
+ # Copyright:: Copyright 2018, Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,6 +15,8 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
+ require "zlib" # Temporarily require before rugged to fix https://github.com/prontolabs/pronto/issues/23
19
+
18
20
  require "mixlib/cli"
19
21
  require "license_scout/config"
20
22
  require "license_scout/collector"
@@ -85,7 +87,7 @@ module LicenseScout
85
87
  LicenseScout::Log.info("[cli] Loading config from #{full_config_file}")
86
88
  LicenseScout::Config.from_file(full_config_file)
87
89
  else
88
- LicenseScout::Log.info("[cli] Could not find file #{full_config_file} -- skipping")
90
+ LicenseScout::Log.warn("[cli] Could not find #{full_config_file} -- skipping")
89
91
  end
90
92
  end
91
93
  end
@@ -62,7 +62,8 @@ module LicenseScout
62
62
  default :ruby, []
63
63
  end
64
64
 
65
- # Runtime Parameters
65
+ # Runtime Parameters - if you add any bins, make sure to update the habitat/plan.sh
66
+ # to ensure we override the defaults to scope to the Habitat path
66
67
  default :environment, {}
67
68
  default :ruby_bin, "ruby"
68
69
  default :escript_bin, "escript"
@@ -90,6 +90,7 @@ module LicenseScout
90
90
  s.error!
91
91
  s.stdout
92
92
  end
93
+
93
94
  FFI_Yajl::Parser.parse(json_dep_data)
94
95
  end
95
96
  end
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module LicenseScout
19
- VERSION = "2.0.4"
19
+ VERSION = "2.0.7"
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serdar Sutay
@@ -137,132 +137,6 @@ dependencies:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
- - !ruby/object:Gem::Dependency
141
- name: bundler
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - "~>"
145
- - !ruby/object:Gem::Version
146
- version: '1.12'
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - "~>"
152
- - !ruby/object:Gem::Version
153
- version: '1.12'
154
- - !ruby/object:Gem::Dependency
155
- name: rake
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - "~>"
159
- - !ruby/object:Gem::Version
160
- version: '10.0'
161
- type: :development
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - "~>"
166
- - !ruby/object:Gem::Version
167
- version: '10.0'
168
- - !ruby/object:Gem::Dependency
169
- name: rspec
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: '0'
175
- type: :development
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
- - !ruby/object:Gem::Dependency
183
- name: pry
184
- requirement: !ruby/object:Gem::Requirement
185
- requirements:
186
- - - ">="
187
- - !ruby/object:Gem::Version
188
- version: '0'
189
- type: :development
190
- prerelease: false
191
- version_requirements: !ruby/object:Gem::Requirement
192
- requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- version: '0'
196
- - !ruby/object:Gem::Dependency
197
- name: rb-readline
198
- requirement: !ruby/object:Gem::Requirement
199
- requirements:
200
- - - ">="
201
- - !ruby/object:Gem::Version
202
- version: '0'
203
- type: :development
204
- prerelease: false
205
- version_requirements: !ruby/object:Gem::Requirement
206
- requirements:
207
- - - ">="
208
- - !ruby/object:Gem::Version
209
- version: '0'
210
- - !ruby/object:Gem::Dependency
211
- name: chefstyle
212
- requirement: !ruby/object:Gem::Requirement
213
- requirements:
214
- - - ">="
215
- - !ruby/object:Gem::Version
216
- version: '0'
217
- type: :development
218
- prerelease: false
219
- version_requirements: !ruby/object:Gem::Requirement
220
- requirements:
221
- - - ">="
222
- - !ruby/object:Gem::Version
223
- version: '0'
224
- - !ruby/object:Gem::Dependency
225
- name: vcr
226
- requirement: !ruby/object:Gem::Requirement
227
- requirements:
228
- - - ">="
229
- - !ruby/object:Gem::Version
230
- version: '0'
231
- type: :development
232
- prerelease: false
233
- version_requirements: !ruby/object:Gem::Requirement
234
- requirements:
235
- - - ">="
236
- - !ruby/object:Gem::Version
237
- version: '0'
238
- - !ruby/object:Gem::Dependency
239
- name: webmock
240
- requirement: !ruby/object:Gem::Requirement
241
- requirements:
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- version: '0'
245
- type: :development
246
- prerelease: false
247
- version_requirements: !ruby/object:Gem::Requirement
248
- requirements:
249
- - - ">="
250
- - !ruby/object:Gem::Version
251
- version: '0'
252
- - !ruby/object:Gem::Dependency
253
- name: berkshelf
254
- requirement: !ruby/object:Gem::Requirement
255
- requirements:
256
- - - "~>"
257
- - !ruby/object:Gem::Version
258
- version: '4.3'
259
- type: :development
260
- prerelease: false
261
- version_requirements: !ruby/object:Gem::Requirement
262
- requirements:
263
- - - "~>"
264
- - !ruby/object:Gem::Version
265
- version: '4.3'
266
140
  description: Discovers license files of a project's dependencies.
267
141
  email:
268
142
  - serdar@chef.io