rubygems/rubygems.org — Issue #373: Add Checksums to Index Files
Author: paddor
Created: 2011-12-23 16:58:09+00:00
State: open

Another column in the marshalled array in the (gzipped) index files containing the respective checksum (MD5, SHA1, SHA2, whatever) would speed up a check whether all gems have been downloaded correctly. Like this, it would be possible to verify all downloaded gems by downloading the index file only.

I'm currently verifying the downloaded gems and it has to issue one HTTP request per gem.
(I downloaded them and am verifying them with https://gist.github.com/1514454)

I hope this is possible. It seems like the class Indexer would have to be extended and the model Version. I don't know where the gem files live though to calculate their checksums. Maybe it deserves a new column in the database?

Thanks.