From bbcaa76510495a6232c32e2c40df283b5f04af12 Mon Sep 17 00:00:00 2001 From: Christopher Mooney Date: Sat, 18 Feb 2012 16:19:52 -0800 Subject: [PATCH] Added support for node-gossip to be run from within a project's directory. This means that one can use git submodule to install it. I was unable to get the tests working because a require path problem. This problem was so bad I can only assume my environment is incorrect for running expresso tests. Please run tests and make sure they work. --- index.js | 3 +++ lib/gossiper.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..f0027b6 --- /dev/null +++ b/index.js @@ -0,0 +1,3 @@ +// This file is just added for convenience so this repository can be +// directly checked out (submodule) into a project +module.exports = require('./lib/gossiper'); diff --git a/lib/gossiper.js b/lib/gossiper.js index 68e458c..7208353 100644 --- a/lib/gossiper.js +++ b/lib/gossiper.js @@ -1,5 +1,5 @@ -var PeerState = require('peer_state').PeerState, - Scuttle = require('scuttle').Scuttle, +var PeerState = require('./peer_state').PeerState, + Scuttle = require('./scuttle').Scuttle, EventEmitter = require('events').EventEmitter, net = require('net'), sys = require('sys'),