Sha256: 00d23d892fb043d3c176337d573e43fae1a36e84c481b81459371bd984a8fe4b
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
module TCR module SSLSocketExtension def self.included(klass) klass.send(:alias_method, :initialize_without_tcr, :initialize) klass.send(:alias_method, :initialize, :initialize_with_tcr) end def initialize_with_tcr(s, context) initialize_without_tcr(s, context) if TCR.record_port?(s.remote_address.ip_port) && TCR.cassette extend(TCR::Recordable) self.cassette = TCR.cassette end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopify-tcr-0.0.5.pre.shopify | lib/tcr/ssl_socket_extension.rb |