dhruvbird/http-sync — pull request #13 by EndangeredMassa (2013-09-30 14:49:57+00:00)
Title: fixed compiled extension reference

The reference to the compiled extension assumes that you manually moved it to the root of the project. In an automated `npm install` use, this doesn't happen.

This PR attempts to load the module from its compiled paths, assuming `node >= 0.8.0` first, but falling back to the old path.

An alternative approach would be to have each script copy the compiled extension to the root after compiling. I don't know enough about the compiled extensions scripts to mess with that, especially with `node < 0.8.0`. If you'd prefer that approach, please do that soon so that this can be used without manual steps. Or, at least accept this PR in the short term and update it later.