Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6816 (closed enhancement: invalid)

Opened 3 years ago

Last modified 2 years ago

Giving resource_feeder some love - allow pubDate at the feed level, better error handling, docs

Reported by: rsanheim Assigned to: core
Priority: normal Milestone: 1.2.4
Component: Plugins Version: edge
Severity: normal Keywords: plugin
Cc:

Description

Multiple updates to resource_feeder, particularily RSS 2.0 feeds.

* added docs to rss.rb explaining default options and what each option does

* added support for optionally providing a pubDate for the feed (right pubDate is only at the item level)

* added better error handling if the user just keeps the default options, but their resource doesn't respond to any of the default method calls. Previously this would raise some sort of obscure type error - now it will raise an ArgumentError with an error message telling the user they probably have to override defaults.

If you would like more tests or better wording the docs, just holler.

* includes tests for the new feed level pubDate and the new error handling

* cleaned up a test duplication a little

* this patch also includes the fixes from Ticket #6787 to be compatible with the latest SimplyHelpful plugin - so if this patch is applied #6787 can be closed.

Attachments

resource_feeder_patch.diff (10.7 kB) - added by rsanheim on 12/11/06 08:08:25.
resource feeder patch

Change History

12/11/06 08:08:25 changed by rsanheim

  • attachment resource_feeder_patch.diff added.

resource feeder patch

12/11/06 08:10:49 changed by rsanheim

Oh, one other thing this does for RSS is it allows overriding the feed link in the same way you can override the item link. Without this patch it just assumes you have a named route corresponding to the resource name, which is a nice convention but undoubtedly won't always be the case for people who haven't gotten 100% on board with RESTful rails yet.

05/25/07 17:19:11 changed by josh

  • status changed from new to closed.
  • resolution set to invalid.

Resource feeder is no more. [6835]