unshorten 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/unshorten.rb +2 -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unshorten
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: