Sha256: 1344a2955efd356cda8cf63c05a0e286098f8ddab84c8ddf33f70a131ff218ab
Contents?: true
Size: 662 Bytes
Versions: 4
Compression:
Stored size: 662 Bytes
Contents
# Description Enables following a series of redirects (shortened urls) # Prerequisites Tested on Ruby 1.8.7 and 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unwind-0.11.1 | Readme.md |
unwind-0.11.0 | Readme.md |
unwind-0.10.0 | Readme.md |
unwind-0.9.6 | Readme.md |