diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-05-22 10:13:51 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-05-22 10:13:51 -0700 |
commit | 003fbc132935961e93667f11c3f45ce4914b83ac (patch) | |
tree | 473cf75cf4442ac5424b70197ad278ac670407d3 /spec/support | |
parent | c6666085f6a47bcb1b32446750760d6170927608 (diff) | |
download | chef-openssl_fixes.tar.gz |
Update our usage of OpenSSL::Digest to avoid Ruby 3 breaking changeopenssl_fixes
There's a RuboCop cop to fix these before Ruby 3 breaks it.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/chef_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/chef_helpers.rb b/spec/support/chef_helpers.rb index 88c4524e97..c566ced8b1 100644 --- a/spec/support/chef_helpers.rb +++ b/spec/support/chef_helpers.rb @@ -27,7 +27,7 @@ Chef::Log.level(Chef::Config.log_level) Chef::Config.solo(false) def sha256_checksum(path) - OpenSSL::Digest::SHA256.hexdigest(File.read(path)) + OpenSSL::Digest.hexdigest("SHA256", File.read(path)) end # extracted from Ruby < 2.5 to return a unique temp file name without creating it |