chef-config 16.1.16 → 16.2.44

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: 32625e6af835a08cd5a952e48585aa44e1ca1249a4ead9a905afc09bd6713cb8
4
- data.tar.gz: 32ec2aec397191c65220a445eca899ed0ea6107de2114c3284ce59306c699aef
3
+ metadata.gz: f95d6cbee8afbc2b5b6ceda9c6c18a75f542c545b9f01587f0f216c2d4cb735f
4
+ data.tar.gz: b373dd5fdf065d4b4cc9287d7d4254ba3b340b8b4ded5334c33939b596c6db8d
5
5
  SHA512:
6
- metadata.gz: 3e9e5180cfeda09cbed3762343dd7382759e6c4979cecb99b3af983aecbf2ab190cc3d08e5e6182c0099d584a800e8f551e79152809649a75ce142b92c3af0fb
7
- data.tar.gz: 9986d69845556dd4da7bd89b2ff4b5f5150e799a4a391d4a169c21268083445aab8621e23e65d095a8aed234596efe581604d232b0dcf07231d2b48f9dfd19ae
6
+ metadata.gz: cd07d4b433d12ec1f9361c2d69ec07ecc3558aa5316ce07b546e8ee2b208247441621263045d0f5613c22e89f753eae817423d9036c8ca4b785322b4adeb665d
7
+ data.tar.gz: cbbb118a11769451ee5e40277e975465e43f49ca532deaea6521d2823982cf70a20468b5e348c7240514d312e4846d2fb77b295d95fb6d8fdd5270a53bee45fe
@@ -450,7 +450,7 @@ module ChefConfig
450
450
  default :repo_mode do
451
451
  if local_mode && !chef_zero.osc_compat
452
452
  "hosted_everything"
453
- elsif chef_server_url =~ %r{/+organizations/.+}
453
+ elsif %r{/+organizations/.+}.match?(chef_server_url)
454
454
  "hosted_everything"
455
455
  else
456
456
  "everything"
@@ -506,7 +506,7 @@ module ChefConfig
506
506
  default(:chef_server_root) do
507
507
  # if the chef_server_url is a path to an organization, aka
508
508
  # 'some_url.../organizations/*' then remove the '/organization/*' by default
509
- if configuration[:chef_server_url] =~ %r{/organizations/\S*$}
509
+ if %r{/organizations/\S*$}.match?(configuration[:chef_server_url])
510
510
  configuration[:chef_server_url].split("/")[0..-3].join("/")
511
511
  elsif configuration[:chef_server_url] # default to whatever chef_server_url is
512
512
  configuration[:chef_server_url]
@@ -1118,7 +1118,7 @@ module ChefConfig
1118
1118
  # proxy before parsing. The regex /^.*:\/\// matches, for example, http://. Reusing proxy
1119
1119
  # here since we are really just trying to get the string built correctly.
1120
1120
  proxy = unless proxy_env_var.empty?
1121
- if proxy_env_var =~ %r{^.*://}
1121
+ if %r{^.*://}.match?(proxy_env_var)
1122
1122
  URI.parse(proxy_env_var)
1123
1123
  else
1124
1124
  URI.parse("#{scheme}://#{proxy_env_var}")
@@ -91,7 +91,7 @@ module ChefConfig
91
91
  def self.windows_max_length_exceeded?(path)
92
92
  # Check to see if paths without the \\?\ prefix are over the maximum allowed length for the Windows API
93
93
  # http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx
94
- unless path =~ /^\\\\?\\/
94
+ unless /^\\\\?\\/.match?(path)
95
95
  if path.length > WIN_MAX_PATH
96
96
  return true
97
97
  end
@@ -103,7 +103,7 @@ module ChefConfig
103
103
  def self.printable?(string)
104
104
  # returns true if string is free of non-printable characters (escape sequences)
105
105
  # this returns false for whitespace escape sequences as well, e.g. \n\t
106
- if string =~ /[^[:print:]]/
106
+ if /[^[:print:]]/.match?(string)
107
107
  false
108
108
  else
109
109
  true
@@ -15,5 +15,5 @@
15
15
 
16
16
  module ChefConfig
17
17
  CHEFCONFIG_ROOT = File.expand_path("../..", __FILE__)
18
- VERSION = "16.1.16".freeze
18
+ VERSION = "16.2.44".freeze
19
19
  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.16
4
+ version: 16.2.44
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-27 00:00:00.000000000 Z
11
+ date: 2020-06-17 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.16
19
+ version: 16.2.44
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.16
26
+ version: 16.2.44
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-shellout
29
29
  requirement: !ruby/object:Gem::Requirement