kivanio (owner)

Fork Of

Revisions

gist: 217544 Download_button fork
public
Public Clone URL: git://gist.github.com/217544.git
Embed All Files: show embed
rails_template.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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 "authlogic"
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"
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'"