lib/spidr/session_cache.rb in spidr-0.6.0 vs lib/spidr/session_cache.rb in spidr-0.6.1

- old
+ new

@@ -63,11 +63,11 @@ # # @since 0.2.3 # def active?(url) # normalize the url - url = URI(url.to_s) unless url.kind_of?(URI) + url = URI(url) # session key key = key_for(url) return @sessions.has_key?(key) @@ -82,11 +82,11 @@ # @return [Net::HTTP] # The active HTTP session object. # def [](url) # normalize the url - url = URI(url.to_s) unless url.kind_of?(URI) + url = URI(url) # session key key = key_for(url) unless @sessions[key] @@ -125,10 +125,10 @@ # # @since 0.2.2 # def kill!(url) # normalize the url - url = URI(url.to_s) unless url.kind_of?(URI) + url = URI(url) # session key key = key_for(url) if (sess = @sessions[key])