Update ruby and rails versions. Organize gem list