rename doNotWrap to noWrap in console.js'

This commit is contained in:
ekatek
2014-12-08 14:44:36 -08:00
parent bcf6b200e1
commit f3e3dc7bca
4 changed files with 9 additions and 10 deletions

View File

@@ -1899,7 +1899,7 @@ _.extend(IOS.prototype, {
if (self.isSdkInstalled(version) && log) {
Console.warn(
"An old version of the iPhone SDK is installed",
Console.doNotWrap("(" + version + ")") + ";",
Console.noWrap("(" + version + ")") + ";",
"you should probably delete it. With SDK versions prior to 7.0",
"installed, your apps can't be published to the App Store.",
"Moreover, some Cordova plugins are incompatible with this SDK.",
@@ -1954,7 +1954,7 @@ _.extend(Android.prototype, {
Console.info(
"Can't determine acceleration for unknown host: ",
Console.doNotWrap(archinfo.host()));
Console.noWrap(archinfo.host()));
return undefined;
},

View File

@@ -1663,7 +1663,7 @@ var maybeUpdateRelease = function (options) {
// that track, so we are done.
Console.info(
"This project is already at " +
Console.doNotWrap(projectContext.releaseFile.displayReleaseName) +
Console.noWrap(projectContext.releaseFile.displayReleaseName) +
", which is newer than the latest release.");
return 0;
}

View File

@@ -922,7 +922,7 @@ _.extend(Console.prototype, {
// If pretty print is on, this will also bold the commands.
command: function (message) {
var self = this;
var unwrapped = self.doNotWrap(message);
var unwrapped = self.noWrap(message);
return self.bold(unwrapped);
},
@@ -933,7 +933,7 @@ _.extend(Console.prototype, {
// things browsers understand.
var unspaced =
replaceAll(message, ' ', '%20');
// There is no need to call doNotWrap here, since that only handles spaces
// There is no need to call noWrap here, since that only handles spaces
// (and we have done that). If it ever handles other things, we should call
// it here.
return self.underline(unspaced);
@@ -943,15 +943,14 @@ _.extend(Console.prototype, {
var self = this;
// XXX: Consider automatically escaping spaces.
// (Want to make sure that we don't escape a space twice though)
var unwrapped = self.doNotWrap(message);
var unwrapped = self.noWrap(message);
return self.bold(unwrapped);
},
// Do not wrap this substring when you send it into a non-raw print function.
// DO NOT print the result of this call with a raw function.
doNotWrap: function (message) {
var noBlanks =
replaceAll(message, ' ', SPACE_REPLACEMENT);
noWrap: function (message) {
var noBlanks = replaceAll(message, ' ', SPACE_REPLACEMENT);
return noBlanks;
},

View File

@@ -1264,7 +1264,7 @@ Fiber(function () {
// app's usual release by using a checkout, print a reminder banner.
Console.arrowWarn(
"Running Meteor from a checkout -- overrides project version " +
Console.doNotWrap("(" + appReleaseFile.displayReleaseName + ")"));
Console.noWrap("(" + appReleaseFile.displayReleaseName + ")"));
}
// Now that we're ready to start executing the command, if we are in