Skip to content

Instantly share code, notes, and snippets.

@lucasallan
Forked from rduarte/rails_template.rb
Created February 14, 2010 12:19
Show Gist options
  • Save lucasallan/303982 to your computer and use it in GitHub Desktop.
Save lucasallan/303982 to your computer and use it in GitHub Desktop.
# Removendo porcarias
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/robots.txt"
# Git
git :init
file(".gitignore") do
<<-EOF
log/*.log
tmp/**/*
doc/api
doc/app
EOF
end
file("log/.gitignore", '')
file("tmp/.gitignore", '')
git :add => "."
git :commit => "-a -m 'Initial commit'"
# Gems
gem "warden"
gem "devise"
gem "less"
# Plugins
plugin "more", :git => "git://github.com/cloudhead/more.git"
plugin "jrails", :git => "git://github.com/aaronchi/jrails.git"
plugin "i18n_label", :git => "git://github.com/iain/i18n_label.git"
plugin "activerecord_i18n_defaults", :git => "git://github.com/dcrec1/activerecord_i18n_defaults.git"
plugin "brazilian-rails", :git => "git://github.com/tapajos/brazilian-rails.git"
plugin "asset_packager", :git => "git://github.com/sbecker/asset_packager.git"
plugin "formtastic", :git => "git://github.com/justinfrench/formtastic.git"
plugin "paperclip", :git => "git://github.com/thoughtbot/paperclip.git"
plugin "will_paginate", :git => "git://github.com/mislav/will_paginate.git"
plugin "rails-footnotes", :git => "git://github.com/josevalim/rails-footnotes.git"
plugin "web-app-theme", :git => "git://github.com/pilu/web-app-theme.git"
git :add => "."
git :commit => "-a -m 'Installing basic plugins'"
# I18n - pt-br
file "config/locales/pt-BR.yml", open("http://github.com/svenfuchs/rails-i18n/raw/master/rails/locale/pt-BR.yml").read
gsub_file 'config/environment.rb', /# (config.i18n.default_locale = ):de/, '\1' + "'pt-BR'"
gsub_file 'config/environment.rb', /(config.time_zone = ')UTC'/, '\1' + 'Brasilia' + '\''
git :add => "."
git :commit => "-a -m 'Configure locale and language'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment