lib/big_sitemap.rb in alexrabarts-big_sitemap-0.3.3 vs lib/big_sitemap.rb in alexrabarts-big_sitemap-0.3.4

- old
+ new

@@ -97,11 +97,11 @@ num_batches = (count.to_f / @options[:batch_size].to_f).ceil num_sitemaps = (count.to_f / @options[:max_per_sitemap].to_f).ceil end batches_per_sitemap = num_batches.to_f / num_sitemaps.to_f - find_options = options.except(:path) + find_options = options.except(:path, :num_items, :priority, :change_frequency) for sitemap_num in 1..num_sitemaps # Work out the start and end batch numbers for this sitemap batch_num_start = sitemap_num == 1 ? 1 : ((sitemap_num * batches_per_sitemap).ceil - batches_per_sitemap + 1).to_i batch_num_end = (batch_num_start + [batches_per_sitemap, num_batches].min).floor - 1 @@ -161,10 +161,10 @@ if @options[:ping_msn] Net::HTTP.get('webmaster.live.com', "/ping.aspx?siteMap=#{sitemap_uri}") end - if @options[:pink_ask] + if @options[:ping_ask] Net::HTTP.get('submissions.ask.com', "/ping?sitemap=#{sitemap_uri}") end end def root_url