chef-zero 4.9.0 → 5.0.0

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
  SHA1:
3
- metadata.gz: 8c7f3a055202722134203eea195e863199ebe127
4
- data.tar.gz: e9840b8dcffaac05370d37bb63a9ea3181026700
3
+ metadata.gz: af78d3b28c39a909122160ebeb4abe7086ba495d
4
+ data.tar.gz: e151250b3435d68022ace2ea846f839e0bbeaddf
5
5
  SHA512:
6
- metadata.gz: b856efb3361afc894f457b253fd1b682a39fee7e4e5f924273052e546b932cbd35b575792280821427ba29a3406af93bfa098cb331d38d15e421a8d6952e9391
7
- data.tar.gz: 272ae46e85c90e99f8d1cecffad2f2ef4017b1c7d4dce079f14dcc6dfb6ddf54747dfe07298b5baf812dfa11ead7aae6ad500ee47804d07f7a69261451a84bbf
6
+ metadata.gz: 65df47af4dcf486c45c84285ba99ec247c15bdb5d4fa83d1b827d12831e29fa47e88bb02da82a78b129554fcde26a621dc2b4495ef87c1af4892d5594ddb8da3
7
+ data.tar.gz: 9ab659ccb4ad813a3a9cde3cdd3496ae448f97bd7129b0ef8c2a44c258078503e5980ca4b6954019344f57028a52133ef58697bcc8738abe26bc6a7b8cacff2b
data/Gemfile CHANGED
@@ -16,7 +16,7 @@ end
16
16
  # bundler resolve failure on "rspec_junit_formatter"
17
17
  # gem 'chef-pedant', :github => 'opscode/chef-pedant', :ref => "server-cli-option"
18
18
 
19
- # gem 'chef', :github => 'chef/chef', :branch => 'jk/policies-acls'
19
+ gem "chef", github: "chef/chef" # until chef 12.15 is released
20
20
 
21
21
  if ENV["GEMFILE_MOD"]
22
22
  puts "GEMFILE_MOD: #{ENV['GEMFILE_MOD']}"
@@ -12,20 +12,19 @@ Gem::Specification.new do |s|
12
12
  s.homepage = "http://www.chef.io"
13
13
  s.license = "Apache 2.0"
14
14
 
15
- s.required_ruby_version = ">= 2.1.0"
15
+ s.required_ruby_version = ">= 2.2.2"
16
16
 
17
17
  s.add_dependency "mixlib-log", "~> 1.3"
18
18
  s.add_dependency "hashie", ">= 2.0", "< 4.0"
19
19
  s.add_dependency "uuidtools", "~> 2.1"
20
20
  s.add_dependency "ffi-yajl", "~> 2.2"
21
- s.add_dependency "rack", "< 2" # 2.0 requires Ruby 2.2+
21
+ s.add_dependency "rack", "~> 2.0"
22
22
 
23
23
  s.add_development_dependency "pry"
24
24
  s.add_development_dependency "pry-byebug"
25
25
  s.add_development_dependency "pry-stack_explorer"
26
26
  s.add_development_dependency "rake"
27
27
  s.add_development_dependency "rspec"
28
- s.add_development_dependency "chef"
29
28
 
30
29
  s.bindir = "bin"
31
30
  s.executables = ["chef-zero"]
@@ -8,8 +8,18 @@ module ChefZero
8
8
  def self.normalize_acls(acls)
9
9
  ChefData::DefaultCreator::PERMISSIONS.each do |perm|
10
10
  acls[perm] ||= {}
11
- (acls[perm]["actors"] ||= []).uniq! # this gets doubled sometimes, for reasons.
12
11
  acls[perm]["groups"] ||= []
12
+ if acls[perm].has_key? "users"
13
+ # When clients and users are split, their combined list
14
+ # is the final list of actors that a subsequent GET will
15
+ # provide. Each list is guaranteed to be unique, but the
16
+ # combined list is not.
17
+ acls[perm]["actors"] = acls[perm].delete("users").uniq +
18
+ acls[perm].delete("clients").uniq
19
+ else
20
+ # this gets doubled sometimes, for reasons.
21
+ (acls[perm]["actors"] ||= []).uniq!
22
+ end
13
23
  end
14
24
  acls
15
25
  end
@@ -1,3 +1,3 @@
1
1
  module ChefZero
2
- VERSION = "4.9.0"
2
+ VERSION = "5.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.9.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-log
@@ -76,16 +76,16 @@ dependencies:
76
76
  name: rack
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "<"
79
+ - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '2'
81
+ version: '2.0'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "<"
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '2'
88
+ version: '2.0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: pry
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -156,20 +156,6 @@ dependencies:
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
- - !ruby/object:Gem::Dependency
160
- name: chef
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - ">="
164
- - !ruby/object:Gem::Version
165
- version: '0'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- version: '0'
173
159
  description: Self-contained, easy-setup, fast-start in-memory Chef server for testing
174
160
  and solo setup purposes
175
161
  email: jkeiser@chef.io
@@ -308,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
308
294
  requirements:
309
295
  - - ">="
310
296
  - !ruby/object:Gem::Version
311
- version: 2.1.0
297
+ version: 2.2.2
312
298
  required_rubygems_version: !ruby/object:Gem::Requirement
313
299
  requirements:
314
300
  - - ">="
@@ -316,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
302
  version: '0'
317
303
  requirements: []
318
304
  rubyforge_project:
319
- rubygems_version: 2.4.5.1
305
+ rubygems_version: 2.6.6
320
306
  signing_key:
321
307
  specification_version: 4
322
308
  summary: Self-contained, easy-setup, fast-start in-memory Chef server for testing