unwind 0.2.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/Readme.md +2 -2
- data/lib/unwind/version.rb +1 -1
- data/lib/unwind.rb +34 -169
- data/test/redirect_follower_test.rb +22 -121
- data/unwind.gemspec +5 -7
- data/vcr_cassettes/xZVND1.yml +283 -337
- metadata +30 -77
- checksums.yaml +0 -7
- data/vcr_cassettes/amazon.yml +0 -6862
- data/vcr_cassettes/canonical_url.yml +0 -506
- data/vcr_cassettes/meta_refresh.yml +0 -169
- data/vcr_cassettes/missing_redirect.yml +0 -46
- data/vcr_cassettes/no_redirect.yml +0 -859
- data/vcr_cassettes/pdf.yml +0 -140
- data/vcr_cassettes/relative_canonical_url.yml +0 -1210
- data/vcr_cassettes/relative_meta_refresh.yml +0 -1905
- data/vcr_cassettes/relative_stackoverflow.yml +0 -1630
- data/vcr_cassettes/relative_stackoverflow_2.yml +0 -2245
- data/vcr_cassettes/ssl_tpope.yml +0 -1363
- data/vcr_cassettes/with_cookie.yml +0 -1667
data/vcr_cassettes/pdf.yml
DELETED
@@ -1,140 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://binged.it/wVSFs5
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
- none
|
13
|
-
Accept:
|
14
|
-
- "*/*"
|
15
|
-
User-Agent:
|
16
|
-
- Ruby
|
17
|
-
Host:
|
18
|
-
- binged.it
|
19
|
-
response:
|
20
|
-
status:
|
21
|
-
code: 301
|
22
|
-
message: Moved
|
23
|
-
headers:
|
24
|
-
Server:
|
25
|
-
- nginx
|
26
|
-
Date:
|
27
|
-
- Tue, 28 Jan 2014 05:45:26 GMT
|
28
|
-
Content-Type:
|
29
|
-
- text/html; charset=utf-8
|
30
|
-
Connection:
|
31
|
-
- keep-alive
|
32
|
-
Set-Cookie:
|
33
|
-
- _bit=52e743f6-00082-05c31-2e1cf10a;domain=.binged.it;expires=Sun Jul 27 05:45:26
|
34
|
-
2014;path=/; HttpOnly
|
35
|
-
Cache-Control:
|
36
|
-
- private; max-age=90
|
37
|
-
Location:
|
38
|
-
- https://microsoft.promo.eprize.com/bingtwitter/public/fulfillment/rules.pdf
|
39
|
-
Mime-Version:
|
40
|
-
- '1.0'
|
41
|
-
Content-Length:
|
42
|
-
- '167'
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: |-
|
46
|
-
<html>
|
47
|
-
<head>
|
48
|
-
<title>bit.ly</title>
|
49
|
-
</head>
|
50
|
-
<body>
|
51
|
-
<a href="https://microsoft.promo.eprize.com/bingtwitter/public/fulfillment/rules.pdf">moved here</a>
|
52
|
-
</body>
|
53
|
-
</html>
|
54
|
-
http_version:
|
55
|
-
recorded_at: Tue, 28 Jan 2014 05:45:26 GMT
|
56
|
-
- request:
|
57
|
-
method: get
|
58
|
-
uri: https://microsoft.promo.eprize.com/bingtwitter/public/fulfillment/rules.pdf
|
59
|
-
body:
|
60
|
-
encoding: US-ASCII
|
61
|
-
string: ''
|
62
|
-
headers:
|
63
|
-
Accept-Encoding:
|
64
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
-
- none
|
66
|
-
Accept:
|
67
|
-
- "*/*"
|
68
|
-
User-Agent:
|
69
|
-
- Ruby
|
70
|
-
Host:
|
71
|
-
- microsoft.promo.eprize.com
|
72
|
-
response:
|
73
|
-
status:
|
74
|
-
code: 404
|
75
|
-
message: Not Found
|
76
|
-
headers:
|
77
|
-
Server:
|
78
|
-
- Apache
|
79
|
-
Last-Modified:
|
80
|
-
- Thu, 09 May 2013 20:51:26 GMT
|
81
|
-
Content-Length:
|
82
|
-
- '3074'
|
83
|
-
Content-Type:
|
84
|
-
- text/html; charset=utf-8
|
85
|
-
Vary:
|
86
|
-
- Accept-Encoding
|
87
|
-
Cache-Control:
|
88
|
-
- public, max-age=14400
|
89
|
-
Expires:
|
90
|
-
- Tue, 28 Jan 2014 09:45:27 GMT
|
91
|
-
Date:
|
92
|
-
- Tue, 28 Jan 2014 05:45:27 GMT
|
93
|
-
Connection:
|
94
|
-
- keep-alive
|
95
|
-
body:
|
96
|
-
encoding: UTF-8
|
97
|
-
string: "<!doctype html>\r\n<html>\r\n<head>\r\n <meta charset=\"utf-8\"
|
98
|
-
/>\r\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\r\n\r\n
|
99
|
-
\ <title>Whoops | ePrize</title>\r\n\r\n <meta name=\"viewport\" content=\"width=device-width,
|
100
|
-
initial-scale=1.0\" />\r\n <meta name=\"description\" content=\"We can't
|
101
|
-
find the page you're looking for. It has either expired or is temporarily
|
102
|
-
out of commission.\" />\r\n\r\n <script src=\"//use.typekit.net/uoi5bfg.js\"></script>\r\n
|
103
|
-
\ <script>try{Typekit.load();}catch(e){}</script>\r\n\r\n <link rel=\"shortcut
|
104
|
-
icon\" href=\"http://www.eprize.com/favicon.ico\" />\r\n\r\n <style>\r\n
|
105
|
-
\ body {\r\n background: #414242;\r\n color: #555555;\r\n
|
106
|
-
\ font: 16px/1.4 'open-sans', Helvetica, Arial, sans-serif;\r\n margin:
|
107
|
-
0;\r\n }\r\n\r\n h1 {\r\n font-family: 'brandon-grotesque', Helvetica,
|
108
|
-
Arial, sans-serif;\r\n margin: 0;\r\n }\r\n\r\n p {\r\n line-height:
|
109
|
-
1.6;\r\n margin: 0 0 15px 0;\r\n }\r\n\r\n a {\r\n color:
|
110
|
-
#109ebd;\r\n }\r\n\r\n a:hover,\r\n a:focus,\r\n a:active {\r\n
|
111
|
-
\ color: #005a89;\r\n }\r\n\r\n strong {\r\n font-weight:
|
112
|
-
bold;\r\n }\r\n\r\n img {\r\n border: 0;\r\n height: auto;\r\n
|
113
|
-
\ max-width: 100%;\r\n }\r\n\r\n .container-header {\r\n background:
|
114
|
-
#242424;\r\n background: rgba(36, 36, 36, 0.85);\r\n }\r\n\r\n .header
|
115
|
-
{\r\n margin: 0 auto;\r\n padding: 20px 0 10px;\r\n width:
|
116
|
-
478px;\r\n }\r\n\r\n .logo {\r\n display: block;\r\n opacity:
|
117
|
-
0.5;\r\n }\r\n\r\n .logo:hover,\r\n .logo:active,\r\n .logo:focus
|
118
|
-
{\r\n opacity: 0.8;\r\n }\r\n\r\n .container-content {\r\n margin:
|
119
|
-
100px auto;\r\n width: 478px;\r\n }\r\n\r\n .title {\r\n background:
|
120
|
-
#3b149e;\r\n background: rgba(59, 20, 158, 0.85);\r\n bottom:
|
121
|
-
-8px;\r\n color: #ffffff;\r\n display: inline-block;\r\n font:
|
122
|
-
100 54px/1 'brandon-grotesque';\r\n margin-left: 30px;\r\n padding:
|
123
|
-
0 5px;\r\n position: relative;\r\n text-decoration: none;\r\n
|
124
|
-
\ text-transform: uppercase;\r\n z-index: 10;\r\n\r\n /*
|
125
|
-
IE7 */\r\n *display: inline;\r\n *zoom: 1;\r\n }\r\n\r\n
|
126
|
-
\ .title:hover,\r\n .title:active,\r\n .title:focus {\r\n color:
|
127
|
-
#ffffff;\r\n }\r\n\r\n .content-main {\r\n background: #ffffff;\r\n
|
128
|
-
\ padding: 40px 30px;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n
|
129
|
-
\ <div class=\"container-header\">\r\n <div class=\"header\">\r\n
|
130
|
-
\ <a href=\"http://www.eprize.com\" class=\"logo\"><img src=\"/global/images/logo-eprize.png\"
|
131
|
-
alt=\"ePrize\" width=\"85\" height=\"24\" /></a>\r\n </div>\r\n </div>\r\n\r\n
|
132
|
-
\ <div class=\"container-content\">\r\n <div class=\"content\">\r\n
|
133
|
-
\ <h1 class=\"title\">Oops-A-Daisy</h1>\r\n <div class=\"content-main\">\r\n
|
134
|
-
\ <p>We can't find the page you're looking for. It has either
|
135
|
-
expired or is temporarily out of commission.</p>\r\n <p>Luckily,
|
136
|
-
there's still more to explore. Feel free to visit <a href=\"http://www.eprize.com\">www.eprize.com</a>
|
137
|
-
and poke around.</p>\r\n </div>\r\n </div>\r\n </div>\r\n</body>\r\n</html>\r\n"
|
138
|
-
http_version:
|
139
|
-
recorded_at: Tue, 28 Jan 2014 05:45:27 GMT
|
140
|
-
recorded_with: VCR 2.8.0
|