Comparing version 0.3.6 to 0.3.7
@@ -91,7 +91,14 @@ /* | ||
var p = pat || '.*' | ||
, re = new RegExp(pat) | ||
, testFiles = self.testFiles.toArray().filter(function (f) { | ||
return (re).test(f); | ||
}); | ||
, re | ||
, testFiles; | ||
// Don't nest; make a top-level namespace. Don't want | ||
// re-calling from inside to nest infinitely | ||
jake.currentNamespace = jake.defaultNamespace; | ||
re = new RegExp(pat) | ||
testFiles = self.testFiles.toArray().filter(function (f) { | ||
return (re).test(f); | ||
}); | ||
// Create a namespace for all the testing tasks to live in | ||
@@ -149,3 +156,3 @@ namespace(self.testName + 'Exec', function () { | ||
if (typeof exp.before == 'function') { | ||
prereqs.push(file + ':before'); | ||
prereqs.push(self.testName + 'Exec:' + file + ':before'); | ||
// Create the task | ||
@@ -162,3 +169,3 @@ createTask('before', exp.before); | ||
// for the dummy top-level task | ||
prereqs.push(file + ':' + p); | ||
prereqs.push(self.testName + 'Exec:' + file + ':' + p); | ||
// Create the task | ||
@@ -169,3 +176,3 @@ createTask(p, exp[p]); | ||
if (typeof exp.after == 'function') { | ||
prereqs.push(file + ':after'); | ||
prereqs.push(self.testName + 'Exec:' + file + ':after'); | ||
// Create the task | ||
@@ -186,4 +193,7 @@ createTask('after', exp.after); | ||
}); | ||
topLevel.invoke(); // Do the thing! | ||
}); | ||
}, {async: true}); | ||
@@ -190,0 +200,0 @@ }); |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"author": "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)", | ||
@@ -13,0 +13,0 @@ "bin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131751
3190