Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed Feb 12, 2015
1 parent 36bceee commit f20f4a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions builder/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var FILE_ENCODING = "utf-8";
var indentation = " ";

var buildSpec = {
baseVersion: "1.3.0-alpha",
gitUrl: "https://github.com/timdown/rangy.git",
gitBranch: "master"
};
Expand Down Expand Up @@ -119,11 +118,6 @@ function getVersion() {
console.log("Getting version from Git repo");
exec("git describe", function(error, stdout, stderr) {
console.log(error, stdout, stderr);
//var result = /^.*-([\d]+)-.*$/.exec( stdout.trim() );
//var commitNumber = parseInt(result[1]);
//var now = new Date();
//buildVersion = buildSpec.baseVersion + "." + [now.getFullYear(), ("" + (101 + now.getMonth())).slice(1), ("" + (100 + now.getDate())).slice(1)].join("");

console.log("Getting version from package.json");
buildVersion = JSON.parse( fs.readFileSync("package.json")).version;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rangy",
"description": "A cross-browser DOM range and selection library",
"version": "1.3.0-alpha.20150122",
"version": "1.3.0-beta.1",
"author": {
"name": "Tim Down",
"email": "[email protected]",
Expand Down

0 comments on commit f20f4a8

Please sign in to comment.