Support for release candidates in the version.json file; propagates up through the version string everywhere: filenames, ZIP, source code

This commit is contained in:
Davis W. Frank
2011-06-15 18:37:12 -07:00
parent 6b2e45eab5
commit ae24e00c0f
8 changed files with 32 additions and 18 deletions

View File

@@ -51,12 +51,16 @@ jasmine.Env.prototype.version = function () {
* @returns string containing jasmine version build info, if set.
*/
jasmine.Env.prototype.versionString = function() {
if (jasmine.version_) {
var version = this.version();
return version.major + "." + version.minor + "." + version.build + " revision " + version.revision;
} else {
if (!jasmine.version_) {
return "version unknown";
}
var version = this.version();
var dotted_version = version.major + "." + version.minor + "." + version.build;
if (version.rc) {
dotted_version += ".rc" + version.rc;
}
return dotted_version + " revision " + version.revision;
};
/**