This patch addresses the following defects:
Fails http://feedvalidator.org/docs/error/InvalidTAG.html
You can now provide a schema_date option to atom_feed. A warning is issued if this is not provided, as a default cannot be obtained otherwise.
2. IDs are not guaranteed unique
Separators were being stripped from tag IDs (both feed and entry), meaning that the following feeds would have the same ID:
/foo/bar
/foobar
/foo/11
/foo1/1
3. A default self link was not provided, contrary to the documentation
Docs say ":url - The URL for this feed. Defaults to the current URL."
This was not the case - no default was added to the feed.
Compatibility Issues
This patch will change tag IDs for existing feeds using this helper. That's a Bad Thing, but it is the lesser of two evils - it is more important to make the feeds valid.