lib/spidr/session_cache.rb in spidr-0.7.0 vs lib/spidr/session_cache.rb in spidr-0.7.1
- old
+ new
@@ -1,9 +1,11 @@
-require 'spidr/settings/proxy'
-require 'spidr/settings/timeouts'
-require 'spidr/spidr'
+# frozen_string_literal: true
+require_relative 'settings/proxy'
+require_relative 'settings/timeouts'
+require_relative 'spidr'
+
require 'net/http'
require 'openssl'
module Spidr
#
@@ -133,10 +135,10 @@
# session key
key = key_for(url)
if (sess = @sessions[key])
- begin
+ begin
sess.finish
rescue IOError
end
@sessions.delete(key)