[feature] version bump

This commit is contained in:
zombieFox 2019-02-23 15:15:02 +00:00
parent dc8fe2b459
commit 6506b3327e
2 changed files with 17 additions and 15 deletions

View File

@ -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;
};

View File

@ -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(".");