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: 81a886b9fb926d3f1f355c4de530c96f2d65d7a3565c39415ad4a5d257689493
4
- data.tar.gz: 7575b3e658f703ef7f9e3ea4d04a3a263ae4fe1318ac40af36ba6d235d8b1faf
3
+ metadata.gz: 18556b1f6a192914d736e3477f8ae1813a92c9635c812a3fad3ea13936730fc2
4
+ data.tar.gz: 29565bf8101772bc167f881f85f61b53535e542b2eef15c87e9e27c7d95ee319
5
5
  SHA512:
6
- metadata.gz: 7dd8837c30d93b11a012bd1dfcd335938ee42e91a0e0e0b46a20d89cd4acfd0101220185c209f77f99cc9e5d6f68c6f1ca79db9d76d760e83c925986438d7669
7
- data.tar.gz: d4bd90dd779dbdcec494219f9a08c8f1402c349b9b1985f39c836724c0ee235a7e1a49feeaf8c640381a8fb4297259a91314f9659cb1757ef834dbce85c74143
6
+ metadata.gz: e72fd5c1e0f749c4d5437a9e29daa60f6704eba864414dad242eb755f0c9466f9771de45d61670d82121a775cb0110e1e4872118391cc80ef419c280abb2d688
7
+ data.tar.gz: 14c97ab83e709f967fe5ca74537fbb1667672220810901c82d81f0d2b3150d92f55cdfaf39eb4a5a2eb852ff8f7b19adafbc49b0189e81587507abe7dd01dc69
@@ -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 = "John Keiser"
10
- s.email = "jkeiser@chef.io"
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", "~> 2.0"
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" => { "groups" => %w{admins users} },
281
+ "read" => { "groups" => %w{admins users} },
282
282
  "update" => { "groups" => %w{admins} },
283
283
  "delete" => { "groups" => %w{admins} },
284
- "grant" => { "groups" => %w{admins} },
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" => { "groups" => %w{admins users clients} },
292
+ "read" => { "groups" => %w{admins users clients} },
293
293
  "update" => { "groups" => %w{admins users} },
294
294
  "delete" => { "groups" => %w{admins users} },
295
- "grant" => { "groups" => %w{admins} },
295
+ "grant" => { "groups" => %w{admins} },
296
296
  }
297
297
  when "containers/nodes"
298
298
  {
299
299
  "create" => { "groups" => %w{admins users clients} },
300
- "read" => { "groups" => %w{admins users clients} },
300
+ "read" => { "groups" => %w{admins users clients} },
301
301
  "update" => { "groups" => %w{admins users} },
302
302
  "delete" => { "groups" => %w{admins users} },
303
- "grant" => { "groups" => %w{admins} },
303
+ "grant" => { "groups" => %w{admins} },
304
304
  }
305
305
  when "containers/clients"
306
306
  {
307
307
  "create" => { "groups" => %w{admins} },
308
- "read" => { "groups" => %w{admins users} },
308
+ "read" => { "groups" => %w{admins users} },
309
309
  "update" => { "groups" => %w{admins} },
310
310
  "delete" => { "groups" => %w{admins users} },
311
- "grant" => { "groups" => %w{admins} },
311
+ "grant" => { "groups" => %w{admins} },
312
312
  }
313
313
  when "containers/sandboxes"
314
314
  {
315
315
  "create" => { "groups" => %w{admins users} },
316
- "read" => { "groups" => %w{admins} },
316
+ "read" => { "groups" => %w{admins} },
317
317
  "update" => { "groups" => %w{admins} },
318
318
  "delete" => { "groups" => %w{admins} },
319
- "grant" => { "groups" => %w{admins} },
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" => { "groups" => %w{admins} },
324
+ "read" => { "groups" => %w{admins} },
325
325
  "update" => { "groups" => %w{admins} },
326
326
  "delete" => { "groups" => %w{admins} },
327
- "grant" => { "groups" => %w{admins} },
327
+ "grant" => { "groups" => %w{admins} },
328
328
  }
329
329
  when "groups/billing-admins"
330
330
  {
331
331
  "create" => { "groups" => %w{} },
332
- "read" => { "groups" => %w{billing-admins} },
332
+ "read" => { "groups" => %w{billing-admins} },
333
333
  "update" => { "groups" => %w{billing-admins} },
334
334
  "delete" => { "groups" => %w{} },
335
- "grant" => { "groups" => %w{} },
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
- list_data(request)
12
- rescue Exception => e
13
- if e.response_code == 404
14
- return already_json_response(200, "{}")
15
- end
16
- end
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) }.reverse.each do |version|
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
@@ -1,3 +1,3 @@
1
1
  module ChefZero
2
- VERSION = "14.0.11".freeze
2
+ VERSION = "14.0.12".freeze
3
3
  end
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.11
4
+ version: 14.0.12
5
5
  platform: ruby
6
6
  authors:
7
- - John Keiser
7
+ - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-15 00:00:00.000000000 Z
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: jkeiser@chef.io
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
- rubyforge_project:
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