From 10ddb688df6acac9cf1bc92bd8f450e17cecfeb0 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Tue, 16 Apr 2013 00:38:47 +0900 Subject: [PATCH] Inhibit cloning MozillaStore. --- lib/http/cookie_jar/mozilla_store.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/http/cookie_jar/mozilla_store.rb b/lib/http/cookie_jar/mozilla_store.rb index 46f7aa8..3d8e340 100644 --- a/lib/http/cookie_jar/mozilla_store.rb +++ b/lib/http/cookie_jar/mozilla_store.rb @@ -109,6 +109,10 @@ class HTTP::CookieJar @gc_index = 0 end + def initialize_copy(other) + raise TypeError, 'can\'t clone %s' % self.class + end + # The file name of the SQLite3 database given in initialization. attr_reader :filename