The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Revised config file

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Adam Green

Posts: 102
Nickname: darwinian
Registered: Dec, 2005

Adam Green is the author of Ruby.Darwinianweb.com
Revised config file Posted: Jan 7, 2006 12:10 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Adam Green.
Original Post: Revised config file
Feed Title: ruby.darwinianweb.com
Feed URL: http://www.nemesis-one.com/rss.xml
Feed Description: Adam Green's Ruby development site
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Adam Green
Latest Posts From ruby.darwinianweb.com

Advertisement
I had to add a few more values to rubyriver.yml, so here is the revised version. It looks like this code will be generic enough to be used for lots of aggregation tasks, so I'm storing the site title and other info outside of the code. This will also help with localization in other languages. It is strange that Ruby is a Japanese product, but there doesn't seem to be much recognition of this fact in the English speaking Ruby community. XML may be in English, but there is no reason why English has to be in the text published for human consumption.

There are also two output files: publishedfeed and internalfeed. I realized that I wanted to keep some information with each post in the merged feed that isn't in the RSS spec. The internalfeed will have these extra values and will only be read by the RubyRiver page generator code. The published feed will be standard RSS 2.0 for use by anyone who wants to use the combined feed in their own aggregator.

rubyriver.yml

 # configuration settings for RubyRiver aggregator



sitetitle: RubyRiver News Aggregator
sitelink: http://rubyriver.org
sitedescription: Fresh Ruby news gathered every hour
sitelanguage: en-us
sitecopyright: Copyright 2006 Adam Green



pagetemplate: page.html
posttemplate: post.html
cachedir: feeds
logdir: logs
maxposts: 20
feedlist: rubyriver.opml
publishedfeed: rss
internalfeed: rubyriver
excerptlength: 300

Read: Revised config file

Topic: Mad Propz to Wikipedia Previous Topic   Next Topic Topic: Enterprise Is Not an Insult

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use