added support for legacy ruby version gem requirements