add yandex as search engine #35

Merged
merged 3 commits into from Feb 6, 2013
Jump to file or symbol
Failed to load files and symbols.
+7 −1
Diff settings

Always

Just for now

View
@@ -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>false</code>
* <code>:partial_update</code> -- <code>false</code>
=== Change Frequency, Priority and Last Modified
View
@@ -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 => false
}
# 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('webmaster.yandex.ru', "/wmconsole/sitemap_list.xml?host=#{sitemap_uri}")
+ end
end
# TODO: Deprecate