chef-zero 14.0.11 → 14.0.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18556b1f6a192914d736e3477f8ae1813a92c9635c812a3fad3ea13936730fc2
|
4
|
+
data.tar.gz: 29565bf8101772bc167f881f85f61b53535e542b2eef15c87e9e27c7d95ee319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e72fd5c1e0f749c4d5437a9e29daa60f6704eba864414dad242eb755f0c9466f9771de45d61670d82121a775cb0110e1e4872118391cc80ef419c280abb2d688
|
7
|
+
data.tar.gz: 14c97ab83e709f967fe5ca74537fbb1667672220810901c82d81f0d2b3150d92f55cdfaf39eb4a5a2eb852ff8f7b19adafbc49b0189e81587507abe7dd01dc69
|
data/chef-zero.gemspec
CHANGED
@@ -6,14 +6,14 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.version = ChefZero::VERSION
|
7
7
|
s.summary = "Self-contained, easy-setup, fast-start in-memory Chef server for testing and solo setup purposes"
|
8
8
|
s.description = s.summary
|
9
|
-
s.author = "
|
10
|
-
s.email = "
|
9
|
+
s.author = "Chef Software, Inc."
|
10
|
+
s.email = "oss@chef.io"
|
11
11
|
s.homepage = "https://github.com/chef/chef-zero"
|
12
12
|
s.license = "Apache-2.0"
|
13
13
|
|
14
14
|
s.required_ruby_version = ">= 2.4.0"
|
15
15
|
|
16
|
-
s.add_dependency "mixlib-log", "
|
16
|
+
s.add_dependency "mixlib-log", ">= 2.0", "< 4.0"
|
17
17
|
s.add_dependency "hashie", ">= 2.0", "< 4.0"
|
18
18
|
s.add_dependency "uuidtools", "~> 2.1"
|
19
19
|
s.add_dependency "ffi-yajl", "~> 2.2"
|
@@ -278,10 +278,10 @@ module ChefZero
|
|
278
278
|
when "root", "containers/containers", "containers/groups"
|
279
279
|
{
|
280
280
|
"create" => { "groups" => %w{admins} },
|
281
|
-
"read"
|
281
|
+
"read" => { "groups" => %w{admins users} },
|
282
282
|
"update" => { "groups" => %w{admins} },
|
283
283
|
"delete" => { "groups" => %w{admins} },
|
284
|
-
"grant"
|
284
|
+
"grant" => { "groups" => %w{admins} },
|
285
285
|
}
|
286
286
|
when "containers/environments", "containers/roles",
|
287
287
|
"containers/policy_groups", "containers/policies",
|
@@ -289,50 +289,50 @@ module ChefZero
|
|
289
289
|
"containers/data"
|
290
290
|
{
|
291
291
|
"create" => { "groups" => %w{admins users} },
|
292
|
-
"read"
|
292
|
+
"read" => { "groups" => %w{admins users clients} },
|
293
293
|
"update" => { "groups" => %w{admins users} },
|
294
294
|
"delete" => { "groups" => %w{admins users} },
|
295
|
-
"grant"
|
295
|
+
"grant" => { "groups" => %w{admins} },
|
296
296
|
}
|
297
297
|
when "containers/nodes"
|
298
298
|
{
|
299
299
|
"create" => { "groups" => %w{admins users clients} },
|
300
|
-
"read"
|
300
|
+
"read" => { "groups" => %w{admins users clients} },
|
301
301
|
"update" => { "groups" => %w{admins users} },
|
302
302
|
"delete" => { "groups" => %w{admins users} },
|
303
|
-
"grant"
|
303
|
+
"grant" => { "groups" => %w{admins} },
|
304
304
|
}
|
305
305
|
when "containers/clients"
|
306
306
|
{
|
307
307
|
"create" => { "groups" => %w{admins} },
|
308
|
-
"read"
|
308
|
+
"read" => { "groups" => %w{admins users} },
|
309
309
|
"update" => { "groups" => %w{admins} },
|
310
310
|
"delete" => { "groups" => %w{admins users} },
|
311
|
-
"grant"
|
311
|
+
"grant" => { "groups" => %w{admins} },
|
312
312
|
}
|
313
313
|
when "containers/sandboxes"
|
314
314
|
{
|
315
315
|
"create" => { "groups" => %w{admins users} },
|
316
|
-
"read"
|
316
|
+
"read" => { "groups" => %w{admins} },
|
317
317
|
"update" => { "groups" => %w{admins} },
|
318
318
|
"delete" => { "groups" => %w{admins} },
|
319
|
-
"grant"
|
319
|
+
"grant" => { "groups" => %w{admins} },
|
320
320
|
}
|
321
321
|
when "groups/admins", "groups/clients", "groups/users"
|
322
322
|
{
|
323
323
|
"create" => { "groups" => %w{admins} },
|
324
|
-
"read"
|
324
|
+
"read" => { "groups" => %w{admins} },
|
325
325
|
"update" => { "groups" => %w{admins} },
|
326
326
|
"delete" => { "groups" => %w{admins} },
|
327
|
-
"grant"
|
327
|
+
"grant" => { "groups" => %w{admins} },
|
328
328
|
}
|
329
329
|
when "groups/billing-admins"
|
330
330
|
{
|
331
331
|
"create" => { "groups" => %w{} },
|
332
|
-
"read"
|
332
|
+
"read" => { "groups" => %w{billing-admins} },
|
333
333
|
"update" => { "groups" => %w{billing-admins} },
|
334
334
|
"delete" => { "groups" => %w{} },
|
335
|
-
"grant"
|
335
|
+
"grant" => { "groups" => %w{} },
|
336
336
|
}
|
337
337
|
else
|
338
338
|
{}
|
@@ -8,12 +8,12 @@ module ChefZero
|
|
8
8
|
data = {}
|
9
9
|
|
10
10
|
artifacts = begin
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
list_data(request)
|
12
|
+
rescue Exception => e
|
13
|
+
if e.response_code == 404
|
14
|
+
return already_json_response(200, "{}")
|
15
|
+
end
|
16
|
+
end
|
17
17
|
|
18
18
|
artifacts.each do |cookbook_artifact|
|
19
19
|
cookbook_url = build_uri(request.base_uri, request.rest_path + [cookbook_artifact])
|
@@ -52,7 +52,7 @@ module ChefZero
|
|
52
52
|
cookbooks_list.keys.sort.each do |name|
|
53
53
|
constraint = Gem::Requirement.new(constraints[name])
|
54
54
|
versions = []
|
55
|
-
cookbooks_list[name].sort_by { |version| Gem::Version.new(version.dup) }.
|
55
|
+
cookbooks_list[name].sort_by { |version| Gem::Version.new(version.dup) }.reverse_each do |version|
|
56
56
|
break if num_versions && versions.size >= num_versions
|
57
57
|
if constraint.satisfied_by?(Gem::Version.new(version.dup))
|
58
58
|
versions << version
|
data/lib/chef_zero/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.0.
|
4
|
+
version: 14.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Chef Software, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-log
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '4.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '2.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '4.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: hashie
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +128,7 @@ dependencies:
|
|
122
128
|
version: '0'
|
123
129
|
description: Self-contained, easy-setup, fast-start in-memory Chef server for testing
|
124
130
|
and solo setup purposes
|
125
|
-
email:
|
131
|
+
email: oss@chef.io
|
126
132
|
executables:
|
127
133
|
- chef-zero
|
128
134
|
extensions: []
|
@@ -266,8 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
272
|
- !ruby/object:Gem::Version
|
267
273
|
version: '0'
|
268
274
|
requirements: []
|
269
|
-
|
270
|
-
rubygems_version: 2.7.6
|
275
|
+
rubygems_version: 3.0.1
|
271
276
|
signing_key:
|
272
277
|
specification_version: 4
|
273
278
|
summary: Self-contained, easy-setup, fast-start in-memory Chef server for testing
|