Revision:

Revisions

# Date Author Comment
582aca67 04/17/2008 03:43 PM Yossef Mendelssohn

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.

d048dbc9 04/16/2008 03:04 PM Yossef Mendelssohn

Adding Known Issues to README and generally updating content for recent changes.

b677d382 04/16/2008 03:02 PM Yossef Mendelssohn

Simplifying the cascading generation to always generate-and-save.

I guess I was right in that comment.

e80c7b30 04/16/2008 02:56 PM Yossef Mendelssohn

generate/generate! can now be thought of as analogs for create/create!

eaf1e4b9 04/16/2008 02:50 PM Yossef Mendelssohn

Moving 'generate' method entirely over to Rails side, leaving 'spawn' on its own for non-Rails use.

aec31278 04/16/2008 02:48 PM Yossef Mendelssohn

Further use of 'spawn' in place of 'generate' when only testing generation behavior without saving.

c7c5446a 04/16/2008 02:45 PM Yossef Mendelssohn

Minor (comment and whitespace) change in spec.

71e780ac 04/16/2008 02:44 PM Yossef Mendelssohn

Making 'spawn' method to take over for 'generate' for the use case of not saving.

bcd6a4ac 02/19/2008 12:36 PM Yossef Mendelssohn

Added comments to indicate more ways of calling generator_for.

b3f92fe2 02/19/2008 12:36 PM Yossef Mendelssohn

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.

1880ec53 02/18/2008 09:22 PM Yossef Mendelssohn

Allowing generator_for to take an attr => value hash

44ad01df 02/18/2008 09:17 PM Yossef Mendelssohn

Allowing generator_for to take a mere value --- no block, no args hash, just a value

23d0d29d 02/18/2008 09:03 PM Yossef Mendelssohn

Allowing generator_for to take a block with no arguments

59cde604 02/18/2008 06:01 PM Yossef Mendelssohn

Small changes to the spec involving the real Widget class (for loading exemplar/generator files). Filled out a spec section for getting generators from parent classes' exemplar files and letting the subclasses override parent generators. Included a spec (currently pending) for getting the same to work if exemplar files aren't used, instead directly calling generator_for on the classes themselves (say, like in a test). Having trouble getting it to work.

033e28d9 02/18/2008 03:50 PM Yossef Mendelssohn

added source class to generator recording.

34870bb5 02/18/2008 03:47 PM Yossef Mendelssohn

Refactored the generator-recording method to store a hash rather than just the generator itself.

590a4ec2 02/18/2008 03:35 PM Yossef Mendelssohn

Added generator-recording method, refactoring generator_for a bit.

8a7ac7b2 02/18/2008 02:47 PM Yossef Mendelssohn

Errant whitespace

18e453fa 02/18/2008 02:45 PM Yossef Mendelssohn

Adding spec to ensure generate-and-save method exists for Rails models. Removed 'def' in the code that came from somewhere and should have been nowhere.

dd562a08 02/18/2008 02:31 PM Yossef Mendelssohn

Removing lots of explicit self. receivers because that's the way I roll, also cleaning up a little conditional in generate to see if generators exist.

2c128e0e 02/18/2008 12:08 PM Yossef Mendelssohn

Modified specs to actually create valid objects when the example says it's trying to create a valid object.

710f561c 02/18/2008 12:06 PM Yossef Mendelssohn

Added spec to ensure non-generator attrs don't get generated, reorged specs a bit.

6cf4cf38 02/18/2008 11:57 AM Yossef Mendelssohn

Calling generate-and-save always on any belongs-to association required by ID.

972362e6 02/18/2008 11:56 AM Yossef Mendelssohn

.gitignore time

53781c6f 12/13/2007 09:45 AM Yossef Mendelssohn

Options passed to validator must not stop at Object Daddy. They must be passed on to the actual validation. Damn you, Bradley.

1 2 Next » (1-25/41) | Per page: 25, 50, 100