Update rubygems.rb

added a check for empty string as version.  This causes issues with rubygems