From f3e3dc7bca29548b6d682a8bb0865ebce0fdceaf Mon Sep 17 00:00:00 2001 From: ekatek Date: Mon, 8 Dec 2014 14:44:36 -0800 Subject: [PATCH] rename doNotWrap to noWrap in console.js' --- tools/commands-cordova.js | 4 ++-- tools/commands-packages.js | 2 +- tools/console.js | 11 +++++------ tools/main.js | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index 1b48e31755..9f24df5302 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -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; }, diff --git a/tools/commands-packages.js b/tools/commands-packages.js index d354cac56e..5987f4e9a2 100644 --- a/tools/commands-packages.js +++ b/tools/commands-packages.js @@ -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; } diff --git a/tools/console.js b/tools/console.js index f75d218d8d..251c6a2c60 100644 --- a/tools/console.js +++ b/tools/console.js @@ -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; }, diff --git a/tools/main.js b/tools/main.js index e88ec12d81..fb914b29bd 100644 --- a/tools/main.js +++ b/tools/main.js @@ -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