Fix Gemnasium badges

Gemnasium has changed the 'y' position of the text, so shields
version of the gemnasium badges are currently broken.
This commit fixes them.
This commit is contained in:
claudiofullscreen 2014-08-20 15:09:19 -07:00
parent 16946098ac
commit cd7d0fd488

View File

@ -1075,7 +1075,7 @@ cache(function(data, match, sendBadge) {
}
try {
var nameMatch = buffer.match(/(devD|d)ependencies/)[0];
var statusMatch = buffer.match(/'12'>(.+)<\/text>\n<\/g>/)[1];
var statusMatch = buffer.match(/'13'>(.+)<\/text>\n<\/g>/)[1];
badgeData.text[0] = nameMatch;
badgeData.text[1] = statusMatch;
if (statusMatch === 'up-to-date') {