Skip to content

Instantly share code, notes, and snippets.

@reu
Created September 2, 2010 14:00
Show Gist options
  • Save reu/562316 to your computer and use it in GitHub Desktop.
Save reu/562316 to your computer and use it in GitHub Desktop.
Rails application templates
gem 'devise', '~> 1.1.2'
gem 'cancan'
generate 'devise:install'
gem 'haml', '~> 3.0.18'
gem 'compass'
gem 'inherited_resources', '~> 1.1.2'
gem 'simple_form'
gem 'unicorn', :group => :development
gem 'wirble', :group => :development
gem 'awesome_print', :group => :development
run 'curl -L http://github.com/reu/dotfiles/raw/master/.gitignore > .gitignore'
environment 'config.time_zone = "Brasilia"'
environment 'config.i18n.default_locale = :"pt-BR"'
run 'curl -L http://github.com/svenfuchs/rails-i18n/raw/master/rails/locale/pt-BR.yml > config/locales/pt-BR.yml'
run 'rm README'
run 'cp config/database.yml config/database.yml.sample'
initializer 'compass.rb', <<-COMPASS
require 'compass'
require 'compass/app_integration/rails'
Compass::AppIntegration::Rails.initialize!
COMPASS
file 'config/compass.rb', <<-COMPASS
# This configuration file works with both the Compass command line tool and within Rails.
# Require any additional compass plugins here.
project_type = :rails
project_path = Compass::AppIntegration::Rails.root
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "public/stylesheets"
sass_dir = "app/styles"
environment = Compass::AppIntegration::Rails.env
# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true
COMPASS
gem 'capybara', :group => :test
gem 'database_cleaner', :group => :test
gem 'cucumber-rails', :group => :test
gem 'cucumber', :group => :test
gem 'spork', :group => :test
gem 'launchy', :group => :test
generate 'cucumber:install', '--rspec --capybara'
gem 'rspec', '2.0.0.beta.20', :group => :test
gem 'rspec-rails', '2.0.0.beta.20', :group => :test
gem 'factory_girl_rails', :group => :test
generate 'rspec:install'
environment 'config.generators.test_framework = :rspec'
ruby = ask 'Which ruby version do you want to use?'
gemset = ask 'Specify the name of the gemset you want to use (leave blank to use the global gemset)'
gemset = "global" unless gemset.blank?
file ".rvmrc", "rvm #{ruby}@#{gemset}"
gem 'net-ldap', :require => 'net/ldap'
gem 'devise_w3_authenticatable'
initializer 'devise_w3.rb', <<-W3
require "devise_w3_authenticatable"
DeviseW3Authenticatable.auto_create_user = true
W3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment