2004-11-01 03:43:47 +03:00
|
|
|
require "rss/rss"
|
|
|
|
|
|
|
|
module RSS
|
|
|
|
|
|
|
|
module Maker
|
|
|
|
|
|
|
|
MAKERS = {}
|
|
|
|
|
|
|
|
class << self
|
2004-11-19 11:25:25 +03:00
|
|
|
def make(version, &block)
|
2004-11-01 03:43:47 +03:00
|
|
|
maker(version).make(&block)
|
|
|
|
end
|
|
|
|
|
|
|
|
def maker(version)
|
|
|
|
MAKERS[version]
|
|
|
|
end
|
|
|
|
|
|
|
|
def add_maker(version, maker)
|
|
|
|
MAKERS[version] = maker
|
|
|
|
end
|
|
|
|
|
|
|
|
def filename_to_version(filename)
|
|
|
|
File.basename(filename, ".*")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2004-11-19 11:25:25 +03:00
|
|
|
|
|
|
|
require "rss/maker/1.0"
|
|
|
|
require "rss/maker/2.0"
|
|
|
|
require "rss/maker/content"
|
|
|
|
require "rss/maker/dublincore"
|
|
|
|
require "rss/maker/syndication"
|
|
|
|
require "rss/maker/trackback"
|