Commits

Kazunori Ninomiya committed 6a3901a Merge

Merge branch 'release/0.1.2'

Comments (0)

Files changed (3)

 
 ## Release History
 
+* 2013-05-28 v0.1.2 Fixed bug with each file export.
 * 2013-05-04 v0.1.1 Bug fix. Changed the file deployment method and pattern matching method.
 * 2013-04-23 v0.1.0 Support wildcard pattern and JavaScript object as root. Extension of the setting method.
 * 2013-04-05 v0.0.1 first version
 {
   "name": "grunt-ect",
   "description": "Static site compiler built around ect",
-  "version": "0.1.1",
+  "version": "0.1.2",
   "homepage": "https://bitbucket.org/2no/grunt-ect",
   "author": {
     "name": "2no",
         break;
 
       case 'string':
-        if (typeof file.cwd === 'undefined') {
+        if (typeof orig.cwd === 'undefined') {
           orig.cwd = root;
-          src = grunt.task.normalizeMultiTaskFiles(orig)[0].src;
-          src = src.map(function(v) {
-            return !grunt.file.doesPathContain(root, v) ?
-              path.join(root, path.sep, v) : v;
+          src = grunt.task.normalizeMultiTaskFiles(orig).map(function(v) {
+            return v.src.map(function(v) {
+              return !grunt.file.doesPathContain(root, v) ?
+                path.join(root, path.sep, v) : v;
+            });
           });
+          src = Array.prototype.concat.apply([], src);
         }
         /* falls through */
       default: