Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

add yandex as search engine #35

Merged
merged 3 commits into from

3 participants

solutus Alex Rabarts Wesley Gorman
solutus

Hi Alex,
can you please add yandex as search engine to your gem? Yandex is most popular search in Russia and CIS.

Wesley Gorman

Since the standard behavior for all the other search engines bar Google is to default to false, it would be more consistent to set:

 :ping_yandex => false
Wesley Gorman

Other than setting ping_yandex to default to false, looks good. :+1:

Alex Rabarts alexrabarts merged commit 512e221 into from
Alex Rabarts
Owner

Thanks. This is now available in v1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 17, 2012
  1. solutus

    add yandex search engine

    solutus authored
  2. solutus

    add yandex search engine

    solutus authored
Commits on Jan 26, 2013
  1. solutus

    change ping_yandex to false

    solutus authored
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +1 −0  README.rdoc
  2. +6 −1 lib/big_sitemap.rb
1  README.rdoc
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
7 lib/big_sitemap.rb
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
Something went wrong with that request. Please try again.