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 +4 -4
- data/README.md +16 -1
- data/bin/gemfile_json +1 -1
- data/lib/license_scout/cli.rb +3 -1
- data/lib/license_scout/config.rb +2 -1
- data/lib/license_scout/dependency_manager/bundler.rb +1 -0
- data/lib/license_scout/version.rb +1 -1
- metadata +1 -127
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7ca7856e42ab2d7004c0e839c6ca76d8469fc1a576bcec0fdb2531e047c7ae8
|
4
|
+
data.tar.gz: dc19f95eaabff06016349cbfedfe786ffe4a44495f3fefc7bdf585aa9212d7c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
##
|
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
data/lib/license_scout/cli.rb
CHANGED
@@ -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.
|
90
|
+
LicenseScout::Log.warn("[cli] Could not find #{full_config_file} -- skipping")
|
89
91
|
end
|
90
92
|
end
|
91
93
|
end
|
data/lib/license_scout/config.rb
CHANGED
@@ -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"
|
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
|
+
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
|