Skip to content

Instantly share code, notes, and snippets.

@eliduke
Forked from bookis/bookis_rails_template.rb
Created May 13, 2012 06:39
Show Gist options
  • Save eliduke/2686537 to your computer and use it in GitHub Desktop.
Save eliduke/2686537 to your computer and use it in GitHub Desktop.
Spork + Guard + Bootstrap Rails Template
run "echo TODO > README"
run "rvm use 1.9.2"
run "rvm gemset create #{app_name}"
create_file ".rvmrc", "rvm use 1.9.2@#{app_name}"
gem "rspec-rails" , :group => [ :development, :test ]
gem "guard-rspec" , :group => [ :development, :test ]
gem "spork", "> 0.9.0.rc" , :group => [ :development, :test ]
gem "guard-spork" , :group => [ :development, :test ]
gem "factory_girl_rails" , :group => [ :development, :test ]
gem "capybara" , :group => [ :development, :test ]
gem 'vcr' , :group => [ :development, :test ]
gem 'fakeweb' , :group => [ :development, :test ]
gem 'capybara-mechanize' , :group => [ :development, :test ]
gem 'growl' , :group => [ :development, :test ]
gem 'launchy' , :group => [ :development, :test ]
use_twitter = false
if yes?("Would you like to install Twitter Boostrap?")
gem 'twitter-bootstrap-rails', :group => [ :assets ]
use_twitter = true
end
run "bundle install"
generate "rspec:install"
if use_twitter
generate "bootstrap:install"
generate "bootstrap:layout application fixed"
end
run "guard init spork"
run "guard init rspec"
run "spork --bootstrap"
puts "Please Configure spec_helper.rb for spork"
run "rake db:create:all"
remove_file 'public/index.html'
remove_file 'public/images/rails.png'
remove_file 'README'
inject_into_file 'Guardfile', :after => ":version => 2" do
", :cli => '--drb'"
end
git :init
git :add => ".", :commit => "-m 'initial commit.'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment