Get a list of all gems

What happened to Rails.configuration.gems in Rails 3? I think this is due to the Bundler. But how can I find all the gems now?

thank

+3
source share
1 answer

Yes, it is related to the Bundler. In Rails 3, your gem manifest of your application is located in a file named Gemfile. Some good explanations about the changes and their use here , here , here and here .

UPDATE

CLI bundle show , . :

require 'bundler'
mygems = Bundler.load.specs.map { |spec| spec.name }

spec .

+8

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


All Articles