Fixed for Ruby support

This PR is a cumulative fix for https://github.com/sonatype/nexus-ruby-support/issues/47