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 +4 -4
- data/Gemfile +6 -2
- data/chef-zero.gemspec +2 -2
- data/lib/chef_zero/chef_data/cookbook_data.rb +5 -1
- data/lib/chef_zero/chef_data/default_creator.rb +1 -1
- data/lib/chef_zero/data_store/memory_store_v2.rb +4 -4
- data/lib/chef_zero/data_store/raw_file_store.rb +1 -1
- data/lib/chef_zero/rest_base.rb +1 -1
- data/lib/chef_zero/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d0707f86a20fcf72ca9611f063fcc032229f68e0da454e46d912cf67b9a023a
|
4
|
+
data.tar.gz: 97a4261a6e7f741d42834b8e848dd2f5d181e5046d2f332205e955812fa1d401
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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")
|
data/chef-zero.gemspec
CHANGED
@@ -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.
|
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] =
|
182
|
+
self[hash_arg.to_sym] = Mash.new
|
179
183
|
end
|
180
184
|
end
|
181
185
|
|
@@ -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
|
-
|
118
|
+
true
|
119
119
|
rescue DataNotFoundError
|
120
|
-
|
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
|
-
|
128
|
+
true
|
129
129
|
rescue DataNotFoundError
|
130
|
-
|
130
|
+
false
|
131
131
|
end
|
132
132
|
|
133
133
|
private
|
data/lib/chef_zero/rest_base.rb
CHANGED
data/lib/chef_zero/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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
|