chef-utils 17.10.19 → 18.0.161

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: 9e8a515c1bedf19e5ccbf6d6ea9e8669860dbee13077c0c121be8e1758be6ba9
4
- data.tar.gz: beb58e3229a542551f5630249beaf78fd4f1154b616475c3b103b71a2370cbac
3
+ metadata.gz: d505e652fdce64100eece4947fa54d9261ba8a80b24f6096f02fc7e9c009bc6b
4
+ data.tar.gz: e381d10614a25934e4123f55b4e4bc91ce9d6926e4a777fc93af578892387065
5
5
  SHA512:
6
- metadata.gz: 11b91a02f474aba1ab4ed4f44ff63be66610b897b64ab4efbf6021aec91a39f8a7194f43e4b7865f1b3e07af3c3ac4d0abc0e77326ec50caeed1fd516dbb0fe6
7
- data.tar.gz: bc6a8e98a6f0f76c1c19e91434b15529225ed48c7886fe6e9a5e400ce3fee6dc5befe22aeef757e3a5ba265d2935d88dd67bd96a355766a5bc8ca1b5be0944d1
6
+ metadata.gz: 68a27c57f3f3319314d1c1779b26af258a7b052aa51fa255f0e4987c93960a9ea725e7e3bb48ad5ec5b6956e4acb8f58b6ab5855562008c3e997a14335cfb161
7
+ data.tar.gz: 6d5e6e9852c14d1cd77dd63ed73bb20a51b40f8bafcabdfb7c12c5ce299529d9810b5dd7d644c4aba8b8efb699591c0f41ac25fceb4216f6900ec073903fb065
@@ -64,6 +64,9 @@ module ChefUtils
64
64
 
65
65
  # The client's gem
66
66
  GEM = "chef"
67
+
68
+ # The client's container image
69
+ CONTAINER_REF = "chef/chef"
67
70
  end
68
71
 
69
72
  class Inspec
@@ -114,11 +117,11 @@ module ChefUtils
114
117
  # The server's configuration utility
115
118
  SERVER_CTL = "chef-server-ctl"
116
119
 
117
- # OS user for server
118
- SYSTEM_USER = "opscode"
119
-
120
120
  # The server`s docs URL
121
121
  SERVER_DOCS = "https://docs.chef.io/server/"
122
+
123
+ # OS user for server
124
+ SYSTEM_USER = "opscode"
122
125
  end
123
126
 
124
127
  class Solo
@@ -270,12 +270,17 @@ module ChefUtils
270
270
  # Determine if the Ruby VM is currently running on a Windows node (ChefSpec can never stub
271
271
  # this behavior, so this is useful for code which can never be parsed on a non-Windows box).
272
272
  #
273
+ # April 2022 - Note that we changed the platform identifier from 'mingw32' to 'mingw'
274
+ # We did this because Ruby 3.1 introduces the new universal windows platform of 'x64-mingw-ucrt'
275
+ # We updated the existing regex snippet to capture both the 32-bit platform and the new x64
276
+ # universal platform
277
+ #
273
278
  # @since 15.5
274
279
  #
275
280
  # @return [Boolean]
276
281
  #
277
282
  def windows_ruby?
278
- !!(RUBY_PLATFORM =~ /mswin|mingw32|windows/)
283
+ !!(RUBY_PLATFORM =~ /mswin|mingw|windows/)
279
284
  end
280
285
 
281
286
  #
@@ -16,5 +16,5 @@
16
16
 
17
17
  module ChefUtils
18
18
  CHEFUTILS_ROOT = File.expand_path("..", __dir__)
19
- VERSION = "17.10.19"
19
+ VERSION = "18.0.161"
20
20
  end
@@ -210,7 +210,7 @@ RSpec.describe ChefUtils::DSL::PlatformFamily do
210
210
  end
211
211
 
212
212
  context "node-independent windows APIs" do
213
- if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
213
+ if RUBY_PLATFORM.match?(/mswin|mingw|windows/)
214
214
  it "reports true for :windows_ruby?" do
215
215
  expect(described_class.windows_ruby?).to be true
216
216
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.10.19
4
+ version: 18.0.161
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-16 00:00:00.000000000 Z
11
+ date: 2022-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.2.32
97
+ rubygems_version: 3.3.7
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Basic utility functions for Core Chef Infra development