add ruby gem and refactor procfile