From 6506b3327e5c672d1cfd3c1a00c0e2eb27169e13 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sat, 23 Feb 2019 15:15:02 +0000 Subject: [PATCH] [feature] version bump --- js/update.js | 30 ++++++++++++++++-------------- js/version.js | 2 +- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/js/update.js b/js/update.js index 49a190c4..7afc7254 100644 --- a/js/update.js +++ b/js/update.js @@ -152,49 +152,51 @@ var update = (function() { function run(data) { if (!("version" in data)) { - console.log("\trunning update", 1.00); + console.log("\t -- running update", 1.00); data = _update_100(data); }; if (data.version < 2.00) { - console.log("\trunning update", 2.00); + console.log("\t -- running update", 2.00); data = _update_200(data); }; if (data.version < 2.10) { - console.log("\trunning update", 2.10); + console.log("\t -- running update", 2.10); data = _update_210(data); }; if (data.version < 2.30) { - console.log("\trunning update", 2.30); + console.log("\t -- running update", 2.30); data = _update_230(data); }; if (data.version < 2.40) { - console.log("\trunning update", 2.40); + console.log("\t -- running update", 2.40); data = _update_240(data); }; if (data.version < 2.50) { - console.log("\trunning update", 2.50); + console.log("\t -- running update", 2.50); data = _update_250(data); }; if (data.version < 2.70) { - console.log("\trunning update", 2.70); + console.log("\t -- running update", 2.70); data = _update_270(data); }; if (data.version < 2.80) { - console.log("\trunning update", 2.80); + console.log("\t -- running update", 2.80); data = _update_280(data); }; if (data.version < 2.90) { - console.log("\trunning update", 2.90); + console.log("\t -- running update", 2.90); data = _update_290(data); }; if (data.version < 2.91) { - console.log("\trunning update", 2.91); + console.log("\t -- running update", 2.91); data.version = 2.91; }; - // if (data.version < 3.00) { - // console.log("\t# running update", 3.00); - // data = _update_300(data); - // }; + // if no update is needed + // version bump + if (data.version < version.get()) { + console.log("\t -- nothing to update, version bump to", version.get()); + data.version = version.get(); + }; return data; }; diff --git a/js/version.js b/js/version.js index 21886314..71358261 100644 --- a/js/version.js +++ b/js/version.js @@ -1,7 +1,7 @@ var version = (function() { // version is normally bumped when the state needs changing or any new functionality is added - var current = "2.9.1"; + var current = "2.9.2"; var get = function() { var number = current.split(".");