Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 0f21bf6

Browse files
committed
Merge pull request #8680 from MarcelGerber/sprint-to-release
Sprint -> Release
2 parents ece9bbf + 13fb6ae commit 0f21bf6

8 files changed

Lines changed: 33 additions & 33 deletions

File tree

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ module.exports = function (grunt) {
312312
grunt.registerTask('test', ['jshint:all', 'jasmine']);
313313
// grunt.registerTask('test', ['jshint:all', 'jasmine', 'jasmine_node']);
314314

315-
// task: set-sprint
316-
// Update sprint number in package.json and rewrite src/config.json
317-
grunt.registerTask('set-sprint', ['update-sprint-number', 'write-config']);
315+
// task: set-release
316+
// Update version number in package.json and rewrite src/config.json
317+
grunt.registerTask('set-release', ['update-release-number', 'write-config']);
318318

319319
// task: build
320320
grunt.registerTask('build', [

src/extensions/default/HTMLCodeHints/unittests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ define(function (require, exports, module) {
447447

448448
// Expect no filtering - however, we offer some attributes (including first in the list) that
449449
// are specific to the <input> tag, so we can't use the default "no filtering" empty arg here.
450-
// (This smart filtering isn't officially part of the sprint, so no unit tests specifically
450+
// (This smart filtering isn't officially part of the release, so no unit tests specifically
451451
// targeting that functionality yet).
452452
verifyAttrHints(hintList, "accept");
453453
});

src/language/CSSUtils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ define(function (require, exports, module) {
12551255
* Finds all instances of the specified selector in "text".
12561256
* Returns an Array of Objects with start and end properties.
12571257
*
1258-
* For Sprint 4, we only support simple selectors. This function will need to change
1258+
* For now, we only support simple selectors. This function will need to change
12591259
* dramatically to support full selectors.
12601260
*
12611261
* FUTURE: (JRB) It would be nice to eventually use the browser/jquery to do the selector evaluation.
@@ -1276,7 +1276,7 @@ define(function (require, exports, module) {
12761276
var result = [];
12771277
var i;
12781278

1279-
// For sprint 4 we only match the rightmost simple selector, and ignore
1279+
// For now, we only match the rightmost simple selector, and ignore
12801280
// attribute selectors and pseudo selectors
12811281
var classOrIdSelector = selector[0] === "." || selector[0] === "#";
12821282
var prefix = "";
@@ -1384,7 +1384,7 @@ define(function (require, exports, module) {
13841384

13851385
/**
13861386
* Return all rules matching the specified selector.
1387-
* For Sprint 4, we only look at the rightmost simple selector. For example, searching for ".foo" will
1387+
* For now, we only look at the rightmost simple selector. For example, searching for ".foo" will
13881388
* match these rules:
13891389
* .foo {}
13901390
* div .foo {}

src/nls/root/strings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ define({
411411
"RELAUNCH_CHROME" : "Relaunch Chrome",
412412
"ABOUT" : "About",
413413
"CLOSE" : "Close",
414-
"ABOUT_TEXT_LINE1" : "sprint {VERSION_MINOR} {BUILD_TYPE} {VERSION}",
414+
"ABOUT_TEXT_LINE1" : "Release {VERSION_MAJOR}.{VERSION_MINOR} {BUILD_TYPE} {VERSION}",
415415
"ABOUT_TEXT_BUILD_TIMESTAMP" : "build timestamp: ",
416416
"ABOUT_TEXT_LINE3" : "Notices, terms and conditions pertaining to third party software are located at <a href='{ADOBE_THIRD_PARTY}'>{ADOBE_THIRD_PARTY}</a> and incorporated by reference herein.",
417417
"ABOUT_TEXT_LINE4" : "Documentation and source at <a href='https://github.com/adobe/brackets/'>https://github.com/adobe/brackets/</a>",

src/utils/BuildInfoUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ define(function (require, exports, module) {
8585
// Look for Git metadata on disk to load the SHAs for 'brackets'. Done on
8686
// startup instead of on demand because the version that's currently running is what was
8787
// loaded at startup (the src on disk may be updated to a different version later).
88-
// Git metadata may be missing (e.g. in the per-sprint ZIP builds) - silently ignore if so.
88+
// Git metadata may be missing (e.g. in the release builds) - silently ignore if so.
8989
var bracketsSrc = FileUtils.getNativeBracketsDirectoryPath();
9090

9191
// Assumes Brackets is a standalone repo and not a submodule (prior to brackets-shell,
@@ -107,4 +107,4 @@ define(function (require, exports, module) {
107107

108108
// FIXME (jasonsanjose): Since the move to brackets-shell, can't reliably get SHA for shell.
109109
// exports._getBracketsShellSHA = getBracketsShellSHA;
110-
});
110+
});

src/utils/UpdateNotification.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ define(function (require, exports, module) {
7575
// an Object with the following fields:
7676
//
7777
// {Number} buildNumber Number of the build
78-
// {String} versionString String representation of the build number (ie "Sprint 14")
78+
// {String} versionString String representation of the build number (ie "Release 0.40")
7979
// {String} dateString Date of the build
8080
// {String} releaseNotesURL URL of the release notes for this build
8181
// {String} downloadURL URL to download this build

tasks/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = function (grunt) {
4040
json = {};
4141

4242
// count the number of commits for our version number
43-
// <major>.<sprint>.<patch>-<number of commits>
43+
// <major>.<minor>.<patch>-<number of commits>
4444
return qexec("git log --format=%h", opts).then(function (stdout) {
4545
json.commits = stdout.toString().match(/[0-9a-f]\n/g).length;
4646

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
/*
22
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
3-
*
3+
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
5-
* copy of this software and associated documentation files (the "Software"),
6-
* to deal in the Software without restriction, including without limitation
7-
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
8-
* and/or sell copies of the Software, and to permit persons to whom the
5+
* copy of this software and associated documentation files (the "Software"),
6+
* to deal in the Software without restriction, including without limitation
7+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
8+
* and/or sell copies of the Software, and to permit persons to whom the
99
* Software is furnished to do so, subject to the following conditions:
10-
*
10+
*
1111
* The above copyright notice and this permission notice shall be included in
1212
* all copies or substantial portions of the Software.
13-
*
13+
*
1414
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19-
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
17+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2020
* DEALINGS IN THE SOFTWARE.
21-
*
21+
*
2222
*/
2323
/*global module, require*/
2424

2525
module.exports = function (grunt) {
2626
"use strict";
2727

2828
var common = require("./lib/common")(grunt);
29-
30-
// task: update-sprint-number
29+
30+
// task: update-release-number
3131
// Updates the version property in package.json
32-
grunt.registerTask('update-sprint-number', function () {
32+
grunt.registerTask('update-release-number', function () {
3333
var path = "package.json",
3434
packageJSON = grunt.file.readJSON(path),
35-
sprint = grunt.option("sprint") || 0,
35+
release = grunt.option("release") || 0,
3636
versionNumberRegexp = /([0-9]+\.)([0-9]+)([\.\-a-zA-Z0-9]*)?/;
3737

38-
if (!sprint) {
39-
grunt.fail.fatal("Please specify a sprint. e.g. grunt update-sprint-number --sprint=21");
38+
if (!release) {
39+
grunt.fail.fatal("Please specify a release. e.g. grunt update-release-number --release=40");
4040
}
41-
42-
packageJSON.version = packageJSON.version.replace(versionNumberRegexp, "$1" + sprint + "$3");
43-
packageJSON.apiVersion = packageJSON.apiVersion.replace(versionNumberRegexp, "$1" + sprint + "$3");
41+
42+
packageJSON.version = packageJSON.version.replace(versionNumberRegexp, "$1" + release + "$3");
43+
packageJSON.apiVersion = packageJSON.apiVersion.replace(versionNumberRegexp, "$1" + release + "$3");
4444

4545
common.writeJSON(grunt, path, packageJSON);
4646
});

0 commit comments

Comments
 (0)