-
Notifications
You must be signed in to change notification settings - Fork 3
rails 3 1 example gemfile
This is an example Gemfile for the example apps in the Rails Apps repository.
For background, see Managing Rails Versions and Gems.
You can also see the Rails 3.0.7 example gemfile.
The example applications use the following gems.
- rails (check rubygems.org for a newer gem)
- rspec-rails (Check rubygems.org for a newer gem)
- database_cleaner (Check rubygems.org for a newer gem)
- factory_girl_rails (Check rubygems.org for a newer gem)
- cucumber-rails (Check rubygems.org for a newer gem)
- capybara (Check rubygems.org for a newer gem)
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.
- omniauth (Check rubygems.org for a newer gem)
I recommend checking for newer versions of these gems before proceeding.
For the example apps built with Rails 3.1, we recommend that you use the following gems and specify versions optimistically.
The apps have been tested with the indicated versions. If you are able to build an app with a newer gem, please create an issue on GitHub and I will update the app.
Your Gemfile will look like this:
source 'http://rubygems.org' gem 'rails', '>= 3.1.0.beta1' gem 'sass' gem 'coffee-script' gem 'uglifier' gem 'jquery-rails' gem 'rspec-rails', '>= 2.6.0', :group => [:development, :test] group :test do gem 'turn', :require => false gem 'factory_girl_rails', ">= 1.1.beta1" gem 'cucumber-rails', ">= 0.4.1" gem 'capybara', ">= 0.4.1.2" gem 'database_cleaner', '>= 0.6.7' end
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'