Currently Ruby3.1 require openSSL 1.1.x / 3.0.x to build rubyGem. Does the requirement for openSSL will be the same for all future minor version of Ruby3.1 ?
Probably yes. Ruby 3.0 gave up OpenSSL 3.0.x support in order to maintain OpenSSL 1.0.1 support. Considering this, it is basically unlikely that Ruby 3.1 will drop OpenSSL 1.1.x support. However, if there are special circumstances that force us to drop OpenSSL 1.1 support, I think it's possible we'll make a different decision.