chef-config 16.1.0 → 16.1.16

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: e344a243d3403a1ed61ba3a1cc489a1308944c69ac08280b640383ef7a2dedb7
4
- data.tar.gz: c936ee0ff53682b95b6c9c3cc9706fcb93e4bf1f33505794191cce80faca28e0
3
+ metadata.gz: 32625e6af835a08cd5a952e48585aa44e1ca1249a4ead9a905afc09bd6713cb8
4
+ data.tar.gz: 32ec2aec397191c65220a445eca899ed0ea6107de2114c3284ce59306c699aef
5
5
  SHA512:
6
- metadata.gz: 332493f5012f9cb0d48060c7ea8e535a953c35ef3d74137c437adb3f35a115aac5624e3556610b470c7ed37a99ce3004e6c13ba3c8477b2df3474782f3c0a108
7
- data.tar.gz: 7480d9d496868db76840fb21594a3175e9b04f17aefa9dc8393484a0a20df2c7aa24571dd36c92e9366349955e78efa5f0122aef3e64456f1ae8a23b4cd39dfb
6
+ metadata.gz: 3e9e5180cfeda09cbed3762343dd7382759e6c4979cecb99b3af983aecbf2ab190cc3d08e5e6182c0099d584a800e8f551e79152809649a75ce142b92c3af0fb
7
+ data.tar.gz: 9986d69845556dd4da7bd89b2ff4b5f5150e799a4a391d4a169c21268083445aab8621e23e65d095a8aed234596efe581604d232b0dcf07231d2b48f9dfd19ae
@@ -479,7 +479,7 @@ module ChefConfig
479
479
  # 11 (true) or Chef Server 12 (false). Chef Zero can still serve
480
480
  # policyfile objects in Chef 11 mode, as long as `repo_mode` is set to
481
481
  # "hosted_everything". The primary differences are:
482
- # * Chef 11 mode doesn't support multi-tennant, so there is no
482
+ # * Chef 11 mode doesn't support multi-tenant, so there is no
483
483
  # distinction between global and org-specific objects (since there are
484
484
  # no orgs).
485
485
  # * Chef 11 mode doesn't expose RBAC objects
@@ -527,7 +527,7 @@ module ChefConfig
527
527
  # switching based on it is almost certainly doing the wrong thing and papering over
528
528
  # bugs that should be fixed in one or the other class, and will be brittle and destined
529
529
  # to break in the future (and not necessarily on a major version bump). Checking this value
530
- # is also not sufficent to determine if we are not running against a server since this can
530
+ # is also not sufficient to determine if we are not running against a server since this can
531
531
  # be unset but :local_mode may be set. It would be accurate to check both :solo and :local_mode
532
532
  # to determine if we're not running against a server, but the more semantically accurate test
533
533
  # is going to be combining :solo_legacy_mode and :local_mode.
@@ -952,7 +952,7 @@ module ChefConfig
952
952
  # distribution.
953
953
  #
954
954
  # The disadvantages of lazily loading files are that users some time find it
955
- # confusing that their cookbooks are not fully synchronzied to the cache initially,
955
+ # confusing that their cookbooks are not fully synchronized to the cache initially,
956
956
  # and more importantly the time-sensitive URLs which are in the manifest may time
957
957
  # out on long Chef runs before the resource that uses the file is converged
958
958
  # (leading to many confusing 403 errors on template/cookbook_file resources).
@@ -1109,7 +1109,7 @@ module ChefConfig
1109
1109
  end
1110
1110
 
1111
1111
  # Given a scheme, host, and port, return the correct proxy URI based on the
1112
- # set environment variables, unless exluded by no_proxy, in which case nil
1112
+ # set environment variables, unless excluded by no_proxy, in which case nil
1113
1113
  # is returned
1114
1114
  def self.proxy_uri(scheme, host, port)
1115
1115
  proxy_env_var = ENV["#{scheme}_proxy"].to_s.strip
@@ -130,16 +130,16 @@ module ChefConfig
130
130
  end
131
131
 
132
132
  # This is the INVERSE of Pathname#cleanpath, it converts forward
133
- # slashes to backwhacks for Windows. Since the Ruby API and the
133
+ # slashes to backslashes for Windows. Since the Ruby API and the
134
134
  # Windows APIs all consume forward slashes, this helper function
135
135
  # should only be used for *DISPLAY* logic to send strings back
136
- # to the user with backwhacks. Internally, filename paths should
136
+ # to the user with backslashes. Internally, filename paths should
137
137
  # generally be stored with forward slashes for consistency. It is
138
138
  # not necessary or desired to blindly convert pathnames to have
139
- # backwhacks on Windows.
139
+ # backslashes on Windows.
140
140
  #
141
141
  # Generally, if the user isn't going to be seeing it, you should be
142
- # using Pathname#cleanpath intead of this function.
142
+ # using Pathname#cleanpath instead of this function.
143
143
  def self.cleanpath(path)
144
144
  path = Pathname.new(path).cleanpath.to_s
145
145
  # ensure all forward slashes are backslashes
@@ -15,5 +15,5 @@
15
15
 
16
16
  module ChefConfig
17
17
  CHEFCONFIG_ROOT = File.expand_path("../..", __FILE__)
18
- VERSION = "16.1.0".freeze
18
+ VERSION = "16.1.16".freeze
19
19
  end
@@ -175,11 +175,11 @@ RSpec.describe ChefConfig::Config do
175
175
  end
176
176
 
177
177
  context "when passes multiple cookbook_paths in config options" do
178
- let(:extra_config_options) { ["cookbook_path=[first_cookbook, secound_cookbooks]"] }
178
+ let(:extra_config_options) { ["cookbook_path=[first_cookbook, second_cookbooks]"] }
179
179
 
180
180
  it "expanded paths" do
181
181
  apply_config
182
- expect(described_class[:cookbook_path]).to eq(["#{current_directory}/first_cookbook", "#{current_directory}/secound_cookbooks"])
182
+ expect(described_class[:cookbook_path]).to eq(["#{current_directory}/first_cookbook", "#{current_directory}/second_cookbooks"])
183
183
  end
184
184
  end
185
185
  end
@@ -205,8 +205,8 @@ RSpec.describe ChefConfig::Config do
205
205
  # end
206
206
  # else
207
207
  # formatter = "null"
208
- # log_location = configured-value or defualt
209
- # log_level = info or defualt
208
+ # log_location = configured-value or default
209
+ # log_level = info or default
210
210
  # end
211
211
  #
212
212
  it "has an empty list of formatters by default" do
@@ -52,7 +52,7 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do
52
52
  end
53
53
 
54
54
  it "tests a path's existence" do
55
- expect(config_loader.path_exists?("/nope/nope/nope/nope/frab/jab/nab")).to be(false)
55
+ expect(config_loader.path_exists?("/nope/nope/nope/nope/slab/jab/nab")).to be(false)
56
56
  expect(config_loader.path_exists?(__FILE__)).to be(true)
57
57
  end
58
58
 
@@ -214,7 +214,7 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do
214
214
 
215
215
  describe "loading the config file" do
216
216
 
217
- context "when no explicit config is specifed and no implicit config is found" do
217
+ context "when no explicit config is specified and no implicit config is found" do
218
218
 
219
219
  before do
220
220
  allow(config_loader).to receive(:path_exists?).with(an_instance_of(String)).and_return(false)
@@ -230,7 +230,7 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do
230
230
 
231
231
  context "when an explicit config is given but it doesn't exist" do
232
232
 
233
- let(:explicit_config_location) { "/nope/nope/nope/frab/jab/nab" }
233
+ let(:explicit_config_location) { "/nope/nope/nope/slab/jab/nab" }
234
234
 
235
235
  it "raises a configuration error" do
236
236
  expect { config_loader.load }.to raise_error(ChefConfig::ConfigurationError)
@@ -402,12 +402,12 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do
402
402
  end
403
403
 
404
404
  context "has a non rb file" do
405
- let(:sytax_error_content) { "{{{{{:{{" }
405
+ let(:syntax_error_content) { "{{{{{:{{" }
406
406
  let(:config_content) { "config_d_file_evaluated(true)" }
407
407
 
408
408
  let!(:not_confd_file) do
409
409
  Tempfile.new(["Chef-WorkstationConfigLoader-rspec-test", ".foorb"], tempdir).tap do |t|
410
- t.print(sytax_error_content)
410
+ t.print(syntax_error_content)
411
411
  t.close
412
412
  end
413
413
  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: 16.1.0
4
+ version: 16.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-15 00:00:00.000000000 Z
11
+ date: 2020-05-27 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: 16.1.0
19
+ version: 16.1.16
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: 16.1.0
26
+ version: 16.1.16
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-shellout
29
29
  requirement: !ruby/object:Gem::Requirement