Commit 6abcb9f9 6abcb9f9082fd8b4f5dc5381ff7cf2895d64ab8d by Nicolas Perriault

preparing for 0.4 release

1 parent 9b3d9f51
......@@ -30,6 +30,15 @@
return;
}
phantom.casperVersion = {
major: 0,
minor: 4,
revision: 0,
toString: function() {
return [this.major, this.minor, this.revision].join('.');
}
};
var fs = require('fs');
fs.pathJoin = function() {
......@@ -87,7 +96,11 @@
phantom.casperLoaded = true;
if (true === phantom.casperArgs.options.cli) {
if (phantom.casperArgs.args.length === 0 || !!phantom.casperArgs.options.help) {
if (!!phantom.casperArgs.options.version) {
console.log(phantom.casperVersion.toString());
phantom.exit(0);
} else if (phantom.casperArgs.args.length === 0 || !!phantom.casperArgs.options.help) {
console.log('CasperJS version ' + phantom.casperVersion.toString());
console.log('Usage: casperjs script.(js|coffee) [options...]');
console.log('Read the docs http://n1k0.github.com/casperjs/');
phantom.exit(0);
......
{
"name": "casperjs",
"description": "Navigation scripting & testing utility for PhantomJS",
"version": "0.4",
"keywords": [
"phantomjs",
"javascript"
],
"maintainers": [
{
"name": "Nicolas Perriault",
"email": "nperriault@gmail.com",
"web": "http://www.akei.com"
}
],
"dependencies": {
"http://www.phantomjs.org/": "1.3"
},
"bugs": {
"web": "https://github.com/n1k0/casperjs/issues"
},
"repositories": [
{
"type": "git",
"url": "git://github.com/n1k0/casperjs.git"
}
],
"licenses": [
{
"name": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
}
],
"homepage": "http://n1k0.github.com/casperjs"
}