Change from Gittip to Gratipay.

This commit is contained in:
Thaddee Tyl 2014-08-28 23:28:20 +02:00
parent f031218c4e
commit 24e4b6a851
3 changed files with 11 additions and 11 deletions

View File

@ -92,9 +92,9 @@ I made the GitHub Badge Service.
<h3> Miscellaneous </h3>
<table><tbody>
<tr><th> Gittip: </th>
<td><img src='//img.shields.io/gittip/JSFiddle.svg' alt=''/></td>
<td><code>http://img.shields.io/gittip/JSFiddle.svg</code></td>
<tr><th> Gratipay: </th>
<td><img src='//img.shields.io/gratipay/JSFiddle.svg' alt=''/></td>
<td><code>http://img.shields.io/gratipay/JSFiddle.svg</code></td>
</tr>
<tr><th> Code Climate: </th>
<td><img src='//img.shields.io/codeclimate/github/kabisaict/flow.svg' alt=''/></td>

View File

@ -355,12 +355,12 @@ cache(function(data, match, sendBadge) {
});
}));
// Gittip integration.
camp.route(/^\/gittip\/(.*)\.(svg|png|gif|jpg)$/,
// Gratipay integration.
camp.route(/^\/(gittip|gratipay)\/(.*)\.(svg|png|gif|jpg)$/,
cache(function(data, match, sendBadge) {
var user = match[1]; // eg, `JSFiddle`.
var format = match[2];
var apiUrl = 'https://www.gittip.com/' + user + '/public.json';
var user = match[2]; // eg, `JSFiddle`.
var format = match[3];
var apiUrl = 'https://www.gratipay.com/' + user + '/public.json';
var badgeData = getBadgeData('tips', data);
request(apiUrl, function dealWithData(err, res, buffer) {
if (err != null) {

View File

@ -91,9 +91,9 @@ I made the GitHub Badge Service.
<h3> Miscellaneous </h3>
<table><tbody>
<tr><th> Gittip: </th>
<td><img src='/gittip/JSFiddle.svg' alt=''/></td>
<td><code>http://img.shields.io/gittip/JSFiddle.svg</code></td>
<tr><th> Gratipay: </th>
<td><img src='/gratipay/JSFiddle.svg' alt=''/></td>
<td><code>http://img.shields.io/gratipay/JSFiddle.svg</code></td>
</tr>
<tr><th> Code Climate: </th>
<td><img src='/codeclimate/github/kabisaict/flow.svg' alt=''/></td>