[Pkg-javascript-commits] [node-jscoverage] 05/05: update xfs module
Leo Iannacone
l3on-guest at moszumanska.debian.org
Thu May 22 08:55:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
l3on-guest pushed a commit to branch master
in repository node-jscoverage.
commit 7836fcb6d97cfc055409fc5a7c0346b9c8938a4c
Author: Leo Iannacone <l3on at ubuntu.com>
Date: Thu May 22 10:54:46 2014 +0200
update xfs module
---
debian/patches/0002-bundle_xfs_module.patch | 55 ++++++++++++++---------------
1 file changed, 26 insertions(+), 29 deletions(-)
diff --git a/debian/patches/0002-bundle_xfs_module.patch b/debian/patches/0002-bundle_xfs_module.patch
index 801da04..91ea086 100644
--- a/debian/patches/0002-bundle_xfs_module.patch
+++ b/debian/patches/0002-bundle_xfs_module.patch
@@ -14,11 +14,11 @@ Forwarded: not-needed
node_modules/xfs/Makefile | 11 +
node_modules/xfs/README.md | 52 +++++++++
node_modules/xfs/index.js | 60 ++++++++++
- node_modules/xfs/lib/async.js | 226 +++++++++++++++++++++++++++++++++++++++++
- node_modules/xfs/lib/sync.js | 61 +++++++++++
- node_modules/xfs/package.json | 40 +++++++
- node_modules/xfs/test/index.js | 221 ++++++++++++++++++++++++++++++++++++++++
- 10 files changed, 722 insertions(+)
+ node_modules/xfs/lib/async.js | 232 +++++++++++++++++++++++++++++++++++++++++
+ node_modules/xfs/lib/sync.js | 61 ++++++++++
+ node_modules/xfs/package.json | 36 ++++++
+ node_modules/xfs/test/index.js | 216 ++++++++++++++++++++++++++++++++++++++
+ 10 files changed, 719 insertions(+)
--- /dev/null
+++ b/node_modules/xfs/.jshintrc
@@ -40,7 +40,7 @@ Forwarded: not-needed
+ "beforeEach",
+ "after",
+ "afterEach",
-+ "expect",
++ "expect"
+ ],
+ "bitwise": true,
+ "curly": true,
@@ -91,7 +91,7 @@ Forwarded: not-needed
+ @npm install
+
+test: install
-+ @$(MOCHA) ./test --coverage
++ @$(MOCHA) -r jscoverage ./test
+
+.PHONY: instal test
--- /dev/null
@@ -214,7 +214,7 @@ Forwarded: not-needed
+};
--- /dev/null
+++ b/node_modules/xfs/lib/async.js
-@@ -0,0 +1,226 @@
+@@ -0,0 +1,232 @@
+var Fs = require('fs');
+var Path = require('path');
+
@@ -398,8 +398,8 @@ Forwarded: not-needed
+/**
+ * [walk description]
+ * @param {Path} path [description]
-+ * @param {RegExp} expr file match this expr will pass to
-+ * @param {Function} cb (err, stat, done)
++ * @param {RegExp} expr file match this expr will pass to
++ * @param {Function} cb (err, stat, done)
+ * @return {[type]} [description]
+ */
+function walk(path, expr, cb, done, _each) {
@@ -423,7 +423,13 @@ Forwarded: not-needed
+ if (count >= len) {
+ return done();
+ }
-+ walk(Path.join(path, flist[count]), expr, cb, done, each);
++ walk(Path.join(path, flist[count]), expr, cb, function () {
++ if (count >= len) {
++ return done();
++ } else {
++ each();
++ }
++ }, each);
+ count ++;
+ }
+ each();
@@ -508,7 +514,7 @@ Forwarded: not-needed
\ No newline at end of file
--- /dev/null
+++ b/node_modules/xfs/package.json
-@@ -0,0 +1,40 @@
+@@ -0,0 +1,36 @@
+{
+ "author": {
+ "name": "fish",
@@ -517,7 +523,7 @@ Forwarded: not-needed
+ },
+ "name": "xfs",
+ "description": "extends fs module, easy way to manipulate file system, support both sync functions and async functions",
-+ "version": "0.1.7",
++ "version": "0.1.8",
+ "homepage": "https://github.com/fishbar/xfs",
+ "repository": {
+ "type": "git",
@@ -525,10 +531,10 @@ Forwarded: not-needed
+ },
+ "main": "index.js",
+ "scripts": {
-+ "test": "mocha test --coverage"
++ "test": "mocha -r jscoverage test"
+ },
+ "engines": {
-+ "node": ">=0.6.0"
++ "node": ">=0.8.0"
+ },
+ "dependencies": {},
+ "devDependencies": {
@@ -542,28 +548,18 @@ Forwarded: not-needed
+ "bugs": {
+ "url": "https://github.com/fishbar/xfs/issues"
+ },
-+ "_id": "xfs at 0.1.7",
-+ "dist": {
-+ "shasum": "b00e3f138e77a9bb981572ec1d7eee8b64374ee8"
-+ },
-+ "_from": "xfs at 0.1.7",
-+ "_resolved": "https://registry.npmjs.org/xfs/-/xfs-0.1.7.tgz"
++ "_id": "xfs at 0.1.8",
++ "_from": "xfs at 0.1.8"
+}
--- /dev/null
+++ b/node_modules/xfs/test/index.js
-@@ -0,0 +1,221 @@
-+var jsc = require('jscoverage');
-+require = jsc.mock(module);
+@@ -0,0 +1,216 @@
+var expect = require('expect.js');
+require('../lib/async', true);
+require('../lib/sync', true);
+var xfs = require('../index', true);
+var fs = require('fs');
+
-+process.on('exit', function () {
-+ jsc.coverage();
-+});
-+
+process.chdir(__dirname);
+
+describe('xfs.mkdir', function () {
@@ -681,6 +677,7 @@ Forwarded: not-needed
+ it('should ok when walk through dir', function (done) {
+ xfs.sync().save('./walk/a.js', '');
+ xfs.sync().save('./walk/b/c.js', '');
++ xfs.sync().mkdir('./walk/a');
+ var arr = [];
+ xfs.walk('./walk', function (err, file, done) {
+ arr.push(file);
@@ -752,7 +749,7 @@ Forwarded: not-needed
+ });
+});
+
-+function compareVersion(v0, v1) {
++function compareVersion(v0, v1) {
+ v0 = v0.split('.');
+ v1 = v1.split('.');
+ if (v0[0] > v1[0]) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jscoverage.git
More information about the Pkg-javascript-commits
mailing list