unshorten 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/unshorten.rb +2 -2
- metadata +1 -1
data/lib/unshorten.rb
CHANGED
@@ -59,9 +59,9 @@ class Unshorten
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def follow(url, options = DEFAULT_OPTIONS, level = 0) #:nodoc:
|
62
|
-
return @@cache[url] if options[:use_cache] and @@cache[url]
|
63
|
-
|
64
62
|
url = add_missing_http(url) if options[:add_missing_http]
|
63
|
+
|
64
|
+
return @@cache[url] if options[:use_cache] and @@cache[url]
|
65
65
|
return url if level >= options[:max_level]
|
66
66
|
|
67
67
|
uri = URI.parse(url)
|