It is better to let user to select particular ssl protocol easily.
For example, in https module, if the client want to use tls1 protocol compulsively, it is a little harder to do it.
With the following diff:
< flag = (flag ? true : false)
< @ssl_context = OpenSSL::SSL::SSLContext.new
@ssl_context = flag == true ? OpenSSL::SSL::SSLContext.new : OpenSSL::SSL::SSLContext.new(flag)
User could select the protocol as wish such as:
http.use_ssl = :TLSv1
http.use_ssl = true