Sha256: 7b9571b9d8776baec2b276809a3a510ee2a30a089750bc46f3778475832f3bc2

Contents?: true

Size: 385 Bytes

Versions: 3

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true
require 'openssl'

module SoapyBing
  module Helpers
    module SSLVersion
      DEFAULT_SSL_VERSION = :TLSv1

      def ssl_version
        if OpenSSL::SSL::SSLContext::METHODS.include? DEFAULT_SSL_VERSION
          DEFAULT_SSL_VERSION
        else
          OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ssl_version]
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
soapy_bing-0.2.0 lib/soapy_bing/helpers/ssl_version.rb
soapy_bing-0.1.0 lib/soapy_bing/helpers/ssl_version.rb
soapy_bing-0.0.5 lib/soapy_bing/helpers/ssl_version.rb