From 357736da9e3e36f3b99a52d6603fbf40f8cb20f0 Mon Sep 17 00:00:00 2001 From: "Samuel E. Giddins" Date: Tue, 28 Oct 2014 14:55:26 -0700 Subject: [PATCH] [CocoaPods] Use new Trunk API endpoint to get podspecs See https://github.com/CocoaPods/search.cocoapods.org/commit/d6ac677b00a3b5b649f64ad6e2d3f30721545bd8#commitcomment-8340174 and https://github.com/CocoaPods/trunk.cocoapods.org/pull/109. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index d7a8176..8eff513 100644 --- a/server.js +++ b/server.js @@ -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) {