mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss/{0.9,1.0,2.0,trackback,xml-stylesheet}.rb: added
#setup_maker. * test/rss/test_setup_maker_*.rb: added tests for #setup_maker. * lib/rss/maker/base.rb(RSS::Maker::Items#max_size=): supported output item size limitation. * sample/rss/blend.rb: added sample for RSS Maker. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0a93165e16
commit
2572d5e20e
12 changed files with 1066 additions and 14 deletions
|
@ -113,6 +113,12 @@ EOT
|
|||
end + _tags09
|
||||
end
|
||||
|
||||
alias _setup_maker_element setup_maker_element
|
||||
def setup_maker_element(item)
|
||||
_setup_maker_element(item)
|
||||
@guid.setup_maker(item) if @guid
|
||||
end
|
||||
|
||||
class Guid < Element
|
||||
|
||||
include RSS09
|
||||
|
@ -138,6 +144,14 @@ EOT
|
|||
]
|
||||
end
|
||||
|
||||
def maker_target(item)
|
||||
item.guid
|
||||
end
|
||||
|
||||
def setup_maker_attributes(guid)
|
||||
guid.isPermaLink = isPermaLink
|
||||
guid.content = content
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue