Fix dependencies for rails and ruby