Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL usage deprecation warnings from Rubocop #1859

Closed
tas50 opened this issue May 15, 2020 · 0 comments · Fixed by #1860
Closed

OpenSSL usage deprecation warnings from Rubocop #1859

tas50 opened this issue May 15, 2020 · 0 comments · Fixed by #1860
Assignees

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/supermarket/src/supermarket/app/models/user.rb:229:5: W: Lint/DeprecatedOpenSSLConstant: Use OpenSSL::Digest.hexdigest('MD5', key_in_der_format) instead of OpenSSL::Digest::MD5.hexdigest(key_in_der_format).
    OpenSSL::Digest::MD5.hexdigest(key_in_der_format).scan(/../).join(':')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants