PageRankr 2.0.4 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +10 -0
- data/Gemfile +3 -1
- data/PageRankr.gemspec +1 -0
- data/README.md +48 -12
- data/lib/page_rankr.rb +6 -5
- data/lib/page_rankr/backlink.rb +4 -19
- data/lib/page_rankr/backlinks.rb +6 -6
- data/lib/page_rankr/backlinks/alexa.rb +7 -4
- data/lib/page_rankr/backlinks/bing.rb +9 -6
- data/lib/page_rankr/backlinks/google.rb +11 -15
- data/lib/page_rankr/backlinks/yahoo.rb +6 -4
- data/lib/page_rankr/index.rb +4 -17
- data/lib/page_rankr/indexes.rb +4 -4
- data/lib/page_rankr/indexes/bing.rb +7 -4
- data/lib/page_rankr/indexes/google.rb +10 -16
- data/lib/page_rankr/rank.rb +5 -16
- data/lib/page_rankr/ranks.rb +6 -6
- data/lib/page_rankr/ranks/alexa_global.rb +9 -7
- data/lib/page_rankr/ranks/alexa_us.rb +9 -7
- data/lib/page_rankr/ranks/compete.rb +5 -10
- data/lib/page_rankr/ranks/google.rb +12 -16
- data/lib/page_rankr/site.rb +6 -2
- data/lib/page_rankr/tracker.rb +54 -33
- data/lib/page_rankr/trackers.rb +48 -0
- data/lib/page_rankr/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/alexa_ranks_edge_case_1.yml +6 -6
- data/spec/fixtures/vcr_cassettes/failure_backlinks.yml +87 -77
- data/spec/fixtures/vcr_cassettes/failure_indexes.yml +58 -48
- data/spec/fixtures/vcr_cassettes/failure_ranks.yml +20 -20
- data/spec/fixtures/vcr_cassettes/success_backlinks.yml +70 -62
- data/spec/fixtures/vcr_cassettes/success_indexes.yml +73 -67
- data/spec/fixtures/vcr_cassettes/success_ranks.yml +94 -73
- data/spec/page_rankr_spec.rb +8 -2
- data/spec/spec_helper.rb +1 -1
- metadata +32 -20
@@ -10,10 +10,10 @@
|
|
10
10
|
code: 200
|
11
11
|
message: OK
|
12
12
|
headers:
|
13
|
+
content-length:
|
14
|
+
- "2238"
|
13
15
|
content-type:
|
14
16
|
- text/xml
|
15
|
-
content-length:
|
16
|
-
- "2199"
|
17
17
|
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\
|
18
18
|
\r\n\
|
19
19
|
<ALEXA VER=\"0.9\" URL=\"google.com/\" HOME=\"0\" AID=\"=\">\r\n\
|
@@ -37,11 +37,12 @@
|
|
37
37
|
<PHONE NUMBER=\"unlisted\"/>\n\
|
38
38
|
<OWNER NAME=\"unlisted\"/>\n\
|
39
39
|
<EMAIL ADDR=\"dns-admin@google.com\"/>\n\
|
40
|
+
<CLAIMED DATE=\"2011-09-14T16:30:40Z\"/>\n\
|
40
41
|
<ALEXAPRO TIER=\"intro\"/>\n\
|
41
42
|
<LANG LEX=\"en\"/>\n\
|
42
43
|
<LINKSIN NUM=\"2597386\"/>\n\
|
43
|
-
<SPEED TEXT=\"
|
44
|
-
<REVIEWS AVG=\"4.5\" NUM=\"
|
44
|
+
<SPEED TEXT=\"1642\" PCT=\"41\"/>\n\
|
45
|
+
<REVIEWS AVG=\"4.5\" NUM=\"754\"/>\n\
|
45
46
|
<CHILD SRATING=\"0\"/>\n\
|
46
47
|
<ASSOCS>\n\
|
47
48
|
<ASSOC ID=\"googlecom\"/></ASSOCS>\n\
|
@@ -76,22 +77,22 @@
|
|
76
77
|
code: 200
|
77
78
|
message: OK
|
78
79
|
headers:
|
80
|
+
date:
|
81
|
+
- Sat, 08 Oct 2011 19:36:04 GMT
|
82
|
+
pragma:
|
83
|
+
- no-cache
|
79
84
|
expires:
|
80
85
|
- Fri, 01 Jan 1990 00:00:00 GMT
|
86
|
+
cache-control:
|
87
|
+
- no-cache, must-revalidate
|
81
88
|
content-type:
|
82
89
|
- text/html; charset=ISO-8859-1
|
90
|
+
set-cookie:
|
91
|
+
- PREF=ID=54df874581080de6:FF=0:TM=1318102564:LM=1318102564:S=L_l515t6H14Zs6Uo; expires=Mon, 07-Oct-2013 19:36:04 GMT; path=/; domain=.google.com
|
83
92
|
server:
|
84
93
|
- gws
|
85
|
-
date:
|
86
|
-
- Mon, 19 Sep 2011 16:00:59 GMT
|
87
94
|
x-xss-protection:
|
88
95
|
- 1; mode=block
|
89
|
-
set-cookie:
|
90
|
-
- PREF=ID=2f649488a78079a5:FF=0:TM=1316448059:LM=1316448059:S=DcL79k22-qRjVp16; expires=Wed, 18-Sep-2013 16:00:59 GMT; path=/; domain=.google.com
|
91
|
-
cache-control:
|
92
|
-
- no-cache, must-revalidate
|
93
|
-
pragma:
|
94
|
-
- no-cache
|
95
96
|
transfer-encoding:
|
96
97
|
- chunked
|
97
98
|
body: |
|
@@ -109,23 +110,23 @@
|
|
109
110
|
code: 200
|
110
111
|
message: OK
|
111
112
|
headers:
|
112
|
-
|
113
|
-
-
|
114
|
-
content-language:
|
115
|
-
- en-us
|
113
|
+
date:
|
114
|
+
- Sat, 08 Oct 2011 19:36:01 GMT
|
116
115
|
server:
|
117
116
|
- Apache
|
118
|
-
date:
|
119
|
-
- Mon, 19 Sep 2011 16:00:41 GMT
|
120
|
-
content-length:
|
121
|
-
- "26565"
|
122
117
|
vary:
|
123
118
|
- Accept-Language,Cookie,User-Agent
|
119
|
+
content-length:
|
120
|
+
- "27288"
|
121
|
+
content-language:
|
122
|
+
- en-us
|
123
|
+
content-type:
|
124
|
+
- text/html; charset=utf-8
|
124
125
|
body: |
|
125
126
|
<!DOCTYPE html>
|
126
|
-
<!-- HOSTNAME:
|
127
|
+
<!-- HOSTNAME: prodweb43
|
127
128
|
DEBUG: False
|
128
|
-
VERSION:
|
129
|
+
VERSION: 56fdf999ae8f52fd7e44139c196e70cc27bf4df5
|
129
130
|
COOKIE_DOMAIN: .compete.com -->
|
130
131
|
|
131
132
|
|
@@ -166,25 +167,25 @@
|
|
166
167
|
|
167
168
|
|
168
169
|
|
169
|
-
<script src="http://media.compete.com/site_media/thirdparty/modernizr-1.6.min.ver-
|
170
|
+
<script src="http://media.compete.com/site_media/thirdparty/modernizr-1.6.min.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
170
171
|
|
171
172
|
<link rel="shortcut icon" href="/favicon.ico" />
|
172
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/universal/framework.ver-
|
173
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/c/widgets.ver-
|
173
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/universal/framework.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.css" media="all" charset="utf-8" />
|
174
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/c/widgets.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.css" media="all" charset="utf-8" />
|
174
175
|
|
175
176
|
|
176
177
|
|
177
178
|
|
178
179
|
|
179
180
|
|
180
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/free/master_free.ver-
|
181
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/dropdown.ver-
|
182
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/popup_help.ver-
|
183
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/jquery.autocomplete.ver-
|
184
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/js/jquery/theme/ui.all.ver-
|
185
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/jquery.mcdropdown.ver-
|
186
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/tooltip.ver-
|
187
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/thirdparty/superfish-1.4.8/css/superfish.ver-
|
181
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/free/master_free.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.css" media="all" charset="utf-8" />
|
182
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/dropdown.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.css" media="all" />
|
183
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/popup_help.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.css" media="all" />
|
184
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/jquery.autocomplete.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.css" media="all" />
|
185
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/js/jquery/theme/ui.all.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.css" media="all" />
|
186
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/jquery.mcdropdown.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.css" media="all" />
|
187
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/tooltip.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.css" media="all" />
|
188
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/thirdparty/superfish-1.4.8/css/superfish.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.css" media="all" />
|
188
189
|
|
189
190
|
|
190
191
|
|
@@ -209,7 +210,7 @@
|
|
209
210
|
|
210
211
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js"></script>
|
211
212
|
|
212
|
-
<script>!window.jQuery && document.write(unescape('%3Cscript src="http://media.compete.com/site_media/js/jquery/jquery-1.5.2.min.ver-
|
213
|
+
<script>!window.jQuery && document.write(unescape('%3Cscript src="http://media.compete.com/site_media/js/jquery/jquery-1.5.2.min.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"%3E%3C/script%3E'));</script>
|
213
214
|
|
214
215
|
|
215
216
|
<script type="text/javascript">
|
@@ -239,7 +240,7 @@
|
|
239
240
|
snapshot_site = 'http://siteanalytics.compete.com',
|
240
241
|
toolbar_site = '',
|
241
242
|
help_site = 'http://help.compete.com',
|
242
|
-
versionify_string = '
|
243
|
+
versionify_string = '56fdf999ae8f52fd7e44139c196e70cc27bf4df5';
|
243
244
|
</script>
|
244
245
|
|
245
246
|
|
@@ -249,14 +250,14 @@
|
|
249
250
|
<script type="text/javascript" src="/jsi18n/custom"></script>
|
250
251
|
|
251
252
|
|
252
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/lang/es5-shim-0.0.4.min.ver-
|
253
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/lang/es5_getter_setter_api.ver-
|
254
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/backbone/underscore.ver-
|
255
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/backbone/backbone.ver-
|
256
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/Backbone.ver-
|
257
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/widgets.ver-
|
258
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/mbox.ver-
|
259
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery.text-overflow.ver-
|
253
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/lang/es5-shim-0.0.4.min.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
254
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/lang/es5_getter_setter_api.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
255
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/backbone/underscore.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
256
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/backbone/backbone.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
257
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/Backbone.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
258
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/widgets.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
259
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/mbox.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
260
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery.text-overflow.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
260
261
|
|
261
262
|
|
262
263
|
|
@@ -264,42 +265,42 @@
|
|
264
265
|
var s_account = 'competedev';
|
265
266
|
</script>
|
266
267
|
|
267
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/omniture__s_code.ver-
|
268
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/omniture__s_code.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js" charset="utf-8"></script>
|
268
269
|
|
269
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/thirdparty_analytics.ver-
|
270
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/thirdparty_analytics.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
270
271
|
|
271
272
|
|
272
273
|
|
273
274
|
|
274
275
|
|
275
276
|
|
276
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/prototype/prototype-1.5.0-compressed.ver-
|
277
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/prototype/prototype-1.5.0-compressed.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
277
278
|
|
278
279
|
|
279
280
|
|
280
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/util.ver-
|
281
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/jquery-ui-compete-1.6rc6.min.ver-
|
282
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/jquery.mcdropdown.ver-
|
283
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/jquery.bgiframe.ver-
|
284
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/tooltip.ver-
|
285
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/tooltip.dynamic.ver-
|
286
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/tooltip.compete.ver-
|
287
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/json2.ver-
|
288
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/thirdparty_analytics.ver-
|
289
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/util.ver-
|
290
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/util_format.ver-
|
291
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/dropdown.ver-
|
292
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/master.ver-
|
293
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/popup_help.ver-
|
294
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.autocomplete.pack.ver-
|
295
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.competeutils.ver-
|
296
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.cookie.ver-
|
297
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.html5-placeholder-shim.ver-
|
298
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/app/main_nav.ver-
|
299
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/number_format/NumberFormat-1.5.4.ver-
|
300
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/number_format/number_formatter.ver-
|
301
|
-
|
302
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/superfish-1.4.8/js/superfish.ver-
|
281
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/util.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
282
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/jquery-ui-compete-1.6rc6.min.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
283
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/jquery.mcdropdown.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
284
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/jquery.bgiframe.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
285
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/tooltip.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
286
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/tooltip.dynamic.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
287
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/jquery/tooltip.compete.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
288
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/json2.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js" charset="utf-8"></script>
|
289
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/thirdparty_analytics.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
290
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/util.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
291
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/util_format.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
292
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/dropdown.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
293
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/master.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
294
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/popup_help.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
295
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.autocomplete.pack.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
296
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.competeutils.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
297
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.cookie.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
298
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.html5-placeholder-shim.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
299
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/app/main_nav.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
300
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/number_format/NumberFormat-1.5.4.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
301
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/number_format/number_formatter.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
302
|
+
|
303
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/superfish-1.4.8/js/superfish.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
303
304
|
<script type="text/javascript">
|
304
305
|
// ! TODO: add try_catch block *INSIDE* function() {}
|
305
306
|
$j(document).ready(function() {
|
@@ -328,10 +329,10 @@
|
|
328
329
|
|
329
330
|
<!-- endblock scripts -->
|
330
331
|
|
331
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/amcharts.ver-
|
332
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/free/widgets.ver-
|
333
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/app/main_nav.ver-
|
334
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/app/research.ver-
|
332
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/amcharts.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
333
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/free/widgets.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
334
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/app/main_nav.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
335
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/app/research.ver-56fdf999ae8f52fd7e44139c196e70cc27bf4df5.js"></script>
|
335
336
|
|
336
337
|
<script type="text/javascript">
|
337
338
|
$j(document).ready(function() {
|
@@ -546,6 +547,26 @@
|
|
546
547
|
</div>
|
547
548
|
</script>
|
548
549
|
|
550
|
+
<!-- Google Code for NEW Site Analytics Home Page Remarketing List -->
|
551
|
+
<script type="text/javascript">
|
552
|
+
/* <![CDATA[ */
|
553
|
+
var google_conversion_id = 1069995145;
|
554
|
+
var google_conversion_language = "en";
|
555
|
+
var google_conversion_format = "3";
|
556
|
+
var google_conversion_color = "666666";
|
557
|
+
var google_conversion_label = "g5IxCJ-C_gIQiamb_gM";
|
558
|
+
var google_conversion_value = 0;
|
559
|
+
/* ]]> */
|
560
|
+
</script>
|
561
|
+
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
|
562
|
+
</script>
|
563
|
+
<noscript>
|
564
|
+
<div style="display:inline;">
|
565
|
+
<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1069995145/?label=g5IxCJ-C_gIQiamb_gM&guid=ON&script=0"/>
|
566
|
+
</div>
|
567
|
+
</noscript>
|
568
|
+
|
569
|
+
|
549
570
|
|
550
571
|
<div class="footer">
|
551
572
|
<p class="copyright">© Copyright to Compete.com - A Kantar Media Company</p>
|
data/spec/page_rankr_spec.rb
CHANGED
@@ -77,7 +77,10 @@ describe PageRankr do
|
|
77
77
|
|
78
78
|
PageRankr.backlink_trackers.each do |tracker|
|
79
79
|
it{ should have_key(tracker) }
|
80
|
-
|
80
|
+
|
81
|
+
it "#{tracker} should have a value greater than zero" do
|
82
|
+
subject[tracker].should > 0
|
83
|
+
end
|
81
84
|
end
|
82
85
|
end
|
83
86
|
|
@@ -112,7 +115,10 @@ describe PageRankr do
|
|
112
115
|
|
113
116
|
PageRankr.index_trackers.each do |tracker|
|
114
117
|
it{ should have_key(tracker) }
|
115
|
-
|
118
|
+
|
119
|
+
it "#{tracker} should have a value greater than zero" do
|
120
|
+
subject[tracker].should > 0
|
121
|
+
end
|
116
122
|
end
|
117
123
|
end
|
118
124
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: PageRankr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-10-
|
12
|
+
date: 2011-10-08 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70100460194300 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70100460194300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70100460193680 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.1.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70100460193680
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70100460193080 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70100460193080
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: fuubar
|
49
|
-
requirement: &
|
49
|
+
requirement: &70100460192520 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.0.1
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70100460192520
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: vcr
|
60
|
-
requirement: &
|
60
|
+
requirement: &70100460192120 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70100460192120
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: nokogiri
|
71
|
-
requirement: &
|
71
|
+
requirement: &70100460191520 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 1.4.1
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70100460191520
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: json
|
82
|
-
requirement: &
|
82
|
+
requirement: &70100460190660 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 1.4.6
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70100460190660
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: public_suffix_service
|
93
|
-
requirement: &
|
93
|
+
requirement: &70100460189840 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 0.9.0
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70100460189840
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: typhoeus
|
104
|
-
requirement: &
|
104
|
+
requirement: &70100460189000 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,7 +109,18 @@ dependencies:
|
|
109
109
|
version: 0.2.1
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70100460189000
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: jsonpath
|
115
|
+
requirement: &70100460187520 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ~>
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 0.4.2
|
121
|
+
type: :runtime
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *70100460187520
|
113
124
|
description: Easy way to retrieve Google Page Rank, Alexa Rank, backlink counts, and
|
114
125
|
index counts.
|
115
126
|
email:
|
@@ -146,6 +157,7 @@ files:
|
|
146
157
|
- lib/page_rankr/ranks/google/checksum.rb
|
147
158
|
- lib/page_rankr/site.rb
|
148
159
|
- lib/page_rankr/tracker.rb
|
160
|
+
- lib/page_rankr/trackers.rb
|
149
161
|
- lib/page_rankr/version.rb
|
150
162
|
- spec/edge_cases_spec.rb
|
151
163
|
- spec/fixtures/vcr_cassettes/alexa_ranks_edge_case_1.yml
|