Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gem equivalent of `pip install -r requirements.txt`

Tags:

gem

I made similar question for npm here: npm equivalent of `pip install -r requirements.txt`

This is for gem.

What are the gem equivalent of:

pip freeze > requirements.txt
pip install -r requirements.txt
like image 928
Ron Avatar asked Aug 07 '12 06:08

Ron


1 Answers

There isn't a direct comparison in Ruby, but we have something very similar. Look at the bundler gem for how to write your list of required gems into a Gemfile and automatically generate a Gemfile.lock which contains the current versions installed.

like image 195
Spooner Avatar answered Nov 10 '22 19:11

Spooner