Skip to content
Browse files

add yandex search engine

  • Loading branch information...
1 parent f0aaa97 commit be89fa5f64155e884bdec5ac918ef5c05b3af824 @solutus solutus committed Jun 17, 2012
Showing with 7 additions and 1 deletion.
  1. +1 −0 README.rdoc
  2. +6 −1 lib/big_sitemap.rb
View
1 README.rdoc
@@ -64,6 +64,7 @@ Via gem:
* <code>:ping_yahoo</code> -- <code>false</code>, needs <code>:yahoo_app_id</code>
* <code>:ping_bing</code> -- <code>false</code>
* <code>:ping_ask</code> -- <code>false</code>
+* <code>:ping_yandex</code> -- <code>true</code>
* <code>:partial_update</code> -- <code>false</code>
=== Change Frequency, Priority and Last Modified
View
7 lib/big_sitemap.rb
@@ -14,7 +14,8 @@ class BigSitemap
:ping_google => true,
:ping_yahoo => false, # needs :yahoo_app_id
:ping_bing => false,
- :ping_ask => false
+ :ping_ask => false,
+ :ping_yandex => true
}
# TODO: Deprecate
@@ -229,6 +230,10 @@ def ping_search_engines
if @options[:ping_ask]
Net::HTTP.get('submissions.ask.com', "/ping?sitemap=#{sitemap_uri}")
end
+
+ if @options[:ping_yandex]
+ Net::HTTP.get('http://webmaster.yandex.ru', "/wmconsole/sitemap_list.xml?host=#{sitemap_uri}")
+ end
end
# TODO: Deprecate

0 comments on commit be89fa5

Please sign in to comment.
Something went wrong with that request. Please try again.