Forum: Ruby rubyrss-1.0

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
636064c074b36b54bbab70c96c084334?d=identicon&s=25 Sergey Tikhonov (Guest)
on 2006-06-09 18:51
(Received via mailing list)
Dear Ruby community,

I'm glad to announce initial release of RubyRSS tool.

WHAT IS A RUBYRSS

Elegant as Ruby RSS parser and generator intended to help you bring
together Ruby and RSS in your project. Features include creation of
custom (x)HTML news blocks from remote RSS feeds, generation of
RSS-feeds using templates, and more.

HOW TO PARSE RSS-FEED

require "rubyrss"

rss = RubyRSS.new "http://www.games-mix.com/rss-feed.xml"
rss.parse


HOW TO GENERATE RSS-FEED

require "rubyrss"

rss = RubyRSS.new "rss-feed.xml"
rss.title = "Sample RSS-feed"
rss.link = "http://www.rubyrss.com"
rss.desc = "Sample RSS-feed generated by RubyRSS"
rss.date = Time.now.gmtime
1.upto(10) { |i|
  rss.items << RubyRSS::Item.new(
    "title-" + i.to_s,
    "#" + String(i),
    "description-#{i}",
    Time.now.gmtime
  )
}
rss.generate "rss2.0"

I'll be happy to hear your feedback.
This topic is locked and can not be replied to.