Ruby 2.4.0 fails on cipher after an openssl update

running ubuntu 14.04, and ubuntu just updated its openssl.

now my ruby (onrails) app fails and wont start up.
any quick fix or work around would be great : )

thanks and kind regards
--botp

sample run,

:~$ openssl version ; lsb_release -a
OpenSSL 1.0.1f 6 Jan 2014

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

$ ruby -v; bin/rails -v; bin/rails s 2>&1 | grep Error
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
Rails 5.0.1
/home/botp/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:64:in
`<class:Cipher>': superclass mismatch for class Cipher (TypeError)

Maybe you should try to reinstall ruby since underlying OS library has
changed?

···

On Feb 1, 2017 08:54, "botp" <botpena@gmail.com> wrote:

running ubuntu 14.04, and ubuntu just updated its openssl.

now my ruby (onrails) app fails and wont start up.
any quick fix or work around would be great : )

thanks and kind regards
--botp

sample run,

:~$ openssl version ; lsb_release -a
OpenSSL 1.0.1f 6 Jan 2014

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

$ ruby -v; bin/rails -v; bin/rails s 2>&1 | grep Error
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
Rails 5.0.1
/home/botp/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:64:in
`<class:Cipher>': superclass mismatch for class Cipher (TypeError)

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

done that but still fails. same error.
thanks --botp

···

On Wed, Feb 1, 2017 at 2:05 PM, Aleksey Ivanov <ialexxei@gmail.com> wrote:

Maybe you should try to reinstall ruby since underlying OS library has
changed?

followup.
i manage to find a workaround.

commented the ff lines on the corr files:

#cipher.rb
64 # class Cipher < Cipher; end
65 # deprecate_constant :Cipher

digest.rb
57 # class Digest < Digest; end # :nodoc:
58 # deprecate_constant :Digest

fyi, just in case.

regards --botp

···

On Wed, Feb 1, 2017 at 11:29 PM, botp <botpena@gmail.com> wrote:

On Wed, Feb 1, 2017 at 2:05 PM, Aleksey Ivanov <ialexxei@gmail.com> wrote:

Maybe you should try to reinstall ruby since underlying OS library has
changed?

done that but still fails. same error.
thanks --botp