lib/sitemap.rb in sitemap-0.1 vs lib/sitemap.rb in sitemap-0.2b
- old
+ new
@@ -7,10 +7,11 @@
require "singleton"
require "builder"
require "sitemap/railtie"
require "sitemap/ping"
+require "sitemap/store"
require "sitemap/generator"
module Sitemap
VERSION = Gem::Specification.load(File.expand_path("../sitemap.gemspec", File.dirname(__FILE__))).version.to_s
@@ -18,10 +19,14 @@
mattr_accessor :defaults
self.defaults = {
:params => {},
:search => {
- :updated_at => proc { |obj| obj.updated_at.strftime("%Y-%m-%d") if obj.respond_to?(:updated_at) }
- }
+ :updated_at => proc { |obj|
+ obj.updated_at.strftime("%Y-%m-%d") if obj.respond_to?(:updated_at)
+ }
+ },
+ :query_batch_size => 500,
+ :max_urls => 10000
}
end