I’ve just checked in a big update for Comatose.
Here’s a list of the major changes from the CHANGELOG:
[version 0.4] * Added keywords field * Abstracted text filters into a micro plugin structure, default support for - Textile - Markdown - RDoc * It will only show the filters as a choice in the admin if you have the necessary libraries for the filters to function. * Added ComatoseController.hidden_meta_info = [] as a way of showing/hiding the meta fields * The comatose_migration generator now accepts an --upgrade flag which will create a micro migration that only has the new fields in it * get_root_page will now support returning an array of root pages to show in the admin page list * Created some initial tests... (Can you tell I'm not a test _first_ guy?) * Inline rendering now handles :silent flag -- it will just return and empty string if :silent=>true * Modified all the internal references to ComatoseController to self.class. The views reference controller.class. Redirects redirect to :controller=> self.controller_name or controller.controller_name (action and view respectively). This show allow you to sub-class the ComatoseController.
As always, I’ve tried to keep the README up to date with the changes.
Upgrading from the previous version...
I’ve added a couple of fields to the comatose page model… If you have already installed the comatose plugin, and have the add_comatose_support migration applied, you can get a migration of just the new fields by running:
$ ./script/generate comatose_migration --upgrade
There’s only one other feature that I know I’m going to add in the near future—The ability to re-order the pages. It won’t be a big deal when I release that one though, I already have the field I need in there.
Feedback
As always, check it out, kick the tires, etc. Let me know if you have any issues/questions/suggestions…. darthapo at gmail dot com