Fixed major bug with inheritance.
The only check for whether or not to re-load the exemplars was in .spawn, but .gather_exemplars would go up the inheritance chain to get generators from parent classes. This caused some problems if a parent class had already gathered exemplars and then a child class caused it to re-gather them. (It was fine if the child class happened first.)
Moved the check to .gather_exemplars, added/moved specs, un-protected .gather_exemplars.
Adding Known Issues to README and generally updating content for recent changes.
Simplifying the cascading generation to always generate-and-save.
I guess I was right in that comment.
generate/generate! can now be thought of as analogs for create/create!
Moving 'generate' method entirely over to Rails side, leaving 'spawn' on its own for non-Rails use.
Further use of 'spawn' in place of 'generate' when only testing generation behavior without saving.
Minor (comment and whitespace) change in spec.
Making 'spawn' method to take over for 'generate' for the use case of not saving.
Added comments to indicate more ways of calling generator_for.
Adding specs to ensure blocks that specifically take no args (arity of 0 instead of -1 in Ruby 1.8) work just as well as blocks that implicitly take no arguments.
View revisions