add gem file and resolve dependencies