Bundling manages a Ruby project's dependencies by tracking the required gems and installing the versions the project expects, rather than treating each installation as an isolated command. section 1.4.4
$ gem install prawn
Start with a Gemfile that names the package source and the project dependency, such as colorize version 1.1.0. section 1.4.4
Running Bundler resolves dependencies, fetches the needed gems, and installs them together. A project declaring colorize 1.1.0 reports the requested gem and an additional dependency as installed. section 1.4.4
Bundling fits into ordinary Ruby package and application work:
- Use gem for individual package installation; use Bundler when a project must describe and install its dependency set. section 1.4.4
- Load an installed library with require, then run the project command through bundle exec ruby c2fio.rb. section 1.4.4
- Use gem with a named version when selecting a particular installed library version, as with Prawn 2.2.0. section 1.4.4







