lib/active_merchant/connection.rb in activemerchant-1.75.0 vs lib/active_merchant/connection.rb in activemerchant-1.76.0

- old
+ new

@@ -23,11 +23,11 @@ attr_accessor :ssl_version attr_accessor :ca_file attr_accessor :ca_path attr_accessor :pem attr_accessor :pem_password - attr_accessor :wiredump_device + attr_reader :wiredump_device attr_accessor :logger attr_accessor :tag attr_accessor :ignore_http_status attr_accessor :max_retries attr_accessor :proxy_address @@ -44,9 +44,14 @@ @max_retries = MAX_RETRIES @ignore_http_status = false @ssl_version = nil @proxy_address = nil @proxy_port = nil + end + + def wiredump_device=(device) + raise ArgumentError, "can't wiredump to frozen #{device.class}" if device && device.frozen? + @wiredump_device = device end def request(method, body, headers = {}) request_start = Process.clock_gettime(Process::CLOCK_MONOTONIC)