From 70312901395093a23e408331d2850a33c3d35a3a Mon Sep 17 00:00:00 2001 From: John Haley Date: Mon, 16 Mar 2015 10:20:52 -0700 Subject: [PATCH 1/2] Confirm builder exists before building When not using Node 0.10.x we would sometimes have a missing builder (i.e. pangyp or nw-gyp). We'll now do an `npm install` for whatever builder we're using to make sure it exists. --- lifecycleScripts/install.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lifecycleScripts/install.js b/lifecycleScripts/install.js index d83961053..9b9f7580f 100644 --- a/lifecycleScripts/install.js +++ b/lifecycleScripts/install.js @@ -108,12 +108,15 @@ function build() { target = "--target=" + nwVersion; } - builder = path.resolve(".", "node_modules", ".bin", builder); - builder = builder.replace(/\s/g, "\\$&"); - var cmd = [prefix, builder, "rebuild", target, debug, distUrl] - .join(" ").trim(); + return exec("npm install " + builder) + .then(function() { + builder = path.resolve(".", "node_modules", ".bin", builder); + builder = builder.replace(/\s/g, "\\$&"); + var cmd = [prefix, builder, "rebuild", target, debug, distUrl] + .join(" ").trim(); - return exec(cmd, opts) + return exec(cmd, opts); + }) .then(function() { console.info("[nodegit] Compilation complete."); console.info("[nodegit] Completed installation successfully."); From f6d6db7449c1acaad77c66d498e43f823f732c10 Mon Sep 17 00:00:00 2001 From: John Haley Date: Mon, 16 Mar 2015 10:47:44 -0700 Subject: [PATCH 2/2] Bump to 0.3.2 --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8c7ab05aa..73ea6ee6b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ NodeGit ***NOTE: NodeGit currently does not work with [iojs on windows](https://github.com/rvagg/pangyp/issues/4)*** -**Stable: 0.3.1** +**Stable: 0.3.2** ## Have a problem? Come chat with us! ## diff --git a/package.json b/package.json index 34901e4ff..15f97030b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nodegit", "description": "Node.js libgit2 asynchronous native bindings", - "version": "0.3.1", + "version": "0.3.2", "libgit2": { "url": "https://github.com/nodegit/libgit2/tarball/4b3a1899ff37dddba0a095487505fed9ede101b1", "sha": "4b3a1899ff37dddba0a095487505fed9ede101b1",