Skip to content

Instantly share code, notes, and snippets.

@mig
Created September 25, 2009 15:17
Show Gist options
  • Select an option

  • Save mig/193609 to your computer and use it in GitHub Desktop.

Select an option

Save mig/193609 to your computer and use it in GitHub Desktop.
# outtolunch_template
file 'config/routes.rb', <<-CODE
ActionController::Routing::Routes.draw do |map|
end
CODE
file 'config/initializers/uri_ext.rb', <<-CODE
URI::PATTERN::UNRESERVED.replace("+-_.!~*'()a-zA-Z\\d")
CODE
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/favicon.ico"
run "rm public/robots.txt"
run "rm public/javascripts/controls.js"
run "rm public/javascripts/dragdrop.js"
run "rm public/javascripts/effects.js"
run "rm public/javascripts/prototype.js"
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js > public/javascripts/jquery.js"
run "curl -L http://gist.github.com/193615.txt > public/javascripts/jquery.defaultvalue.js"
gem "justinfrench-formtastic", :lib => "formtastic", :source => "http://gems.github.com"
gem "tcocca-yelp4r", :lib => "yelp4r", :source => "http://gems.github.com"
gem "thoughtbot-factory_girl", :lib => "factory_girl", :version => "1.2.2", :source => "http://gems.github.com/", :env => :test
# Gem management
run 'sudo rake gems:install'
rake 'gems:unpack'
rake 'rails:freeze:gems'
# source control
file '.gitignore', <<-FILES
.DS_Store
**/.DS_Store
log/*
tmp/*
tmp/**/*
config/database.yml
coverage/*
coverage/**/*
db/*.sqlite3
FILES
git :init
git :add => '.'
git :commit => '-a -m "Initial commit"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment