Update top-gh-contribs to get contributors within last 90 days

Closes #4130
This commit is contained in:
Matt Enlow 2014-09-24 22:50:31 -06:00
parent 2b2586a459
commit d4bf80430c
2 changed files with 4 additions and 3 deletions

View File

@ -945,7 +945,8 @@ var _ = require('lodash'),
// `grunt buildAboutPage --force`
grunt.registerTask('buildAboutPage', 'Compile assets for the About Ghost page', function () {
var done = this.async(),
templatePath = 'core/client/templates/-contributors.hbs';
templatePath = 'core/client/templates/-contributors.hbs',
ninetyDaysAgo = Date.now() - (1000 * 60 * 60 * 24 * 90);
if (fs.existsSync(templatePath) && !grunt.option('force')) {
grunt.log.writeln('Contributors template already exists.');
@ -957,7 +958,7 @@ var _ = require('lodash'),
getTopContribs({
user: 'tryghost',
repo: 'ghost',
releaseTag: '0.4.2',
releaseDate: ninetyDaysAgo,
count: 20
}).then(function makeContributorTemplate(contributors) {
var contributorTemplate = '<li>\n\t<a href="<%githubUrl%>" title="<%name%>">\n' +

View File

@ -98,6 +98,6 @@
"should": "~4.0.4",
"sinon": "~1.10.3",
"supertest": "~0.13.0",
"top-gh-contribs": "0.0.1"
"top-gh-contribs": "0.0.2"
}
}