do not show deprecation warning for head ruby, fix #2273