Request for comments on pull request

I'm looking for some feedback on this patch:

This is particularly relevant to rails developer who have to work behind a corporate proxy, but also have an internal gem server. But even if this isn't you, I'd love feedback.

Cheers,

SV