Grouping your dependencies allows you to perform operations on the entire group.
# These gems are in the :default group gem "nokogiri" gem "sinatra" gem "wirble", :group => :development group :test do gem "rspec" gem "faker" end
Install all dependencies, except those in specified groups
$ bundle install --without test development
Require the gems in particular groups, noting that gems outside of a named group are in the :default group
Require the default gems, plus the gems in a group named the same as the current Rails environment
Restrict the groups of gems that you want to add to the load path. Only gems in these groups will be require'able
Learn More: Bundler.setup
require "rubygems" require "bundler" Bundler.setup(:default, :ci) require "nokogiri"