0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

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
This commit is contained in:
cobbspur 2015-07-15 19:45:38 +01:00
parent f1b558eb68
commit 33b9343942
2 changed files with 3 additions and 5 deletions

View file

@ -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
})

View file

@ -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"
}
}