Permalink
Browse files

Merge pull request #131 from dimko/patch-2

Added YandexBot to bot list
  • Loading branch information...
2 parents 538d14e + 84f625a commit dae56b7bd7b35ac11ba81fbdfc11534a4923e4a1 @andrew andrew committed Feb 15, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/split/configuration.rb
  2. +1 −1 spec/configuration_spec.rb
@@ -14,6 +14,7 @@ class Configuration
"spider" => 'generic web spider',
'WordPress' => 'WordPress spider',
'ZIBB' => 'ZIBB spider',
+ 'YandexBot' => 'Yandex spider',
# HTTP libraries
'Apache-HttpClient' => 'Java http library',
'AppEngine-Google' => 'Google App Engine',
@@ -27,7 +27,7 @@
end
it "should provide a default pattern for robots" do
- %w[Baidu Gigabot Googlebot libwww-perl lwp-trivial msnbot SiteUptime Slurp WordPress ZIBB ZyBorg AdsBot-Google Wget curl bitlybot facebookexternalhit spider].each do |robot|
+ %w[Baidu Gigabot Googlebot libwww-perl lwp-trivial msnbot SiteUptime Slurp WordPress ZIBB ZyBorg YandexBot AdsBot-Google Wget curl bitlybot facebookexternalhit spider].each do |robot|
@config.robot_regex.should =~ robot
end

0 comments on commit dae56b7

Please sign in to comment.