Sha256: 9e11de613fb33dd361db02dc1822fafff108c28d6c464394ac9bba66701abc97
Contents?: true
Size: 656 Bytes
Versions: 5
Compression:
Stored size: 656 Bytes
Contents
# Description Enables following a series of redirects (shortened urls) # Prerequisites Only tested on Ruby 1.9.3 # Example Code require 'unwind' follower = Unwind::RedirectFollower.new('http://j.mp/xZVND1') follower.resolve assert_equal 'http://ow.ly/i/s1O0', follower.final_url assert_equal 'http://j.mp/xZVND1', follower.original_url assert_equal 2, follower.redirects.count # Hat tip Most of the code is based on John Nunemaker's blog post [Following Redirects with Net/HTTP](http://railstips.org/blog/archives/2009/03/04/following-redirects-with-nethttp/). # License Provided under the Do Whatever You Want With This Code License.
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
unwind-0.9.5 | Readme.md |
unwind-0.9.4 | Readme.md |
unwind-0.9.3 | Readme.md |
unwind-0.9.1 | Readme.md |
unwind-0.9.0 | Readme.md |