Bug #8812 ยป 0001-RSS-Document-a-bunch-of-constants.patch
lib/rss/content.rb | ||
---|---|---|
require "rss/rss"
|
||
module RSS
|
||
# The prefix for the Content XML namespace.
|
||
CONTENT_PREFIX = 'content'
|
||
# The URI of the Content specification.
|
||
CONTENT_URI = "http://purl.org/rss/1.0/modules/content/"
|
||
module ContentModel
|
lib/rss/dublincore.rb | ||
---|---|---|
require "rss/rss"
|
||
module RSS
|
||
# The prefix for the Dublin Core XML namespace.
|
||
DC_PREFIX = 'dc'
|
||
# The URI of the Dublin Core specification.
|
||
DC_URI = "http://purl.org/dc/elements/1.1/"
|
||
module BaseDublinCoreModel
|
lib/rss/image.rb | ||
---|---|---|
module RSS
|
||
# The prefix for the Image XML namespace.
|
||
IMAGE_PREFIX = 'image'
|
||
# The URI for the Image specification.
|
||
IMAGE_URI = 'http://purl.org/rss/1.0/modules/image/'
|
||
RDF.install_ns(IMAGE_PREFIX, IMAGE_URI)
|
||
# This constant holds strings which contain the names of
|
||
# image elements, with the appropriate prefix.
|
||
IMAGE_ELEMENTS = []
|
||
%w(item favicon).each do |name|
|
lib/rss/itunes.rb | ||
---|---|---|
require 'rss/2.0'
|
||
module RSS
|
||
# The prefix for the iTunes XML namespace.
|
||
ITUNES_PREFIX = 'itunes'
|
||
# The URI of the iTunes specification.
|
||
ITUNES_URI = 'http://www.itunes.com/dtds/podcast-1.0.dtd'
|
||
Rss.install_ns(ITUNES_PREFIX, ITUNES_URI)
|
lib/rss/parser.rb | ||
---|---|---|
end
|
||
unless const_defined? :AVAILABLE_PARSER_LIBRARIES
|
||
# The list of all available libraries for parsing.
|
||
AVAILABLE_PARSER_LIBRARIES = [
|
||
["rss/xmlparser", :XMLParserParser],
|
||
["rss/xmlscanner", :XMLScanParser],
|
||
... | ... | |
]
|
||
end
|
||
# The list of all available parsers, in constant form.
|
||
AVAILABLE_PARSERS = []
|
||
AVAILABLE_PARSER_LIBRARIES.each do |lib, parser|
|
lib/rss/slash.rb | ||
---|---|---|
require 'rss/1.0'
|
||
module RSS
|
||
# The prefix for the Slash XML namespace.
|
||
SLASH_PREFIX = 'slash'
|
||
# The URI of the Slash specification.
|
||
SLASH_URI = "http://purl.org/rss/1.0/modules/slash/"
|
||
RDF.install_ns(SLASH_PREFIX, SLASH_URI)
|
lib/rss/syndication.rb | ||
---|---|---|
require "rss/1.0"
|
||
module RSS
|
||
# The prefix for the Syndication XML namespace.
|
||
SY_PREFIX = 'sy'
|
||
# The URI of the Syndication specification.
|
||
SY_URI = "http://purl.org/rss/1.0/modules/syndication/"
|
||
RDF.install_ns(SY_PREFIX, SY_URI)
|
lib/rss/taxonomy.rb | ||
---|---|---|
require "rss/dublincore"
|
||
module RSS
|
||
# The prefix for the Taxonomy XML namespace.
|
||
TAXO_PREFIX = "taxo"
|
||
# The URI for the specification of the Taxonomy XML namespace.
|
||
TAXO_URI = "http://purl.org/rss/1.0/modules/taxonomy/"
|
||
RDF.install_ns(TAXO_PREFIX, TAXO_URI)
|
||
# The listing of all the taxonomy elements, with the appropriate namespace.
|
||
TAXO_ELEMENTS = []
|
||
%w(link).each do |name|
|