Presentation on theme: "Bundler is the Best! BADCamp https://github.com/bundler/bundler."— Presentation transcript:
Bundler is the Best! BADCamp
Manage the rubygems you need… “Bundler makes sure Ruby applications run the same code on every machine” From https://github.com/bundler/bundlerhttps://github.com/bundler/bundler
and their dependencies! “and Bundler makes it easy to make sure that your application has the dependencies it needs to start up and run without errors.” From
These are a few of my favorite things! 25.png
What can Bundler do for you?
One developer, working on one project One developer, working on many projects One of many developers, working on one project One of many developers, working on many projects If you are...
Best Practices Create one bundle per theme Add gems to the Gemfile, not the Gemfile.lock Include ALL the gems you are using on the theme in the bundle
Best Practices Specify the version of the gem if you know which one you need, otherwise you can let Bundler handle it Update gems using Bundler, not manually Once you have the bundle set up, use it!
Recommendations State “require/bundler” in config.rb or set up a bash alias so that you don’t have to type “bundle exec…” Use “chruby” to manage your system’s ruby version ( https://github.com/postmodern/chruby ) https://github.com/postmodern/chruby Add the ruby version your gems use to your Gemfile
What does it look like?