Feedzirra, the best feed parsing library on teh intarwebs, just got a little bit better thanks to the help of a bunch of different people. I think this release really highlights the power of Github. OSS has always been about distributed development, but with the hub it has become effortless. I can't imagine this happening on a regular old CVS or SVN site.
Here are the details on what's new:
- Gzip and Deflate support added thanks to Ozgor. Now in addition to speed, you'll save even more bandwidth. I updated his change to request gzip and deflate by default on all feeds.
- Support for categories on entries thanks to Jeff Chupp.
- Bug fixes from Jed Hurt and Greg Borenstein.
- I've changed RSS & RDF parsing to use the same class. I'm considering just combining the FeedzirraAtom and Atom classes into one as well. Thoughts?
- Based on feedback from my post last week about the sanitize api using proxy objects, I've changed sanitization up. I started with the code from James Adam's response and added a little bit. I'll probably modify it later by just opening up the String class, but the API will keep its new form. Here it is:
# sanitizing an entry's content
entry.title.sanitize # => returns the title with harmful stuff escaped
entry.author.sanitize # => returns the author with harmful stuff escaped
entry.content.sanitize # => returns the content with harmful stuff escaped
entry.content.sanitize! # => returns content with harmful stuff escaped and replaces original (also exists for author and title)
entry.sanitize! # => sanitizes the entry's title, author, and content in place (as in, it changes the value to clean versions)
feed.sanitize_entries! # => sanitizes all entries in place
I was hoping to get the Rails mapping and generator in this release, but I didn't want to wait any longer (maybe next week). If you're having any problems or have feature requests, please join in the Feedzirra discussion group.