chef-zero 3.1.1 → 3.1.2

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: b3698741be5962418f4c8608b65e0d81016b83ee
4
- data.tar.gz: 358bd5cbef06d93ce4cd7e493aaa5e3761d522d7
3
+ metadata.gz: adbe4fdeea51156a8ca4c962db7d52502377726f
4
+ data.tar.gz: c62f0e6611983ea46a3c65f4c8afd608fa44da48
5
5
  SHA512:
6
- metadata.gz: 8ea5173c1be35f69f3b38b46a119f9fe70117d6bfc9b74acca1912c13b40a6ad033caf1b0523326a078ff427553f8b6cf829badc3dee45e83990feca8186e116
7
- data.tar.gz: 4fbb4286251ab707f427fce4b0c42e792c7182b0c61aa0fc7f6976aa7637a38eb036c282dd41b58560dc6c1b16a511287eb775e90482a66643f07a757c203e0b
6
+ metadata.gz: 1f29a803c8a6692e7a9a868d76d9391776812fbb31fc2ff0d0779918b61c9108f7be26f3fecae2b636e9c6da61d906baa55b4654fefdb28f52544a4db6cd7084
7
+ data.tar.gz: 84d70a227925b452a248c3d2c76456957c89bbdebf7483753a5671e96aebf1a0be24862d5fe5faf16420fb98edc8fd76b29d92af11838215ef79ce1da7ab4025
@@ -137,12 +137,21 @@ module ChefZero
137
137
  end
138
138
  end
139
139
 
140
- def self.cookbook(name, version, data, options = {}, &block)
141
- before(:each) { cookbook(name, version, data, &block) }
140
+ def self.cookbook(name, version, data = {}, options = {}, &block)
141
+ before(:each) do
142
+ cookbook(name, version, data, &block)
143
+ end
142
144
  end
143
145
 
144
- def cookbook(name, version, data, options = {}, &block)
146
+ def cookbook(name, version, data = {}, options = {}, &block)
145
147
  with_object_path("cookbooks/#{name}") do
148
+ if data.has_key?('metadata.rb')
149
+ if data['metadata.rb'].nil?
150
+ data.delete('metadata.rb')
151
+ end
152
+ else
153
+ data['metadata.rb'] = "name #{name.inspect}; version #{version.inspect}"
154
+ end
146
155
  ChefZero::RSpec.server.load_data({ 'cookbooks' => { "#{name}-#{version}" => data.merge(options) }}, current_org)
147
156
  instance_eval(&block) if block_given?
148
157
  end
@@ -486,8 +486,10 @@ module ChefZero
486
486
  [ "/organizations/*/containers/*", ContainerEndpoint.new(self) ],
487
487
  [ "/organizations/*/groups", GroupsEndpoint.new(self) ],
488
488
  [ "/organizations/*/groups/*", GroupEndpoint.new(self) ],
489
+ [ "/organizations/*/organization/_acl", AclsEndpoint.new(self) ],
489
490
  [ "/organizations/*/organizations/_acl", AclsEndpoint.new(self) ],
490
491
  [ "/organizations/*/*/*/_acl", AclsEndpoint.new(self) ],
492
+ [ "/organizations/*/organization/_acl/*", AclEndpoint.new(self) ],
491
493
  [ "/organizations/*/organizations/_acl/*", AclEndpoint.new(self) ],
492
494
  [ "/organizations/*/*/*/_acl/*", AclEndpoint.new(self) ]
493
495
  ]
@@ -1,3 +1,3 @@
1
1
  module ChefZero
2
- VERSION = '3.1.1'
2
+ VERSION = '3.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser