cheatsheets/bundler.md

675 B

title: Bundler

Gems

gem 'hello'
gem 'hello', group: 'development'

Github support

gem 'hello', github: 'rstacruz/hello'
gem 'hello', github: 'rstacruz/hello', 'branch: master'

Grouping

group :development do
  gem 'hello'
end

Deployment

$ bundle install --without=test,development --deployment

Local gem development

In your Gemfile, define a Git source and a branch:

gem 'hello', github: 'rstacruz/hello', branch: 'master'

And then:

$ bundle config --global local.xxx ~/projects/xxx

Rake Gem tasks

# Rakefile
require 'bundler/gem_tasks'

Terminal:

$ rake release
$ rake build