chef-config 16.10.17 → 17.1.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/chef-config.gemspec +1 -1
- data/lib/chef-config/config.rb +2 -2
- data/lib/chef-config/path_helper.rb +1 -1
- data/lib/chef-config/version.rb +1 -1
- data/spec/unit/config_spec.rb +1 -1
- data/spec/unit/path_helper_spec.rb +5 -5
- 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: f694bbda24ebf4eab27163a9d730b2b45ba7082e71ad9bffd70f0f146a9d5cb6
|
4
|
+
data.tar.gz: f844d4d5927aa01a05b0604e081e959f1f5d863a11190b0dab61cce94ac2ab39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 406ca654e45344828425e7651f6bf473664ac404459dbb469169ad637aa7f3ad40bf29e29a1075fa5e465b82cde6a9c1d8dbd57bed207e9267787f465e6d1902
|
7
|
+
data.tar.gz: 8ae6334114565f1b8dbf443f762d61672092c21c60d931a2148fddc58a45349bf3cd22a93a86cbcb55198866ac512cbd61db5fd39fbbe8fc06e00243e4bf4b14
|
data/chef-config.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = "https://github.com/chef/chef"
|
13
13
|
spec.license = "Apache-2.0"
|
14
14
|
|
15
|
-
spec.required_ruby_version = ">= 2.6
|
15
|
+
spec.required_ruby_version = ">= 2.6"
|
16
16
|
|
17
17
|
spec.metadata = {
|
18
18
|
"bug_tracker_uri" => "https://github.com/chef/chef/issues",
|
data/lib/chef-config/config.rb
CHANGED
@@ -71,8 +71,8 @@ module ChefConfig
|
|
71
71
|
# Some installations will be on different drives so use the drive that
|
72
72
|
# the expanded path to __FILE__ is found.
|
73
73
|
drive = windows_installation_drive
|
74
|
-
if drive && path[0] ==
|
75
|
-
path = PathHelper.join(drive, path.split(
|
74
|
+
if drive && path[0] == "\\" && path.split("\\")[2] == "chef"
|
75
|
+
path = PathHelper.join(drive, path.split("\\", 3)[2])
|
76
76
|
end
|
77
77
|
end
|
78
78
|
path
|
data/lib/chef-config/version.rb
CHANGED
data/spec/unit/config_spec.rb
CHANGED
@@ -225,7 +225,7 @@ RSpec.describe ChefConfig::Config do
|
|
225
225
|
end
|
226
226
|
|
227
227
|
describe "#var_chef_path" do
|
228
|
-
let
|
228
|
+
let(:dirname) { ChefUtils::Dist::Infra::DIR_SUFFIX }
|
229
229
|
|
230
230
|
context "on unix", :unix_only do
|
231
231
|
it "var_chef_dir is /var/chef" do
|
@@ -56,7 +56,7 @@ RSpec.describe ChefConfig::PathHelper do
|
|
56
56
|
context "forcing windows/non-windows" do
|
57
57
|
context "forcing windows" do
|
58
58
|
it "path_separator is \\" do
|
59
|
-
expect(path_helper.path_separator(windows: true)).to eq(
|
59
|
+
expect(path_helper.path_separator(windows: true)).to eq("\\")
|
60
60
|
end
|
61
61
|
|
62
62
|
context "platform-specific #join behavior" do
|
@@ -133,7 +133,7 @@ RSpec.describe ChefConfig::PathHelper do
|
|
133
133
|
end
|
134
134
|
|
135
135
|
it "path_separator is \\" do
|
136
|
-
expect(path_helper.path_separator).to eq(
|
136
|
+
expect(path_helper.path_separator).to eq("\\")
|
137
137
|
end
|
138
138
|
|
139
139
|
context "platform-specific #join behavior" do
|
@@ -355,14 +355,14 @@ RSpec.describe ChefConfig::PathHelper do
|
|
355
355
|
end
|
356
356
|
|
357
357
|
context "on windows" do
|
358
|
-
let
|
358
|
+
let(:is_windows) { true }
|
359
359
|
end
|
360
360
|
|
361
361
|
context "on unix" do
|
362
|
-
let
|
362
|
+
let(:is_windows) { false }
|
363
363
|
|
364
364
|
context "when HOME is not set" do
|
365
|
-
let
|
365
|
+
let(:env) { {} }
|
366
366
|
it "returns an empty array" do
|
367
367
|
expect(path_helper.all_homes).to eq([])
|
368
368
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 17.1.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-utils
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 17.1.35
|
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:
|
26
|
+
version: 17.1.35
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-shellout
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,14 +151,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
requirements:
|
152
152
|
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: 2.6
|
154
|
+
version: '2.6'
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
|
-
rubygems_version: 3.
|
161
|
+
rubygems_version: 3.2.15
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: Chef Infra's default configuration and config loading library
|