You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apex.apache.org by sa...@apache.org on 2016/01/20 01:09:13 UTC
incubator-apex-site git commit: APEXCORE-309 #resolve Updating
fetch-versions task to generate valid list of release versions
Repository: incubator-apex-site
Updated Branches:
refs/heads/master df19e2ba1 -> 25ca7edfb
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/25ca7edf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/tree/25ca7edf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/diff/25ca7edf
Branch: refs/heads/master
Commit: 25ca7edfb9f6f7e747517a5e472248aa7c136a21
Parents: df19e2b
Author: sashadt <sa...@datatorrent.com>
Authored: Tue Jan 19 16:05:59 2016 -0800
Committer: sashadt <sa...@datatorrent.com>
Committed: Tue Jan 19 16:05:59 2016 -0800
----------------------------------------------------------------------
gulpfile.js | 13 ++++++++-----
releases.json | 5 +++++
2 files changed, 13 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-apex-site/blob/25ca7edf/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index db0d709..d2b8a5a 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -326,7 +326,7 @@ gulp.task('fetch-versions', 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
};
@@ -350,10 +350,13 @@ gulp.task('fetch-versions', 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;
+ }
}
}
http://git-wip-us.apache.org/repos/asf/incubator-apex-site/blob/25ca7edf/releases.json
----------------------------------------------------------------------
diff --git a/releases.json b/releases.json
index e5154f9..6a2ed28 100644
--- a/releases.json
+++ b/releases.json
@@ -11,6 +11,11 @@
"malhar": {
"src": [
{
+ "version": "3.3.0-incubating",
+ "repo": "incubator-apex-malhar",
+ "date": 1453081287000
+ },
+ {
"version": "3.2.0-incubating",
"repo": "incubator-apex-malhar",
"date": 1447740738000