This is a Homebrew Tap with some old libraries updated for M1 compatibility to help you install old Ruby versions on current macOS.
These are for development use only and are well past their end of life and security support. ☠️
brew install basecamp/dev/openssl@1.0
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix basecamp/dev/openssl@1.0)" rbenv install [old-ruby-version]