From 72993faa34f019f54c6e76696a792438b8c33db0 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 5 Jun 2011 00:50:23 -0700 Subject: [PATCH] fix trigger regex, update package.json, use new version of batteries --- northwatcher.js | 4 ++-- package.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/northwatcher.js b/northwatcher.js index b225d05..0b4ec96 100755 --- a/northwatcher.js +++ b/northwatcher.js @@ -18,7 +18,7 @@ var fs = require('fs') function main() { var path = require('path') - , eachLine = require('batteries').FileExt.eachLine + , eachLine = require('batteries').fs.eachLine , rcFile = require('path').join(process.env.HOME, '.northwatcher') fs.stat(rcFile, function(err, s) { @@ -35,7 +35,7 @@ function main() { // var m - if (m = line.match(/^([-+]{0,2})\s*(\S+)\s*(.+)$/i)) { + if (m = line.match(/^([-+]{0,2})\s*(\S+)\s+(.+)$/i)) { var trigger = m[1] || '+-' // default watches for both , dir = m[2] , command = m[3] diff --git a/package.json b/package.json index 80c5c2a..b2fb27d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ , "description" : "NorthWatcher is cron for filesystem changes." , "version" : "0.1.4" , "homepage" : "http://samhuri.net/proj/NorthWatcher" -, "author" : "Sami Samhuri " +, "author" : "Sami Samhuri " , "repository" : { "type" : "git" , "url" : "http://github.com/samsonjs/NorthWatcher.git" @@ -13,11 +13,11 @@ } , "bin" : { "northwatcher" : "./northwatcher.js" } , "main" : "./northwatcher.js" -, "engines" : { "node" : ">=0.4.0" } +, "engines" : { "node" : "0.4.x" } , "licenses" : [ { "type" : "MIT" , "url" : "http://github.com/samsonjs/NorthWatcher/raw/master/LICENSE" } ] -, "dependencies" : { "batteries" : "0.2.x" } +, "dependencies" : { "batteries" : "0.4.x" } }