Created
September 2, 2010 14:00
-
-
Save reu/562316 to your computer and use it in GitHub Desktop.
Rails application templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'devise', '~> 1.1.2' | |
gem 'cancan' | |
generate 'devise:install' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run 'rm README' | |
run 'cp config/database.yml config/database.yml.sample' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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