Skip to content
Snippets Groups Projects
Commit 61dce49d46d6 authored by Takuya Noguchi's avatar Takuya Noguchi
Browse files

Use updated syntax in OpenSSL::Digest


Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
Changelog: other
parent 490bffe69ab2
1 merge request!81Merged upstream 15.3.0+rc42.ce.0 into heptapod branch
......@@ -74,12 +74,6 @@
- 'spec/chef/support/shared_examples/gitlab_geo_promotion_commands_shared_examples.rb'
# Offense count: 1
# Cop supports --auto-correct.
Lint/DeprecatedOpenSSLConstant:
Exclude:
- 'files/gitlab-cookbooks/package/libraries/helpers/secrets_helper.rb'
# Offense count: 1
Lint/DuplicateMethods:
Exclude:
- 'files/gitlab-ctl-commands/lib/postgresql/pgpass.rb'
......
......@@ -21,7 +21,7 @@
cert.public_key = key.public_key
cert.serial = 0x0
cert.version = 2
cert.sign(key, OpenSSL::Digest::SHA256.new)
cert.sign(key, OpenSSL::Digest.new('SHA256'))
cert
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment