[rubygems] more clean up

Addresses some more issues with:
* https://issues.sonatype.org/browse/NEXUS-7505
* https://issues.sonatype.org/browse/NEXUS-7511