From 381fe8d74aa4b4da60e96699d2770d239d54332b Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 23 Jun 2012 02:36:12 -0800 Subject: [PATCH] [fix] Changed require('sys') to require('util') for compatibility with node v0.8 --- node_modules/vows/lib/vows.js | 6 +++--- node_modules/vows/lib/vows/reporters/json.js | 4 ++-- node_modules/vows/lib/vows/reporters/spec.js | 6 +++--- node_modules/vows/lib/vows/reporters/watch.js | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/node_modules/vows/lib/vows.js b/node_modules/vows/lib/vows.js index 6fc8266..0f0ee73 100644 --- a/node_modules/vows/lib/vows.js +++ b/node_modules/vows/lib/vows.js @@ -15,7 +15,7 @@ // } // }).run(); // -var sys = require('sys'), +var util = require('util'), path = require('path'), events = require('events'), vows = exports; @@ -143,7 +143,7 @@ process.on('exit', function () { } }); - if (unFired.length > 0) { sys.print('\n') } + if (unFired.length > 0) { util.print('\n') } unFired.forEach(function (title) { s.reporter.report(['error', { @@ -163,7 +163,7 @@ process.on('exit', function () { }); }); if (failure) { - sys.puts(console.result(results)); + util.puts(console.result(results)); } }); diff --git a/node_modules/vows/lib/vows/reporters/json.js b/node_modules/vows/lib/vows/reporters/json.js index 449a68a..b69306b 100644 --- a/node_modules/vows/lib/vows/reporters/json.js +++ b/node_modules/vows/lib/vows/reporters/json.js @@ -1,10 +1,10 @@ -var sys = require('sys'); +var util = require('util'); // // Console JSON reporter // this.name = 'json'; this.report = function (obj) { - sys.puts(JSON.stringify(obj)); + util.puts(JSON.stringify(obj)); }; this.print = function (str) {}; diff --git a/node_modules/vows/lib/vows/reporters/spec.js b/node_modules/vows/lib/vows/reporters/spec.js index 8aace81..70a8262 100644 --- a/node_modules/vows/lib/vows/reporters/spec.js +++ b/node_modules/vows/lib/vows/reporters/spec.js @@ -1,4 +1,4 @@ -var sys = require('sys'); +var util = require('util'); var options = {}; var console = require('vows/console'); @@ -26,7 +26,7 @@ this.report = function (data, s) { puts(this.vowText(event)); break; case 'end': - sys.print('\n'); + util.print('\n'); break; case 'finish': puts(console.result(event).join('\n')); @@ -70,5 +70,5 @@ this.vowText = function (event) { }; this.print = function (str) { - sys.print(str); + util.print(str); }; diff --git a/node_modules/vows/lib/vows/reporters/watch.js b/node_modules/vows/lib/vows/reporters/watch.js index d895b22..0f22f02 100644 --- a/node_modules/vows/lib/vows/reporters/watch.js +++ b/node_modules/vows/lib/vows/reporters/watch.js @@ -1,4 +1,4 @@ -var sys = require('sys'); +var util = require('util'); var options = {}; var console = require('vows/console');