"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/versions/version-info.js" between
angular.js-1.7.9.tar.gz and angular.js-1.8.0.tar.gz

About: AngularJS is a web application framework that assists with creating single-page applications that only require HTML, CSS, and JavaScript on the client side.

version-info.js  (angular.js-1.7.9):version-info.js  (angular.js-1.8.0)
skipping to change at line 63 skipping to change at line 63
var tagMessage = gitCatOutput.match(/^.*codename.*$/mg)[0]; var tagMessage = gitCatOutput.match(/^.*codename.*$/mg)[0];
var codeName = tagMessage && tagMessage.match(/codename\((.*)\)/)[1]; var codeName = tagMessage && tagMessage.match(/codename\((.*)\)/)[1];
if (!codeName) { if (!codeName) {
throw new Error('Could not extract release code name. The message of tag ' + tagName + throw new Error('Could not extract release code name. The message of tag ' + tagName +
' must match \'*codename(some release name)*\''); ' must match \'*codename(some release name)*\'');
} }
return codeName; return codeName;
}; };
/** /**
* Compute a build segment for the version, from the Jenkins build number and cu rrent commit SHA * Compute a build segment for the version, from the CI build number and current commit SHA
* @return {String} The build segment of the version * @return {String} The build segment of the version
*/ */
function getBuild() { function getBuild() {
var hash = shell.exec('git rev-parse --short HEAD', {silent: true}).stdout.rep lace('\n', ''); var hash = shell.exec('git rev-parse --short HEAD', {silent: true}).stdout.rep lace('\n', '');
return 'sha.' + hash; return 'sha.' + hash;
} }
function checkBranchPattern(version, branchPattern) { function checkBranchPattern(version, branchPattern) {
// check that the version starts with the branch pattern minus its asterisk // check that the version starts with the branch pattern minus its asterisk
// e.g. branchPattern = '1.6.*'; version = '1.6.0-rc.0' => '1.6.' === '1.6.' // e.g. branchPattern = '1.6.*'; version = '1.6.0-rc.0' => '1.6.' === '1.6.'
skipping to change at line 187 skipping to change at line 187
.last(); .last();
if (!version) { if (!version) {
// a snapshot version before the first tag on the branch // a snapshot version before the first tag on the branch
version = semver(currentPackage.branchPattern.replace('*','0-beta.1')); version = semver(currentPackage.branchPattern.replace('*','0-beta.1'));
} }
// We need to clone to ensure that we are not modifying another version // We need to clone to ensure that we are not modifying another version
version = semver(version.raw); version = semver(version.raw);
var jenkinsBuild = process.env.TRAVIS_BUILD_NUMBER || process.env.BUILD_NUMBER ; var ciBuild = process.env.CIRCLE_BUILD_NUM || process.env.BUILD_NUMBER;
if (!version.prerelease || !version.prerelease.length) { if (!version.prerelease || !version.prerelease.length) {
// last release was a non beta release. Increment the patch level to // last release was a non beta release. Increment the patch level to
// indicate the next release that we will be doing. // indicate the next release that we will be doing.
// E.g. last release was 1.3.0, then the snapshot will be // E.g. last release was 1.3.0, then the snapshot will be
// 1.3.1-build.1, which is lesser than 1.3.1 according to the semver! // 1.3.1-build.1, which is lesser than 1.3.1 according to the semver!
// If the last release was a beta release we don't update the // If the last release was a beta release we don't update the
// beta number by purpose, as otherwise the semver comparison // beta number by purpose, as otherwise the semver comparison
// does not work any more when the next beta is released. // does not work any more when the next beta is released.
// E.g. don't generate 1.3.0-beta.2.build.1 // E.g. don't generate 1.3.0-beta.2.build.1
// as this is bigger than 1.3.0-beta.2 according to semver // as this is bigger than 1.3.0-beta.2 according to semver
version.patch++; version.patch++;
} }
version.prerelease = jenkinsBuild ? ['build', jenkinsBuild] : ['local']; version.prerelease = ciBuild ? ['build', ciBuild] : ['local'];
version.build = getBuild(); version.build = getBuild();
version.codeName = 'snapshot'; version.codeName = 'snapshot';
version.isSnapshot = true; version.isSnapshot = true;
version.format(); version.format();
version.full = version.version + '+' + version.build; version.full = version.version + '+' + version.build;
version.branch = 'master'; version.branch = 'master';
version.distTag = currentPackage.distTag; version.distTag = currentPackage.distTag;
return version; return version;
}; };
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)