Merge remote-tracking branch 'ElNounch/DavidOptionalDep'

This commit is contained in:
Thaddee Tyl 2015-05-25 19:20:13 +02:00
commit 5ffc6328ce
2 changed files with 6 additions and 2 deletions

View File

@ -1822,10 +1822,10 @@ cache(function(data, match, sendBadge, request) {
}));
// David integration
camp.route(/^\/david\/(dev\/|peer\/)?(.+?)\.(svg|png|gif|jpg|json)$/,
camp.route(/^\/david\/(dev\/|optional\/|peer\/)?(.+?)\.(svg|png|gif|jpg|json)$/,
cache(function(data, match, sendBadge, request) {
var dev = match[1];
if (dev != null) { dev = dev.slice(0, -1); } // 'dev' or 'peer'.
if (dev != null) { dev = dev.slice(0, -1); } // 'dev', 'optional' or 'peer'.
// eg, `strongloop/express`, `webcomponents/generator-element`.
var userRepo = match[2];
var format = match[3];

View File

@ -470,6 +470,10 @@ Pixel-perfect   Retina-ready   Fast   Consistent   Hackable
<td><img src='/david/dev/strongloop/express.svg' alt=''/></td>
<td><code>https://img.shields.io/david/dev/strongloop/express.svg</code></td>
</tr>
<tr><th> David: </th>
<td><img src='/david/optional/elnounch/byebye.svg' alt=''/></td>
<td><code>https://img.shields.io/david/optional/elnounch/byebye.svg</code></td>
</tr>
<tr><th> David: </th>
<td><img src='/david/peer/webcomponents/generator-element.svg' alt=''/></td>
<td><code>https://img.shields.io/david/peer/webcomponents/generator-element.svg</code></td>