Skip to content

Commit

Permalink
moving to new patch because of eslint errors
Browse files Browse the repository at this point in the history
and missing npm dep
  • Loading branch information
ecasilla committed Nov 3, 2015
1 parent 0a59bf0 commit 047b399
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ gulp.task('static', function () {
});

gulp.task('clean', function (cb) {
del(['./docs','./coverage'], cb);
del(['./docs', './coverage'], cb);
});

gulp.task('docs', ['clean'], shell.task([
'./node_modules/.bin/jsdoc -c jsdoc.conf.json -d docs/code lib/ -r index.js'
]))
'./node_modules/.bin/jsdoc -c jsdoc.conf.json -d docs/code lib/ -r index.js'
]));

gulp.task('nsp', function (cb) {
nsp({package: pkg}, cb);
Expand Down
18 changes: 9 additions & 9 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function RemovePsDir(){
}
/**
* @description The main fn that kicks off the entire workflow
* @param{String} A valid directory path from which to start removing
* @param{String} A valid directory path from which to start removing
* dead worker pid dir
* @param{Function} The callback fn to call once finished
*/
Expand Down Expand Up @@ -59,7 +59,7 @@ RemovePsDir.prototype.__gateKeeper = function __gateKeeper(path, cb) {
/**
* @description This method returns a sorted array of all integer named directory inside the original path
* @param{String} The original path
* @returns{Array<String>} A sorted array of all pid based directory
* @returns{Array<String>} A sorted array of all pid based directory
* sorted for easy search later on
*/
RemovePsDir.prototype.__getPsDir = function __getPsDir(path) {
Expand All @@ -69,7 +69,7 @@ RemovePsDir.prototype.__getPsDir = function __getPsDir(path) {

/**
* @description A function that returns a predicate
* function to be tested on every element in an array
* function to be tested on every element in an array
* against a Regular Expression
* @returns{Function}
*/
Expand All @@ -81,8 +81,8 @@ RemovePsDir.prototype.__filterPaths = function __filterPaths() {
};

/**
* @description A method that streams all
* output from the stdout call to ps and create a pipeline stream
* @description A method that streams all
* output from the stdout call to ps and create a pipeline stream
* from which I operate on every number of the ps stream
*
*/
Expand All @@ -98,7 +98,7 @@ RemovePsDir.prototype.__runningProcess = function __runningProcess() {
};

/**
* @description This function is called for every
* @description This function is called for every
* new line in the ps stdout stream
* @params{String} The current line of text in the running stream
* @params{Function} A callback fn to tell the stream we are done operating
Expand Down Expand Up @@ -151,7 +151,7 @@ RemovePsDir.prototype.__reduce = function __reduce(acc, val) {
};

/**
* @description Sadly the stream-reduce interface is synchronous
* @description Sadly the stream-reduce interface is synchronous
* so I must use all the Sync api's from node
* @param{String} A current dead workers pid
* @returns{String} The complete path of the dead worker directory
Expand All @@ -171,12 +171,12 @@ RemovePsDir.prototype.__rmdir = function __rmdir(pid) {
};

/**
* @description This is the final fn called in the flow.
* @description This is the final fn called in the flow.
* From here we go back to user land
* reduce breaks normal nodeback arity so must
* implement this in order to be node style compatible
* @params{Error} This might be an error or null depending on the caller
* @returns{Function} This is event handler fn that
* @returns{Function} This is event handler fn that
* will be called by reduce or error from the stream pipeline
* @params{Array|Error} If successful an array of paths
* otherwise and instance of Error
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remove-ps-dir",
"version": "1.0.1",
"version": "1.0.2",
"description": "A module to remove directory's that are named after their process id",
"homepage": "https://github.com/ecasilla/remove-ps-dir",
"author": {
Expand All @@ -25,6 +25,7 @@
"devDependencies": {
"async": "^1.5.0",
"chai": "^3.4.0",
"del": "^2.0.2",
"gulp": "^3.6.0",
"gulp-coveralls": "^0.1.0",
"gulp-eslint": "^1.0.0",
Expand Down

0 comments on commit 047b399

Please sign in to comment.