How to list the gems needed for a Rails application

When I tried to create some diagrams using Railroad in an existing Rails application, I got into an endless loop of getting "Could not find the GEMNAMEHERE gem ..." and issued the command "gem install GEMNAMEHERE", just to find the next stone that is missing ... more 30 times.

Are there any rake tasks or a call to the gem option that will list all the gems needed for the Rails application, so I can install them with a single gem install call?

I tried "less config / environment.rb | grep config.gem", but it returns only some of the gems that were not reported. Where are other stone requirements defined?

+3
source share
6 answers

Perhaps you are looking bundle check. If you use RVM rvm requirements, it can also be very useful.

0
source

gem dependency rails. , Rails.

, gem dependency devise.

: rubygems.org gem dependancy, , ?

0
source

Simply open the Gemfile located in the root folder of the Ruby on Rails application, or run the bundle list command in the root folder of the application.

0
source

"gem list" will list the gems used in the project

0
source

bundle install sorted this out for me.

-2
source

Source: https://habr.com/ru/post/1780672/


All Articles