Skip to content

Commit

Permalink
version 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ddmitov committed Jan 8, 2017
1 parent 8f8daea commit 5739c70
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ elephantHarness.startScript(phpScriptObject);
* ``fs``

## External Dependency
The only external dependency of elephant-harness is a PHP interpreter on PATH or any other PHP interpreter identified by its full pathname. elephant-harness npm package test will fail if no ``php`` binary is available on PATH.
The only external dependency of elephant-harness is a PHP interpreter on PATH or any other PHP interpreter identified by its full pathname. elephant-harness npm package test will fail if no ``php`` binary is available on PATH. demo application will fail if no ``php-cgi`` binary is available on PATH.

## API

Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elephant-harness-demo-nw.js",
"version": "0.4.0",
"version": "0.4.1",
"description": "elephant-harness nw.js demo",
"keywords": [
"php",
Expand Down
2 changes: 1 addition & 1 deletion demo/resources/app/elephant-harness/elephant-harness.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// elephant-harness version 0.4.0
// elephant-harness version 0.4.1
// Node.js - Electron - NW.js controller for PHP scripts
// elephant-harness is licensed under the terms of the MIT license.
// Copyright (c) 2016 - 2017 Dimitar D. Mitov
Expand Down
14 changes: 1 addition & 13 deletions demo/resources/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,10 @@ var binaryDirectory = path.dirname(binaryPath);
// Get the full path of the application root directory:
var applicationDirectory = path.join(binaryDirectory, 'resources', 'app');

// PHP interpreter:
var phpInterpreter = 'php-cgi';
if (platform === 'win32') {
// Check for a portable PHP interpreter:
var portablePhp =
path.join(binaryDirectory, 'php', 'php-cgi.exe');
var filesystem = require('fs');
if (filesystem.existsSync(portablePhp)) {
phpInterpreter = portablePhp;
}
}

// Start the test script:
function startTestScript() {
var testScriptFullPath =
path.join(applicationDirectory, 'php', 'phpinfo.php');
path.join(applicationDirectory, 'php-cgi', 'phpinfo.php');

var testScriptOutput = '';

Expand Down
2 changes: 1 addition & 1 deletion demo/resources/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elephant-harness-demo-electron",
"version": "0.4.0",
"version": "0.4.1",
"description": "elephant-harness electron demo",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion elephant-harness.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// elephant-harness version 0.4.0
// elephant-harness version 0.4.1
// Node.js - Electron - NW.js controller for PHP scripts
// elephant-harness is licensed under the terms of the MIT license.
// Copyright (c) 2016 - 2017 Dimitar D. Mitov
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elephant-harness",
"version": "0.4.0",
"version": "0.4.1",
"description": "Node.js - Electron - NW.js controller for PHP scripts",
"main": "elephant-harness.js",
"directories": {
Expand Down

0 comments on commit 5739c70

Please sign in to comment.