Auto update Gemfile when installing ruby gems

npm lets you save a mod­ule into your package.json file using the –save options. You can do the same in ruby, by installing a gem called ‘gem­rat’ and then using that com­mand to install your gems.

gem install gemrat
gemrat <name_of_the_gem> # This installs your gem and saves it in your Gemfile

# Example
gemrat bcrypt

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.

You may also like...