Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

OpenSSL usage deprecation warnings from Rubocop #206

Open
tas50 opened this issue May 15, 2020 · 0 comments
Open

OpenSSL usage deprecation warnings from Rubocop #206

tas50 opened this issue May 15, 2020 · 0 comments

Comments

@tas50
Copy link
Contributor

tas50 commented May 15, 2020

Rubocop has a new cop that detects an upcoming deprecation to the OpenSSL gem that's built into Ruby.

The openssl introducing the deprecation:
ruby/openssl#366

The new rubocop rule currently only in master:
rubocop/rubocop#7950

/Users/tsmith/dev/work/opscode-pushy-client/lib/pushy_client/protocol_handler.rb:457:13: W: Lint/DeprecatedOpenSSLConstant: Use OpenSSL::Digest.new('SHA512') instead of OpenSSL::Digest::SHA512.new.
      sha = OpenSSL::Digest::SHA512.new
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant