RubyGems is the package manager used to install Ruby libraries and packages. Bundler keeps the gems a project needs organized and consistent through a Gemfile.
ruby
# Install a gem globally
# gem install colorize
# Gemfile
source "https://rubygems.org"
gem "colorize"
# Install project dependencies
# bundle installGemfile is where you list the gems your project needs. bundle install installs those gems and records their exact versions in Gemfile.lock.
You should see
Bundle complete!Info
On team projects, checking Gemfile and Gemfile.lock into version control keeps everyone's dependency versions in sync.