Sha256: c9197d3a7896a450cf18d8fda7039dfd7211bfc2042b7a56f5d285995d354c8a

Contents?: true

Size: 769 Bytes

Versions: 13

Compression:

Stored size: 769 Bytes

Contents

# typed: true
# frozen_string_literal: true

require 'rest-client'
require 'net/http'

module Workato
  module Extension
    module ExtraChainCert
      module Net
        module HTTP
          attr_accessor :extra_chain_cert

          def self.included(base)
            ssl_ivnames = base.const_get('SSL_IVNAMES', false) # rubocop:disable Sorbet/ConstantsFromStrings
            ssl_ivnames << :@extra_chain_cert unless ssl_ivnames.include?(:@extra_chain_cert)

            ssl_attributes = base.const_get('SSL_ATTRIBUTES', false) # rubocop:disable Sorbet/ConstantsFromStrings
            ssl_attributes << :extra_chain_cert unless ssl_attributes.include?(:extra_chain_cert)
          end
        end
      end

      ::Net::HTTP.include Net::HTTP
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
workato-connector-sdk-1.3.14 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.13 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.12 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.11 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.10 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.9 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.8 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.7 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.6 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.5 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.4 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.3 lib/workato/extension/extra_chain_cert.rb
workato-connector-sdk-1.3.2 lib/workato/extension/extra_chain_cert.rb