Skip to content

Instantly share code, notes, and snippets.

@frnz
Created January 31, 2010 04:39
Show Gist options
  • Save frnz/290907 to your computer and use it in GitHub Desktop.
Save frnz/290907 to your computer and use it in GitHub Desktop.
# frnz's Ruby on Rails template
############## plugin commands #################
# RSpec is the original Behaviour Driven Development framework for Ruby.
plugin 'rspec',
:git => "git://github.com/dchelimsky/rspec.git"
# The world's greatest templating system
plugin 'haml',
:git => "git://github.com/nex3/haml.git"
# RSpec's official Ruby on Rails plugin
plugin 'rspec-rails',
:git => "git://github.com/dchelimsky/rspec-rails.git"
# Fixture replacement for focused and readable tests.
plugin 'factory_girl',
:git => "git://github.com/thoughtbot/factory_girl.git"
# BDD that talks to domain experts first and code 2nd
plugin 'cucumber',
:git => "git://github.com/aslakhellesoy/cucumber.git"
# Attachments with no extra database tables, only one library to install for image processing
plugin 'paperclip',
:git => "git://github.com/thoughtbot/paperclip.git"
# Hampton's favorite Resource System
plugin 'make_resourceful',
:git => "git://github.com/hcatlin/make_resourceful.git"
############## gem commands #################
# Shoulda gem makes it easy to write elegant, understandable, and maintainable Ruby tests.
gem 'thoughtbot-shoulda',
:source => "http://gems.github.com"
############## generate commands #################
generate("rspec")
############## commands #################
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js > public/javascripts/jquery.js"
run "curl -L http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js > public/javascripts/jquery.form.js"
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore"
run %{find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore}
file '.gitignore', <<-END
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
END
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/robots.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment