Skip to content

Commit

Permalink
# 0.11.0 (2016-07-27)
Browse files Browse the repository at this point in the history
* (bluefox) implement auto-restart of adapters (expert mode)
* (bluefox) add rights check for getBinaryState/setBinaryState
* (bluefox) support of default ttl for sessions
* (bluefox) fix custom setup
* (bluefox) fix upload binary files
* (bluefox) fix list of files in subdirectories
* (bluefox) fix visdebug without widgetset-name
  • Loading branch information
GermanBluefox committed Jul 27, 2016
1 parent 4a72394 commit 41eb030
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 22 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 0.11.0 (2016-07-27)
* (bluefox) implement auto-restart of adapters (expert mode)
* (bluefox) add rights check for getBinaryState/setBinaryState
* (bluefox) support of default ttl for sessions
* (bluefox) fix custom setup
* (bluefox) fix upload binary files
* (bluefox) fix list of files in subdirectories

# 0.10.1 (2016-07-06)
* (bluefox) support of chained certificates
* (bluefox) add nut
Expand Down
7 changes: 6 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"common": {
"name": "js-controller",
"version": "0.10.1",
"version": "0.11.0",
"platform": "Javascript/Node.js",
"controller": true,
"title": "ioBroker.js-controller",
"news": {
"0.11.0": {
"en": "implement auto-restart of adapters (expert mode)\nadd rights check for getBinaryState/setBinaryState\nsupport of default ttl for sessions\nfix custom setup\nfix upload binary files\nfix list of files in subdirectories\nadd nut\nadd vis-map",
"de": "implement auto-restart of adapters (expert mode)\nadd rights check for getBinaryState/setBinaryState\nsupport of default ttl for sessions\nfix custom setup\nfix upload binary files\nfix list of files in subdirectories\nadd nut\nadd vis-map",
"ru": "implement auto-restart of adapters (expert mode)\nadd rights check for getBinaryState/setBinaryState\nsupport of default ttl for sessions\nfix custom setup\nfix upload binary files\nfix list of files in subdirectories\nadd nut\nadd vis-map"
},
"0.10.1": {
"en": "support of chained certificates",
"de": "support of chained certificates",
Expand Down
43 changes: 23 additions & 20 deletions lib/setup/setupVisDebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function VisDebug(options) {

options = options || {};

if (!options.objects) throw "Invalid arguments: objects is missing";
if (!options.processExit) throw "Invalid arguments: processExit is missing";
if (!options.objects) throw 'Invalid arguments: objects is missing';
if (!options.processExit) throw 'Invalid arguments: processExit is missing';

var objects = options.objects;
var processExit = options.processExit;
Expand Down Expand Up @@ -37,28 +37,31 @@ function VisDebug(options) {

this.enableDebug = function (widgetset) {

// Try to find out the adapter directory out of a list of options
var adapterDir;
var adapterNames2Try = ['vis-' + widgetset, widgetset];
if (adapterNames2Try[0] == adapterNames2Try[1]) adapterNames2Try.splice(1, 1);
for (var i = 0; i < adapterNames2Try.length; i++) {
try {
var adapterDir2Try = tools.getAdapterDir(adapterNames2Try[i]);
// Query the entry
var stats = fs.lstatSync(adapterDir2Try);

// Is it a directory?
if (stats.isDirectory()) {
//found it!
adapterDir = adapterDir2Try;
break;
}
} catch (e) {
if (widgetset) {
// Try to find out the adapter directory out of a list of options
var adapterDir;
var adapterNames2Try = ['vis-' + widgetset, widgetset];
if (adapterNames2Try[0] === adapterNames2Try[1]) adapterNames2Try.splice(1, 1);
for (var i = 0; i < adapterNames2Try.length; i++) {
try {
var adapterDir2Try = tools.getAdapterDir(adapterNames2Try[i]);
// Query the entry
var stats = fs.lstatSync(adapterDir2Try);

// Is it a directory?
if (stats.isDirectory()) {
//found it!
adapterDir = adapterDir2Try;
break;
}
} catch (e) {

}
}

if (!adapterDir) throw 'Adapter not found. Tried: ' + adapterNames2Try.join(', ');
}

if (!adapterDir) throw 'Adapter not found. Tried: ' + adapterNames2Try.join(', ');

// copy index.html.original to index.html
// copy edit.html.original to edit.html
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": "iobroker.js-controller",
"version": "0.10.1",
"version": "0.11.0",
"engines": {
"node": ">=0.8"
},
Expand Down

0 comments on commit 41eb030

Please sign in to comment.