Issue with Installing contentful-moderator


I’m trying to inherit authoring workflow. Ref URL:

In installation steps says I need to add this line - gem ‘contentful-moderator’ in gemfile.
I’m not sure where I can find gemfile.

Also I’m trying to install Ruby to my contentful space. I’m not sure how can I do that.

Any Inputs will be highly appreciated.