chef-zero 14.0.1 → 14.0.6

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: de5e799dbc573fb80aba7bdc43fbbbe2590a6069bec55699176ae6c018438e1c
4
- data.tar.gz: de13a5194e116d360c202afa163b119e7c668ed97dc4e456cb0bdbbc317fc2de
3
+ metadata.gz: 6d0707f86a20fcf72ca9611f063fcc032229f68e0da454e46d912cf67b9a023a
4
+ data.tar.gz: 97a4261a6e7f741d42834b8e848dd2f5d181e5046d2f332205e955812fa1d401
5
5
  SHA512:
6
- metadata.gz: 76de13ce02f1972a2e920568cb0e26d704d1fb4882ce4ee28b48f3284815b66d8fcee96cd584112b57ad8be26935af0d8d428594db23bd38affc8566c63d34d3
7
- data.tar.gz: e6628d9d3ab273f70bb327d725fe7e5b705d62347f6d0b2761c90f9b93ed267691869704887c7a71122823006c2631c482456649ddbbf5743c044fe430694391
6
+ metadata.gz: f2c25d07cf431f85fa377db925c1473050f08b89fa776024989ab050d3e3419187aa204ec26bf3afd91c1ea9a2c50da40e7f18bf89e8605f92155637a4ff0031
7
+ data.tar.gz: 4bac9abe81e5f922809fd6d202dc7e766550bb77915cffdf59067167dd9e23101bf4b3d888e4fb9523125b05754f72b5922f6977d41abc9aa91dfff03d105c55
data/Gemfile CHANGED
@@ -11,9 +11,13 @@ group :development, :test do
11
11
  gem "chefstyle", git: "https://github.com/chef/chefstyle.git", branch: "master"
12
12
  end
13
13
 
14
- gem "chef", git: "https://github.com/chef/chef.git", branch: "tm/inject_log"
15
-
16
14
  if ENV["GEMFILE_MOD"]
17
15
  puts "GEMFILE_MOD: #{ENV['GEMFILE_MOD']}"
18
16
  instance_eval(ENV["GEMFILE_MOD"])
17
+ else
18
+ gem "chef", "~> 14.0"
19
19
  end
20
+
21
+ # If you want to load debugging tools into the bundle exec sandbox,
22
+ # add these additional dependencies into Gemfile.local
23
+ eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local")
@@ -12,9 +12,9 @@ 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.4.3"
15
+ s.required_ruby_version = ">= 2.4.0"
16
16
 
17
- s.add_dependency "mixlib-log", "~> 2"
17
+ s.add_dependency "mixlib-log", "~> 2.0"
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"
@@ -2,6 +2,10 @@ require "digest/md5"
2
2
  require "hashie"
3
3
 
4
4
  module ChefZero
5
+ class Mash < ::Hashie::Mash
6
+ disable_warnings
7
+ end
8
+
5
9
  module ChefData
6
10
  module CookbookData
7
11
  class << self
@@ -175,7 +179,7 @@ module ChefZero
175
179
  name(cookbook.name)
176
180
  recipes(cookbook.fully_qualified_recipe_names)
177
181
  %w{attributes grouping dependencies supports recommendations suggestions conflicting providing replacing recipes}.each do |hash_arg|
178
- self[hash_arg.to_sym] = Hashie::Mash.new
182
+ self[hash_arg.to_sym] = Mash.new
179
183
  end
180
184
  end
181
185
 
@@ -22,7 +22,7 @@ module ChefZero
22
22
  attr_reader :single_org
23
23
  attr_reader :osc_compat
24
24
  attr_reader :creators
25
- attr_reader :deleted
25
+ attr_writer :deleted
26
26
 
27
27
  PERMISSIONS = %w{create read update delete grant}
28
28
  DEFAULT_SUPERUSERS = %w{pivotal}
@@ -115,9 +115,9 @@ module ChefZero
115
115
  if value.is_a?(Hash) && !options[:allow_dirs]
116
116
  raise "exists? does not work with directories (#{path} = #{value.class})"
117
117
  end
118
- return true
118
+ true
119
119
  rescue DataNotFoundError
120
- return false
120
+ false
121
121
  end
122
122
 
123
123
  def exists_dir?(path)
@@ -125,9 +125,9 @@ module ChefZero
125
125
  if !dir.is_a? Hash
126
126
  raise "exists_dir? only works with directories (#{path} = #{dir.class})"
127
127
  end
128
- return true
128
+ true
129
129
  rescue DataNotFoundError
130
- return false
130
+ false
131
131
  end
132
132
 
133
133
  private
@@ -80,7 +80,7 @@ module ChefZero
80
80
  end
81
81
 
82
82
  def get(path, request = nil)
83
- return IO.read(path_to(path))
83
+ IO.read(path_to(path))
84
84
  rescue Errno::ENOENT
85
85
  raise DataNotFoundError.new(path)
86
86
  end
@@ -35,7 +35,7 @@ module ChefZero
35
35
  )
36
36
  end
37
37
  rescue ArgumentError
38
- return json_response(406,
38
+ json_response(406,
39
39
  { "username" => request.requestor },
40
40
  request_version: -1, response_version: -1
41
41
  )
@@ -1,3 +1,3 @@
1
1
  module ChefZero
2
- VERSION = "14.0.1"
2
+ VERSION = "14.0.6"
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: 14.0.1
4
+ version: 14.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-19 00:00:00.000000000 Z
11
+ date: 2018-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-log
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: hashie
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -296,7 +296,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
296
296
  requirements:
297
297
  - - ">="
298
298
  - !ruby/object:Gem::Version
299
- version: 2.4.3
299
+ version: 2.4.0
300
300
  required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  requirements:
302
302
  - - ">="
@@ -304,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
304
  version: '0'
305
305
  requirements: []
306
306
  rubyforge_project:
307
- rubygems_version: 2.7.3
307
+ rubygems_version: 2.7.6
308
308
  signing_key:
309
309
  specification_version: 4
310
310
  summary: Self-contained, easy-setup, fast-start in-memory Chef server for testing