postmodern / ruby-install

Installs Ruby, JRuby, TruffleRuby, or mruby
MIT License
1.89k stars 250 forks source link

Install homebrew openssl@1.1 for Ruby <= 3.0 and openssl@3.0 for Ruby >= 3.1 #474

Closed postmodern closed 8 months ago

postmodern commented 8 months ago

Install a different homebrew openssl version based on the Ruby version. This should allow users to attempt installing older versions of Ruby which requires openssl@1.1, and newer versions of Ruby which require openssl@3.0. However, this code will do nothing for Linux or BSD users who's package managers only provide one version of openssl; which is openssl-3.0 because openssl-1.1 has reached EoL. This code will eventually be removed in the future, because continuing to install or support EoL versions of Ruby or openssl, which are no longer receiving security patches is risky.