@samitouri / QOS-React-2 / commits / 983120102c

Hold PhantomJS version at 1.9.0-1.

And don't attempt any chmod magic, either.

Ben Newman committed Aug 12, 2013 at 17:44 UTC 983120102cb7b2bb39294589318fa4ea4defa580
2 files changed +7 -10
grunt/tasks/phantom.js
+6 -9
@@ -1,7 +1,6 @@
1 'use strict';
2
3 var assert = require("assert");
4 -var fs = require("fs");
4 var grunt = require("grunt");
5 var spawn = grunt.util.spawn;
6 var semver = require("semver");
@@ -59,13 +58,11 @@ module.exports = function() {
58 var config = this.data;
59 var done = this.async();
60
62 - fs.chmod(phantomjs, 755, function(err) {
63 - spawn({
64 - cmd: phantomjs,
65 - args: ["--version"]
66 - }, function(error, result, code) {
67 - checkVersion(error, result, code);
68 - run(config, done);
69 - });
61 + spawn({
62 + cmd: phantomjs,
63 + args: ["--version"]
64 + }, function(error, result, code) {
65 + checkVersion(error, result, code);
66 + run(config, done);
67 });
68 };
package.json
+1 -1
@@ -50,7 +50,7 @@
50 "grunt-contrib-copy": "~0.4.1",
51 "grunt-contrib-jshint": "~0.6.0",
52 "optimist": "~0.4.0",
53 - "phantomjs": ">= 1.9.0",
53 + "phantomjs": "1.9.0-1",
54 "semver": "~2.0.0",
55 "uglify-js": "~2.3.6",
56 "grunt-contrib-clean": "~0.4.1",