Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will ...
Link: gembundler.com
After developing your application for a while, check in the application together with the Gemfile and Gemfile.lock snapshot. Now, your repository has a record of the exact versions of all of the gems that you used the last time you know for sure that the application worked. Keep in mi...
Fetching source index for https://rubygems.org/ Installing rake (10.0.2) Installing abstract (1.0.0) Installing activesupport (3.0.0.rc) Installing builder (2.1.2) Installing i18n (0.4.1) Installing activemodel (3.0.0.rc) Installing erubis (2.6.6) Installing rack (1.2.1) Installing ra...
Now instead of checking out the remote git repository, the local override will be used. Similar to a path source, every time the local git repository change, changes will be automatically picked up by Bundler. This means a commit in the local git repo will update the revision in the G...
NAME SYNOPSIS DESCRIPTION BUILD OPTIONS CONFIGURATION KEYS LIST OF AVAILABLE KEYS LOCAL GIT REPOS bundle-config(1) bundle-config(1) NAME bundle-config - Set bundler configuration options SYNOPSIS bundle config [name [value ]] DESCRIPTION This command allows you to interact with bundle...
If you're creating a gem from scratch, you can use bundler's built in gem skeleton to create a base gem for you to edit. $ bundle gem my_gem This will create a new directory named my_gem with your new gem skeleton. If you already have a gem with a gemspec, you can generate a Gemfile f...
Rails 3 comes with baked in support with bundler. Using Bundler with Rails 3 Install Rails as you normally would. Use sudo if you would normally use sudo to install gems. $ gem install rails We recommend using rvm for dependable Ruby installations, especially if you are switching betw...
That line declares that this application has a dependency on the Ruby VM that is ABI-compatible with 1.9.3. If the version check does not match, Bundler will raise an exception. This will ensure the running code matches. You can be more specific with the
# setup adds gems to Ruby's load path Bundler.setup # defaults to all groups require "bundler/setup" # same as Bundler.setup Bundler.setup(:default) # only set up the _default_ group Bundler.setup(:test) # only set up the _test_ group (but `not` _default_) Bundler.setup(:default, :tes...