Change from Gittip to Gratipay.
This commit is contained in:
parent
f031218c4e
commit
24e4b6a851
|
@ -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>
|
||||
|
|
10
server.js
10
server.js
|
@ -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) {
|
||||
|
|
6
try.html
6
try.html
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user