From dd9de2561643b0c02fa3c151e1af8945541d0ef2 Mon Sep 17 00:00:00 2001 From: Simon Tokumine Date: Fri, 16 Mar 2012 13:50:07 +0100 Subject: [PATCH] node v0.6 compatibility --- README.md | 2 +- package.json | 10 ++++++---- test/acceptance/app.test.js | 3 +++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bd111f7c..26779ac7 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ core requirements ------------- * postgres * redis -* node v0.4.8+ +* node >v0.4.8 && < 0.7.0> * npm usage diff --git a/package.json b/package.json index 0aada475..849c3eae 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,16 @@ }, "dependencies": { "cluster": "0.6.4", - "express": "2.4.3", + "express": "2.5.8", "underscore" : "1.1.x", "underscore.string": "1.1.5", - "pg": "0.5.6", + "pg": "0.6.14", "generic-pool": "1.0.x", - "redis": "0.6.1", + "redis": "0.7.1", + "hiredis": "*", "step": "0.0.x", - "oauth-client": "0.2.0" + "oauth-client": "0.2.0", + "node-uuid":"1.3.3" }, "devDependencies": { "expresso": "0.8.x" diff --git a/test/acceptance/app.test.js b/test/acceptance/app.test.js index 08a9d1a2..15b255fb 100644 --- a/test/acceptance/app.test.js +++ b/test/acceptance/app.test.js @@ -18,6 +18,9 @@ var app = require(global.settings.app_root + '/app/controllers/app') , tests = module.exports = {} , querystring = require('querystring'); +// allow lots of emitters to be set to silence warning +app.setMaxListeners(0); + var real_oauth_header = 'OAuth realm="http://vizzuality.testhost.lan/",oauth_consumer_key="fZeNGv5iYayvItgDYHUbot1Ukb5rVyX6QAg8GaY2",oauth_token="l0lPbtP68ao8NfStCiA3V3neqfM03JKhToxhUQTR",oauth_signature_method="HMAC-SHA1", oauth_signature="o4hx4hWP6KtLyFwggnYB4yPK8xI%3D",oauth_timestamp="1313581372",oauth_nonce="W0zUmvyC4eVL8cBd4YwlH1nnPTbxW0QBYcWkXTwe4",oauth_version="1.0"';