Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 19211106D3 for ; Tue, 3 Mar 2015 08:31:05 +0000 (UTC) Received: (qmail 48265 invoked by uid 500); 3 Mar 2015 08:30:58 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 48176 invoked by uid 500); 3 Mar 2015 08:30:58 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 47961 invoked by uid 99); 3 Mar 2015 08:30:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 08:30:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4E5E5E1020; Tue, 3 Mar 2015 08:30:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: commits@cordova.apache.org Date: Tue, 03 Mar 2015 08:31:06 -0000 Message-Id: <16d2a97d329441f090551ba7fbb88e57@git.apache.org> In-Reply-To: <1f944d0b0204429a8ab267d7d4f286d9@git.apache.org> References: <1f944d0b0204429a8ab267d7d4f286d9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [09/11] cordova-lib git commit: CB-8457 Ignore version specifier when running hooks (close #165) CB-8457 Ignore version specifier when running hooks (close #165) Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/99f981a3 Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/99f981a3 Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/99f981a3 Branch: refs/heads/CB-8551 Commit: 99f981a3adc903bd454d6f01410dc350d85a8ed3 Parents: d7c2468 Author: Connor Pearson Authored: Wed Feb 11 19:50:32 2015 -0500 Committer: Andrew Grieve Committed: Mon Mar 2 10:11:38 2015 -0500 ---------------------------------------------------------------------- cordova-lib/src/hooks/HooksRunner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/99f981a3/cordova-lib/src/hooks/HooksRunner.js ---------------------------------------------------------------------- diff --git a/cordova-lib/src/hooks/HooksRunner.js b/cordova-lib/src/hooks/HooksRunner.js index 4191efd..0eaa04d 100644 --- a/cordova-lib/src/hooks/HooksRunner.js +++ b/cordova-lib/src/hooks/HooksRunner.js @@ -67,6 +67,7 @@ HooksRunner.prototype.prepareOptions = function(opts) { opts.projectRoot = this.projectRoot; opts.cordova = opts.cordova || {}; opts.cordova.platforms = opts.cordova.platforms || opts.platforms || cordovaUtil.listPlatforms(opts.projectRoot); + opts.cordova.platforms = opts.cordova.platforms.map(function(platform) { return platform.split('@')[0]; } ); opts.cordova.plugins = opts.cordova.plugins || opts.plugins || cordovaUtil.findPlugins(path.join(opts.projectRoot, 'plugins')); try { @@ -225,4 +226,4 @@ function extractSheBangInterpreter(fullpath) { if (shMatch) hookCmd = shMatch[1]; return hookCmd; -} \ No newline at end of file +} --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org