Skip to content

Instantly share code, notes, and snippets.

@sabman
Created May 8, 2009 11:46
Show Gist options
  • Save sabman/108752 to your computer and use it in GitHub Desktop.
Save sabman/108752 to your computer and use it in GitHub Desktop.
# autocomplete fuzzy search
if yes?(">> Do you want to add no_fuzz")
plugin "no_fuzz", :git => "git://github.com/Chrononaut/no_fuzz.git"
end
if yes?(">> Do you want to add auto_complete")
plugin "auto_complete", :git => "git://github.com/rails/auto_complete.git"
end
if yes?(">> Do you want to add mislav-will_paginate")
plugin "mislav-will_paginate", :git => "git://github.com/mislav/will_paginate.git"
end
if yes?(">> Do you want to add nifty_layout?")
generate :nifty_layout
end
if yes?(">> Do you want to add nifty_authentication?")
generate :nifty_authentication
end
# Testing frameworks
if yes?(">> Do you want to add cucumber?")
gem 'cucumber', :env => :test
generate("cucumber")
end
if yes?(">> Do you want to add rspec and rspec-rails?")
gem 'rspec', :env => :test, :lib => false, :version => ">= 1.2.0"
gem 'rspec-rails', :env => :test, :lib => false, :version => ">= 1.2.0"
generate("rspec")
end
if yes?(">> Do you want to add webrat?")
gem 'webrat', :env => :test, :lib => false
end
if yes?(">> Do you want to add pickle with machinist")
# pickle
gem 'faker'
gem 'ianwhite-pickle', :lib => "pickle", :env => :test
generate(:pickle, "paths", "email")
# machinist
gem 'notahat-machinist', :lib => "machinist", :env => :test
run("mkdir -p spec")
file("spec/blueprints.rb")
# require blueprints
txt = "\nrequire \"#\{Rails.root}/spec/blueprints\" # or wherever they live \nBefore { Sham.reset } # reset Shams in between scenarios\n"
File.open( "features/support/env.rb", 'a') do |f|
f.write(txt)
end
end
# GeoStuff
if yes?("Do you want to add cloudmade")
gem 'cloudmade'
end
if yes?("Do you want to add geokit")
gem 'geokit'
# ask for the API-Key
end
# git
if yes?(">> Do you want to create a new git project")
load_template "http://github.com/jeremymcanally/rails-templates/raw/10f5bc25e4067968dcf3e950a95538dcbc1f79ed/newgit.rb"
end
rake "gems:install" #, :sudo => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment