chef-config 19.3.14 → 19.4.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/chef-config.gemspec +1 -1
- data/lib/chef-config/config.rb +9 -3
- data/lib/chef-config/version.rb +1 -1
- data/spec/unit/config_spec.rb +5 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ff86f1426269675fa4b9df08970dd4e50925b73b2a4ff2efbc7ee3f809f5705
|
|
4
|
+
data.tar.gz: 276d70a28023975711b552de0d6e1872632c3d5648017bf8265f348fbc4e93aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a2dcad1c514119bc174b1ba7f99fdaad2ef36cf1650465c2971fa673d6891d4a571f31164959a384517434af3aec435b3c850fdb6533f257049e9b1c5a3beee
|
|
7
|
+
data.tar.gz: dd27818b8c5a32a54959b0e365922f58ef6cb44b58fb0bfa10034fdf325774b641953aa3d3bb737e7f81a362d0f8514083ab07c4955206c8d2de668b3b1521e0
|
data/chef-config.gemspec
CHANGED
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.add_dependency "mixlib-shellout", ">= 2.0", "< 4.0"
|
|
29
29
|
spec.add_dependency "mixlib-config", ">= 2.2.12", "< 4.0"
|
|
30
30
|
spec.add_dependency "fuzzyurl"
|
|
31
|
-
spec.add_dependency "addressable"
|
|
31
|
+
spec.add_dependency "addressable", ">= 2.9.0"
|
|
32
32
|
spec.add_dependency "tomlrb", ">= 1.2", "< 3.0"
|
|
33
33
|
spec.add_dependency "racc"
|
|
34
34
|
|
data/lib/chef-config/config.rb
CHANGED
|
@@ -353,8 +353,14 @@ module ChefConfig
|
|
|
353
353
|
# DEPRECATED
|
|
354
354
|
default :enforce_path_sanity, false
|
|
355
355
|
|
|
356
|
-
# Enforce default paths by default for all APIs, not just the default internal shell_out
|
|
357
|
-
|
|
356
|
+
# Enforce default paths by default for all APIs, not just the default internal shell_out.
|
|
357
|
+
# On Windows, defaults to true so that standard system directories (C:\Windows\System32,
|
|
358
|
+
# C:\Windows, C:\Windows\System32\Wbem) are always present in the subprocess PATH.
|
|
359
|
+
# This restores Chef 18 (Omnibus) behavior for Chef 19 (Habitat-based) installs where
|
|
360
|
+
# the Habitat launcher strips those directories from the process PATH. On standard
|
|
361
|
+
# Windows installs where System32 is already in PATH, the dedup logic in default_paths
|
|
362
|
+
# prevents any duplicate entries — making this a safe no-op for non-Habitat installs.
|
|
363
|
+
default(:enforce_default_paths) { ChefUtils.windows? }
|
|
358
364
|
|
|
359
365
|
# Formatted Chef Client output is a beta feature, disabled by default:
|
|
360
366
|
default :formatter, "null"
|
|
@@ -388,7 +394,7 @@ module ChefConfig
|
|
|
388
394
|
end
|
|
389
395
|
end
|
|
390
396
|
|
|
391
|
-
# Returns true only if the path exists and is readable and
|
|
397
|
+
# Returns true only if the path exists and is readable and writable for the user.
|
|
392
398
|
#
|
|
393
399
|
# @param path [String]
|
|
394
400
|
def self.path_accessible?(path)
|
data/lib/chef-config/version.rb
CHANGED
data/spec/unit/config_spec.rb
CHANGED
|
@@ -195,7 +195,7 @@ RSpec.describe ChefConfig::Config do
|
|
|
195
195
|
# if TTY and not(force-logger)
|
|
196
196
|
# formatter = configured formatter or default formatter
|
|
197
197
|
# formatter goes to STDOUT/ERR
|
|
198
|
-
# if log file is
|
|
198
|
+
# if log file is writable
|
|
199
199
|
# log level is configured level or info
|
|
200
200
|
# log location is file
|
|
201
201
|
# else
|
|
@@ -615,6 +615,10 @@ RSpec.describe ChefConfig::Config do
|
|
|
615
615
|
expect(ChefConfig::Config[:stream_execute_output]).to eq(false)
|
|
616
616
|
end
|
|
617
617
|
|
|
618
|
+
it "ChefConfig::Config[:enforce_default_paths] defaults to true on Windows, false on non-Windows" do
|
|
619
|
+
expect(ChefConfig::Config[:enforce_default_paths]).to eq(is_windows)
|
|
620
|
+
end
|
|
621
|
+
|
|
618
622
|
it "ChefConfig::Config[:show_download_progress] defaults to false" do
|
|
619
623
|
expect(ChefConfig::Config[:show_download_progress]).to eq(false)
|
|
620
624
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chef-config
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 19.
|
|
4
|
+
version: 19.4.46
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Jacob
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 19.
|
|
18
|
+
version: 19.4.46
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 19.
|
|
25
|
+
version: 19.4.46
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: mixlib-shellout
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -83,14 +83,14 @@ dependencies:
|
|
|
83
83
|
requirements:
|
|
84
84
|
- - ">="
|
|
85
85
|
- !ruby/object:Gem::Version
|
|
86
|
-
version:
|
|
86
|
+
version: 2.9.0
|
|
87
87
|
type: :runtime
|
|
88
88
|
prerelease: false
|
|
89
89
|
version_requirements: !ruby/object:Gem::Requirement
|
|
90
90
|
requirements:
|
|
91
91
|
- - ">="
|
|
92
92
|
- !ruby/object:Gem::Version
|
|
93
|
-
version:
|
|
93
|
+
version: 2.9.0
|
|
94
94
|
- !ruby/object:Gem::Dependency
|
|
95
95
|
name: tomlrb
|
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|