RubyGems.org has their own web server and web services for publishing library versions and to allow the clients to fetch libraries and query the universal registry.
No matter which way you slice it, what CocoaPods is doing is a bit daft, especially at their scale.