chef-boneyard / opscode-pushy-client

Client API for Pushy
Apache License 2.0
12 stars 14 forks source link

OpenSSL usage deprecation warnings from Rubocop #206

Open tas50 opened 4 years ago

tas50 commented 4 years ago

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

The openssl introducing the deprecation: https://github.com/ruby/openssl/pull/366

The new rubocop rule currently only in master: https://github.com/rubocop-hq/rubocop/pull/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
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^