I realized tonight that OpenGuides and OpenGuides::RDF needed a bit of refactoring to accommodate different feed types (since CGI::Wiki can do Atom now - see http://www.earth.li/pipermail/cgi-wiki-dev/2006q2/000246.html), so I went ahead and did it.
----- Forwarded message from svnadmin@urchin.earth.li -----
[snip headers]
Author: earle Date: 2006-04-05 02:26:00 +0100 (Wed, 05 Apr 2006) New Revision: 753
Added: trunk/lib/OpenGuides/Feed.pm Modified: trunk/Build.PL trunk/MANIFEST trunk/PREREQUISITES trunk/lib/OpenGuides.pm trunk/lib/OpenGuides/RDF.pm trunk/t/22_rss_modwiki.t trunk/wiki.cgi Log: New module, OpenGuides::Feed: this extracts the stuff formerly in OpenGuides::RDF (as sub make_recentchanges_rss) that was invoking CGI::Wiki::Plugin::RSS::ModWiki, and replaces it with a single make_feed method that can be used for any feed format, including Atom (using the new CGI::Wiki::Plugin::Atom). Changes to OpenGuides.pm and wiki.cgi are to use this new module appropriately.
[snip diffs]
----- End forwarded message -----
You can see the new code running here.
* http://openguides.org/testing/index.cgi?action=rc;format=rss * http://openguides.org/testing/index.cgi?action=rc;format=atom
Tests pass (namely t/22_rss_modwiki.t), but there could probably be more - I'm a bit knackered and about to head off to bed, so I think I've used up all my Perl for the evening.
Cheers,
Earle.