twobit/gear — pull request #2 by tivac (2012-12-12 08:14:59+00:00)
Title: Registry.load is now chainable

To ease loading lots of tasks into a single Registry, since Queue can't take multiple Registries.

Before change:

// constructor loads anything in "./tasks"
var registry = new Registry()
// load gear-lib tasks from npm module
.load({ module : "gear-lib" });

typeof registry; // "undefined"

After:

// constructor loads anything in "./tasks"
var registry = new Registry()
// load gear-lib tasks from npm module
.load({ module : "gear-lib" });

typeof registry; // "object"