apex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sas...@apache.org
Subject [1/2] incubator-apex-site git commit: APEXCORE-309 #resolve Updating fetch-versions task to generate valid list of release versions
Date Mon, 08 Feb 2016 23:38:31 GMT
Repository: incubator-apex-site
Updated Branches:
  refs/heads/master b93b3e6fa -> de6a586f5


APEXCORE-309 #resolve Updating fetch-versions task to generate valid list of release versions


Project: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/commit/9b0301d9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/tree/9b0301d9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/diff/9b0301d9

Branch: refs/heads/master
Commit: 9b0301d93e2ef6ff305199807eb8388056dc82fd
Parents: b93b3e6
Author: sashadt <sasha@datatorrent.com>
Authored: Tue Jan 19 16:05:59 2016 -0800
Committer: sashadt <sasha@datatorrent.com>
Committed: Mon Feb 8 15:35:11 2016 -0800

----------------------------------------------------------------------
 gulpfile.js | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-apex-site/blob/9b0301d9/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index 9966144..1b4fc5b 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -327,7 +327,7 @@ gulp.task('fetch-releases', function(taskCb) {
           var releases = releaseLinks.map(function(el) {
             return {
               // Trim the href attribute of leading "v" and trailing slash
-              version: el.href.trim().replace(/^v/, '').replace(/\/$/, ''),
+              version: el.innerHTML.trim().replace(/^v/, '').replace(/\/$/, ''),
               // Add repo for use in async.each call below
               repo: target.repo
             };
@@ -351,10 +351,13 @@ gulp.task('fetch-releases', function(taskCb) {
 
               // Find hash for this release's tag
               for (var i = 0; i < lines.length; i++) {
-                var parts = lines[i].split('\t');
-                if (parts[1].replace(/^refs\/tags\/v?/, '') === release.version) {
-                  tagHash = parts[0];
-                  break;
+                if (lines[i] && lines[i].trim().length > 0) {
+                  // console.log("Processing line[", i, "] : ", lines[i]);
+                  var parts = lines[i].split('\t');
+                  if (parts[1] && parts[1].replace(/^refs\/tags\/v?/, '') === release.version)
{
+                    tagHash = parts[0];
+                    break;
+                  }
                 }
               }
 


Mime
View raw message