Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E1C7C2009E8 for ; Mon, 30 May 2016 13:27:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E05A9160A19; Mon, 30 May 2016 11:27:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 330A5160A16 for ; Mon, 30 May 2016 13:27:58 +0200 (CEST) Received: (qmail 22722 invoked by uid 500); 30 May 2016 11:27:57 -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 22713 invoked by uid 99); 30 May 2016 11:27:57 -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; Mon, 30 May 2016 11:27:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2F769DFAFF; Mon, 30 May 2016 11:27:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: an-selm@apache.org To: commits@cordova.apache.org Message-Id: <5b4b25a3229d43269cee8fdf60906b65@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cordova-coho git commit: Fix audit-license-headers command Date: Mon, 30 May 2016 11:27:57 +0000 (UTC) archived-at: Mon, 30 May 2016 11:27:59 -0000 Repository: cordova-coho Updated Branches: refs/heads/master 53d2dd73b -> bdc8e4cf3 Fix audit-license-headers command Fix .ratignore not being respected Update rat to version 0.11 Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/bdc8e4cf Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/bdc8e4cf Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/bdc8e4cf Branch: refs/heads/master Commit: bdc8e4cf36d4114ac39b1abd09ca1cacc5402101 Parents: 53d2dd7 Author: Vladimir Kotikov Authored: Mon May 30 14:24:01 2016 +0300 Committer: Vladimir Kotikov Committed: Mon May 30 14:26:19 2016 +0300 ---------------------------------------------------------------------- .gitignore | 1 + src/audit-license-headers.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/bdc8e4cf/.gitignore ---------------------------------------------------------------------- diff --git a/.gitignore b/.gitignore index 8cbc9ca..832381b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ apache-rat-0.8 apache-rat-0.10 +apache-rat-0.11 node_modules .idea http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/bdc8e4cf/src/audit-license-headers.js ---------------------------------------------------------------------- diff --git a/src/audit-license-headers.js b/src/audit-license-headers.js index 0f22f62..022d682 100644 --- a/src/audit-license-headers.js +++ b/src/audit-license-headers.js @@ -52,8 +52,8 @@ var COMMON_RAT_EXCLUDES = [ var RAT_IGNORE_PATH = '.ratignore'; var RATIGNORE_COMMENT_PREFIX = '#'; -var RAT_NAME = 'apache-rat-0.10'; -var RAT_URL = 'https://dist.apache.org/repos/dist/release/creadur/apache-rat-0.10/apache-rat-0.10-bin.tar.gz'; +var RAT_NAME = 'apache-rat-0.11'; +var RAT_URL = 'https://dist.apache.org/repos/dist/release/creadur/apache-rat-0.11/apache-rat-0.11-bin.tar.gz'; function startsWith(string, prefix) { return string.indexOf(prefix) === 0; @@ -112,7 +112,7 @@ module.exports = function*() { if (fs.existsSync(RAT_IGNORE_PATH)) { var ratignoreFile = fs.readFileSync(RAT_IGNORE_PATH); - var ratignoreLines = ratignoreFile.toString().trim().split(os.EOL); + var ratignoreLines = ratignoreFile.toString().trim().split('\n'); // add only non-empty and non-comment lines ratignoreLines.forEach(function (line) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org