We start out with a Rails 2.3.5 application, having a bunch of gems that are out of date, some of them still on the http://gems.github.com source. Using RVM gemsets helps us manage these out of date gems without interfering with the rest of our development environment
Goals in this episode:
- Move dependency management from Rails’s config.gem to Bundler.
- Upgrade all gems to the latest versions.
- Get back to green on all specs and features.
We follow the steps for using Bundler with Rails 2.3 and create our Gemfile to include all the dependencies we currently have specified with
Next, we remove our RVM gemset to make sure everything is handled by Bundler.
Cucumber and RSpec have moved ahead pretty significantly since we started using them with URLAgg. Upgrading to the latest version requires us to run
script/generate rspec and
script/generate cucumber in order to get the latest configuration installed.
The upgrade documentation for rspec, rspec-rails and cucumber are also worth looking at for gothas.
Source code for this episode: