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.
···
--
Sincerely,
Sergey Tikhonov
http://dairon.net