jojothewhal3 / fabricate

Automatically exported from code.google.com/p/fabricate
0 stars 0 forks source link

Add memoize() method to Builder #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is good for consistency, so users using the Builder directly don't
have to catch the run() exception by hand.

Original issue reported on code.google.com by llu...@gmail.com on 31 Jul 2009 at 9:57

Attachments:

GoogleCodeExporter commented 9 years ago
The previous patch has a bug, the global run() function was called from
Builder.memorize() instead of self.run().

Attached is a patch that fixes that problem.

Original comment by llu...@gmail.com on 2 Aug 2009 at 9:16

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by benh...@gmail.com on 2 Aug 2009 at 10:04

GoogleCodeExporter commented 9 years ago
Please, note that you committed the patch with the bug in the revision r34. You
should replace the run() call with self.run() to be able to work with a custom 
builder.

Original comment by llu...@gmail.com on 2 Aug 2009 at 10:20

GoogleCodeExporter commented 9 years ago
Ah, good catch, fixed now in r35. Some of these things we wouldn't otherwise 
find
very quickly, because we use run() in our build scripts and not memoize() -- 
thanks. :-)

Original comment by benh...@gmail.com on 2 Aug 2009 at 11:34

GoogleCodeExporter commented 9 years ago
Maybe is time for some unit testing... But I suck at it, so I guess I won't be
sending patches for that ;)

Original comment by llu...@gmail.com on 2 Aug 2009 at 11:46