Pin OpenSSL version to 2.2.1
openssl
is a default gem that ships with Ruby: https://stdgems.org/openssl/#gem-version
We need to use a version that is compatible with all the Rubies we support. The newest supported Ruby will be 3.0.4, which requires openssl 2.2.1.
This is currently breaking the Ruby 3 build since it requires openssl 2.2.1: https://gitlab.slack.com/archives/C01FCDAK30Q/p1663932639442819
The previous version was 2.2.0, so this is just a patch level bump: https://github.com/ruby/openssl/blob/master/History.md#version-221
Note that this also pulls in ipaddr
, another unbundled platform gem: https://github.com/ruby/ipaddr. Since it used to be part of Ruby, I think we can consider this safe to add. However, there are changes between the versions used and they caused some tests to fail: https://github.com/ruby/ipaddr/compare/v1.2.2...v1.2.4