From 2a9476707cef2760f504a487bce53d6eac946136 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 22 Oct 2012 15:10:34 +0900 Subject: [PATCH] HTTP::CookieJar#load: Use File.open() instead of Kernel#open(). --- lib/http/cookie_jar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http/cookie_jar.rb b/lib/http/cookie_jar.rb index 595bb5a..533ec72 100644 --- a/lib/http/cookie_jar.rb +++ b/lib/http/cookie_jar.rb @@ -117,7 +117,7 @@ class HTTP::CookieJar # :yaml <- YAML structure. # :cookiestxt <- Mozilla's cookies.txt format def load(file, format = :yaml) - open(file) { |f| + File.open(file) { |f| case format when :yaml then load_yaml