correctly assign gem dependency versions