[CocoaPods] Use new Trunk API endpoint to get podspecs

See d6ac677b00 (commitcomment-8340174) and https://github.com/CocoaPods/trunk.cocoapods.org/pull/109.
This commit is contained in:
Samuel E. Giddins 2014-10-28 14:55:26 -07:00
parent fb1d4c909c
commit 357736da9e

View File

@ -1465,7 +1465,7 @@ cache(function(data, match, sendBadge, request) {
var type = match[1];
var spec = match[2]; // eg, AFNetworking
var format = match[3];
var apiUrl = 'http://search.cocoapods.org/api/v1/pod/' + spec + '.json';
var apiUrl = 'https://trunk.cocoapods.org/api/v1/pods/' + spec + '/specs/latest';
var badgeData = getBadgeData('pod', data);
badgeData.colorscheme = null;
request(apiUrl, function(err, res, buffer) {