Skip to content

Instantly share code, notes, and snippets.

@markmcdonald51
Created December 3, 2009 21:15
Show Gist options
  • Save markmcdonald51/248530 to your computer and use it in GitHub Desktop.
Save markmcdonald51/248530 to your computer and use it in GitHub Desktop.
############## 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"
# Rails RESTful controller abstraction plugin.
plugin 'resource_controller',
:git => "git://github.com/giraffesoft/resource_controller.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"
############## generate commands #################
generate("rspec")
############## commands #################
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js > public/javascripts/jquery.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment