select ruby in gemsets only when needed, fix #3057, update #3037