Fix Gemnasium badge when status is update!
up-to-date appears twice here, and update! nowhere. This causes badges like https://img.shields.io/gemnasium/resque/resque-web.svg to appear undefined, while there are actually red: https://gemnasium.com/resque/resque-web.svg
This commit is contained in:
parent
78721d7728
commit
d41c73db42
|
@ -2448,7 +2448,7 @@ cache(function(data, match, sendBadge, request) {
|
|||
badgeData.colorscheme = 'brightgreen';
|
||||
} else if (statusMatch === 'out-of-date') {
|
||||
badgeData.colorscheme = 'yellow';
|
||||
} else if (statusMatch === 'up-to-date') {
|
||||
} else if (statusMatch === 'update!') {
|
||||
badgeData.colorscheme = 'red';
|
||||
} else if (statusMatch === 'none') {
|
||||
badgeData.colorscheme = 'brightgreen';
|
||||
|
|
Loading…
Reference in New Issue
Block a user