rubygems/rubygems — pull request #438 by havenwood (2013-02-03 01:17:48+00:00)
Title: If `credentials` file has permissions other than 0600, abort with warning.

I don't know if a warning to $stderr with exitstatus of 1 is the desired behavior if `credentials` file has permissions other than 0600? I'm also uncertain how this should be properly tested?

I initially was thinking fixing the permissions was appropriate, but Whitequark pointed out that "if they were insecure and the user was unaware of that, the credentials might have already been compromised.... I'd suggest checking permissions and if they're wrong, doing nothing."