cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-coho git commit: Fix audit-license-headers command
Date Mon, 30 May 2016 11:27:57 GMT
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 <kotikov.vladimir@gmail.com>
Authored: Mon May 30 14:24:01 2016 +0300
Committer: Vladimir Kotikov <kotikov.vladimir@gmail.com>
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


Mime
View raw message