handle old rubygems setup documentation flag, fix #3152