Testing The New Method Of Gem Management

In this lesson, we will try to install a new gem and review the results. We will also learn about the pros and cons of this approach.

Installing a new gem

With our gem cache populated, we added a new gem named Devise in Gemfile:

...
gem 'redis', '~> 4.0'
## Authentication
gem 'devise', '~> 4.4', '>= 4.4.1' ...

Then we installed the gem by running the bundle install command:

$ docker-compose exec web bundle install

You should have observed output similar to the following:

Get hands-on with 1400+ tech skills courses.