From 33b9343942ada6c43fefdcfcb1f605a3d5502869 Mon Sep 17 00:00:00 2001 From: cobbspur Date: Wed, 15 Jul 2015 19:45:38 +0100 Subject: [PATCH] Update top-gh-contribs dependency refs #5503 - updates package.json to using 2.0.2 version of top-gh-conribs - updates gruntfile, using moment to calculate time period to observe - new version of top-gh-contribs is not related to top 100 contributors therefore returns more users - observed timepsan is reverted to 90 days now that top-gh-contribs fetches enough contributors --- Gruntfile.js | 6 ++---- package.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index fc8d7e3a4c..9b623a668c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -799,8 +799,6 @@ var _ = require('lodash'), // Builds the github contributors partial template used on the Settings/About page, // and downloads the avatar for each of the users. // Run by any task that compiles the ember assets or manually via `grunt buildAboutPage`. - // Change which version you're working against by setting the "releaseTag" below. - // // Only builds if the contributors template does not exist. // To force a build regardless, supply the --force option. // `grunt buildAboutPage --force` @@ -808,7 +806,7 @@ var _ = require('lodash'), var done = this.async(), templatePath = 'core/client/app/templates/-contributors.hbs', imagePath = 'core/client/public/assets/img/contributors/', - timeSpan = Date.now() - (1000 * 60 * 60 * 24 * 180), + timeSpan = moment().subtract(90, 'days').format('YYYY-MM-DD'), oauthKey = process.env.GITHUB_OAUTH_KEY; if (fs.existsSync(templatePath) && !grunt.option('force')) { @@ -825,7 +823,7 @@ var _ = require('lodash'), user: 'tryghost', repo: 'ghost', oauthKey: oauthKey, - releaseDate: timeSpan, + sinceDate: timeSpan, count: 18, retry: true }) diff --git a/package.json b/package.json index accbc43fc6..164737a469 100644 --- a/package.json +++ b/package.json @@ -93,6 +93,6 @@ "sinon": "1.14.1", "supertest": "1.0.1", "testem": "0.8.3", - "top-gh-contribs": "1.0.1" + "top-gh-contribs": "2.0.2" } }