Sha256: 83e9bef542db03737b5034819c396d4e046ac1a26a5b9f3b1fc9dbaa4c889c55

Contents?: true

Size: 843 Bytes

Versions: 2

Compression:

Stored size: 843 Bytes

Contents

#
# = sitemap.rb - Sitemap
#
# Author:: Daniel Mircea daniel@viseztrance.com
# Copyright:: 2011 (c) Daniel Mircea, {The Geeks}[http://thegeeks.ro]
# License:: MIT and/or Creative Commons Attribution-ShareAlike

require "singleton"
require "builder"
require "sitemap/version"
require "sitemap/configuration"
require "sitemap/railtie"
require "sitemap/ping"
require "sitemap/store"
require "sitemap/generator"

module Sitemap

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield configuration
  end

  # mattr_accessor :defaults

  # self.defaults = {
  #   :params => {},
  #   :search => {
  #     :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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sitemap-0.3.1 lib/sitemap.rb
sitemap-0.3 lib/sitemap.rb