fix #119: add researchscan.comsys.rwth-aachen.de as a robot
reneeb
5 years ago
185 | 185 |
[ 'quora link preview', 'quora-link-preview' ],
|
186 | 186 |
[ 'Qwantify', 'qwantify' ],
|
187 | 187 |
[ 'redditbot', 'reddit', ],
|
|
188 |
[ 'researchscan', 'researchscan' ],
|
188 | 189 |
[ 'rogerbot', 'rogerbot' ],
|
189 | 190 |
[ 'ShowyouBot', 'showyou' ],
|
190 | 191 |
[ 'SkypeUriPreview', 'skype-uri-preview' ],
|
|
269 | 270 |
puf => 'puf',
|
270 | 271 |
'quora-link-preview' => 'Quora Link Preview',
|
271 | 272 |
qwantify => 'Qwantify',
|
|
273 |
researchscan => 'Researchscan RWTH Aachen',
|
272 | 274 |
reddit => 'Reddit',
|
273 | 275 |
robot => 'robot',
|
274 | 276 |
rogerbot => 'Moz',
|
|
329 | 331 |
puf => 'puf',
|
330 | 332 |
robot => 'robot',
|
331 | 333 |
rubylib => 'ruby-http-library',
|
|
334 |
researchscan => 'researchscan',
|
332 | 335 |
slurp => 'yahoo-slurp',
|
333 | 336 |
specialarchiver => 'archive-org',
|
334 | 337 |
wget => 'wget',
|
|
1211 | 1214 |
$r = 'java';
|
1212 | 1215 |
$robot_tests->{lib} = 1;
|
1213 | 1216 |
$robot_fragment = 'google';
|
|
1217 |
}
|
|
1218 |
elsif ( index( $ua, 'researchscan.comsys.rwth-aachen.de' ) != -1 ) {
|
|
1219 |
$r = 'researchscan';
|
1214 | 1220 |
}
|
1215 | 1221 |
|
1216 | 1222 |
# These @ROBOT_TESTS were added in 3.15. Some of them may need more
|
9 | 9 |
my %names = $detect->_robot_names;
|
10 | 10 |
my @ids = $detect->all_robot_ids;
|
11 | 11 |
my %fixup = $detect->_robot_ids;
|
12 | |
is( scalar @ids, 72, 'correct number of ids' );
|
|
12 |
is( scalar @ids, 73, 'correct number of ids' );
|
13 | 13 |
|
14 | 14 |
foreach my $id (@ids) {
|
15 | 15 |
subtest $id => sub {
|
10681 | 10681 |
"os_string" : "Mac OS X",
|
10682 | 10682 |
"os_version" : "10.10",
|
10683 | 10683 |
"robot" : null
|
|
10684 |
},
|
|
10685 |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 Scanning for research (researchscan.comsys.rwth-aachen.de)" : {
|
|
10686 |
"browser_major" : "5",
|
|
10687 |
"browser_minor" : ".0",
|
|
10688 |
"match" : [
|
|
10689 |
"chrome",
|
|
10690 |
"mac",
|
|
10691 |
"macosx",
|
|
10692 |
"researchscan",
|
|
10693 |
"robot",
|
|
10694 |
"webkit"
|
|
10695 |
],
|
|
10696 |
"robot" : "researchscan",
|
|
10697 |
"robot_name" : "Researchscan RWTH Aachen"
|
10684 | 10698 |
},
|
10685 | 10699 |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) brave/0.7.9 Chrome/47.0.2526.73 Electron/0.36.2 Safari/537.36" : {
|
10686 | 10700 |
"browser" : "brave",
|