Issue
Linux distributions like Fedora package and maintain tons of gems as rpm packages for easy install with yum
or now dnf
. Even Ruby on Rails.
The question is, when making a RoR website that will use ~10 gems or so, what are the pros and cons of using the packaged gems from the Linux distribution compared to just gem install
?
Solution
You should use Bundler to manage Ruby gems. Some Ruby gems depend on other gems, so your project may only use 10 gems directly, but there might be a total of 100 dependencies. If you use a Gemfile or gemspec to list your dependencies and manage them with bundler, than another Ruby developer can pull your codebase and run bundle install
to have all the gems with the proper versions their machine.
Answered By - Powers Answer Checked By - Clifford M. (WPSolving Volunteer)