-
Notifications
You must be signed in to change notification settings - Fork 0
rails 3 0 7 example gemfile
Here are Gemfiles for the example apps in the Rails Apps repository.
For the newer Rails 3.2 release, see the Example Rails 3.2 Gemfile.
For background, see Managing Rails Versions and Gems.
The example apps have been tested with this configuration:
- Ruby 1.9.2
- RubyGems 1.7.2
- Rails 3.0.7
- Rake 0.8.7
- Bundler 1.0.12
The example applications use the following gems.
Two of the example apps use the Mongoid gem for access to a MongoDB datastore.
Two of the example apps use Devise for authentication.
One of the example apps uses OmniAuth for authentication.
I recommend using the versions of the gems specified below.
For the example apps built with Rails 3.0.7, we recommend that you use the following gems and specify versions absolutely. Your Gemfile will look like this:
source 'http://rubygems.org' gem 'rails', '3.0.7' gem 'rake', '0.8.7' gem 'rspec-rails', '2.5.0', :group => [:development, :test] gem 'factory_girl_rails', '1.1.beta1', :group => :test gem 'cucumber-rails', '0.4.1', :group => :test gem 'capybara', '0.4.1.2', :group => :test gem 'database_cleaner', '0.6.7', :group => :test
Note that rake is constrained to version 0.8.7.
As of release 0.9.0 (20 May 2011), the rake gem broke Rails 3.0.7 and required Rails 3.1 (which was still in beta at the time). Use rake version 0.8.7 to avoid problems or upgrade to Rails 3.0.8 and use rake 0.9.0 or newer.
You may use ActiveRecord with the SQLite database:
gem 'sqlite3'
Alternatively, you may add Mongoid and the bson_ext gem for access to a MongoDB datastore:
gem 'mongoid', '2.0.1' gem 'bson_ext', '1.3.1'
You may add Devise for authentication:
gem 'devise', '1.3.4'
You may add OmniAuth for authentication:
gem 'omniauth', '0.2.6'