node v0.6 compatibility

This commit is contained in:
Simon Tokumine 2012-03-16 13:50:07 +01:00
parent 0f8b5cb34c
commit dd9de25616
3 changed files with 10 additions and 5 deletions

View File

@ -12,7 +12,7 @@ core requirements
------------- -------------
* postgres * postgres
* redis * redis
* node v0.4.8+ * node >v0.4.8 && < 0.7.0>
* npm * npm
usage usage

View File

@ -10,14 +10,16 @@
}, },
"dependencies": { "dependencies": {
"cluster": "0.6.4", "cluster": "0.6.4",
"express": "2.4.3", "express": "2.5.8",
"underscore" : "1.1.x", "underscore" : "1.1.x",
"underscore.string": "1.1.5", "underscore.string": "1.1.5",
"pg": "0.5.6", "pg": "0.6.14",
"generic-pool": "1.0.x", "generic-pool": "1.0.x",
"redis": "0.6.1", "redis": "0.7.1",
"hiredis": "*",
"step": "0.0.x", "step": "0.0.x",
"oauth-client": "0.2.0" "oauth-client": "0.2.0",
"node-uuid":"1.3.3"
}, },
"devDependencies": { "devDependencies": {
"expresso": "0.8.x" "expresso": "0.8.x"

View File

@ -18,6 +18,9 @@ var app = require(global.settings.app_root + '/app/controllers/app')
, tests = module.exports = {} , tests = module.exports = {}
, querystring = require('querystring'); , 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"'; 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"';