mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss/*: [DOC] document various constants @steveklabnik [Bug #8812]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
34cbe5ac06
commit
08936ea399
9 changed files with 23 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Nov 9 14:54:52 2013 Zachary Scott <e@zzak.io>
|
||||
|
||||
* lib/rss/*: [DOC] document various constants @steveklabnik [Bug #8812]
|
||||
|
||||
Sat Nov 9 14:50:09 2013 Zachary Scott <e@zzak.io>
|
||||
|
||||
* lib/rss/rss.rb: [DOC] document Time#w3cdtf by @steveklabnik
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
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
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
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
|
||||
|
|
|
@ -3,11 +3,15 @@ require 'rss/dublincore'
|
|||
|
||||
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|
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
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)
|
||||
|
|
|
@ -545,6 +545,7 @@ module RSS
|
|||
end
|
||||
|
||||
unless const_defined? :AVAILABLE_PARSER_LIBRARIES
|
||||
# The list of all available libraries for parsing.
|
||||
AVAILABLE_PARSER_LIBRARIES = [
|
||||
["rss/xmlparser", :XMLParserParser],
|
||||
["rss/xmlscanner", :XMLScanParser],
|
||||
|
@ -552,6 +553,7 @@ module RSS
|
|||
]
|
||||
end
|
||||
|
||||
# The list of all available parsers, in constant form.
|
||||
AVAILABLE_PARSERS = []
|
||||
|
||||
AVAILABLE_PARSER_LIBRARIES.each do |lib, parser|
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
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)
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
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)
|
||||
|
|
|
@ -2,12 +2,14 @@ require "rss/1.0"
|
|||
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|
|
||||
|
|
Loading…
Reference in a new issue