<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec_helper.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,77 +1,95 @@
-# SUPER DARING APP TEMPLATE 1.0
-# By Peter Cooper
-
-# Link to local copy of edge rails
-  inside('vendor') { run 'ln -s ~/dev/rails/rails rails' }
-
-# Delete unnecessary files
-  run &quot;rm README&quot;
-  run &quot;rm public/index.html&quot;
-  run &quot;rm public/favicon.ico&quot;
-  run &quot;rm public/robots.txt&quot;
-  run &quot;rm -f public/javascripts/*&quot;
-
-# Download JQuery
-  run &quot;curl -L http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js &gt; public/javascripts/jquery.js&quot;
-  run &quot;curl -L http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js &gt; public/javascripts/jquery.form.js&quot;
-
-# Set up git repository
-  git :init
-  git :add =&gt; '.'
-  
-# Copy database.yml for distribution use
-  run &quot;cp config/database.yml config/database.yml.example&quot;
-  
-# Set up .gitignore files
-  run &quot;touch tmp/.gitignore log/.gitignore vendor/.gitignore&quot;
-  run %{find . -type d -empty | grep -v &quot;vendor&quot; | grep -v &quot;.git&quot; | grep -v &quot;tmp&quot; | xargs -I xxx touch xxx/.gitignore}
-  file '.gitignore', &lt;&lt;-END
-.DS_Store
-log/*.log
-tmp/**/*
-config/database.yml
-db/*.sqlite3
-END
-
-# Install submoduled plugins
-  plugin 'rspec', :git =&gt; 'git://github.com/dchelimsky/rspec.git', :submodule =&gt; true
-  plugin 'rspec-rails', :git =&gt; 'git://github.com/dchelimsky/rspec-rails.git', :submodule =&gt; true
-  plugin 'asset_packager', :git =&gt; 'git://github.com/sbecker/asset_packager.git', :submodule =&gt; true
-  plugin 'open_id_authentication', :git =&gt; 'git://github.com/rails/open_id_authentication.git', :submodule =&gt; true
-  plugin 'role_requirement', :git =&gt; 'git://github.com/timcharper/role_requirement.git', :submodule =&gt; true
-  plugin 'restful-authentication', :git =&gt; 'git://github.com/technoweenie/restful-authentication.git', :submodule =&gt; true
-  plugin 'acts_as_taggable_redux', :git =&gt; 'git://github.com/monki/acts_as_taggable_redux.git', :submodule =&gt; true
-  plugin 'aasm', :git =&gt; 'git://github.com/rubyist/aasm.git', :submodule =&gt; true
-
-# Install all gems
-  gem 'thoughtbot-factory_girl', :lib =&gt; 'factory_girl', :source =&gt; 'http://gems.github.com'
-  gem 'ruby-openid', :lib =&gt; 'openid'
-  gem 'sqlite3-ruby', :lib =&gt; 'sqlite3'
-  gem 'hpricot', :source =&gt; 'http://code.whytheluckystiff.net'
-  gem 'RedCloth', :lib =&gt; 'redcloth'
-  rake('gems:install', :sudo =&gt; true)
-
-# Set up sessions, RSpec, user model, OpenID, etc, and run migrations
-  rake('db:sessions:create')
-  generate(&quot;authenticated&quot;, &quot;user session&quot;)
-  generate(&quot;roles&quot;, &quot;Role User&quot;)
-  generate(&quot;rspec&quot;)
-  rake('acts_as_taggable:db:create')
-  rake('open_id_authentication:db:create')
-  rake('db:migrate')
-
-# Set up session store initializer
-  initializer 'session_store.rb', &lt;&lt;-END
-ActionController::Base.session = { :session_key =&gt; '_#{(1..6).map { |x| (65 + rand(26)).chr }.join}_session', :secret =&gt; '#{(1..40).map { |x| (65 + rand(26)).chr }.join}' }
-ActionController::Base.session_store = :active_record_store
-  END
- 
-# Initialize submodules
-  git :submodule =&gt; &quot;init&quot;
-
-# Commit all work so far to the repository
-  git :add =&gt; '.'
-  git :commit =&gt; &quot;-a -m 'Initial commit'&quot;
-
-# Success!
-  puts &quot;SUCCESS!&quot;
+# My version of an app template, modified by James Cox (imajes)
+# SUPER DARING APP TEMPLATE 1.0 - By Peter Cooper
+
+# Link to local copy of edge rails
+  inside('vendor') { run 'ln -s ~/src/git/rails rails' }
+
+# Delete unnecessary files
+  run &quot;rm README&quot;
+  run &quot;rm public/index.html&quot;
+  run &quot;rm public/favicon.ico&quot;
+  run &quot;rm public/robots.txt&quot;
+  run &quot;rm -f public/javascripts/*&quot;
+
+# Download JQuery
+  run &quot;curl -L http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js &gt; public/javascripts/jquery.js&quot;
+  run &quot;curl -L http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js &gt; public/javascripts/jquery.form.js&quot;
+
+# Set up git repository
+  git :init
+  git :add =&gt; '.'
+  
+# Copy database.yml for distribution use
+  run &quot;cp config/database.yml config/database.yml.example&quot;
+  
+# Set up .gitignore files
+  run &quot;touch tmp/.gitignore log/.gitignore vendor/.gitignore&quot;
+  run %{find . -type d -empty | grep -v &quot;vendor&quot; | grep -v &quot;.git&quot; | grep -v &quot;tmp&quot; | xargs -I xxx touch xxx/.gitignore}
+  file '.gitignore', &lt;&lt;-END
+.DS_Store
+log/*.log
+tmp/**/*
+config/database.yml
+db/*.sqlite3
+END
+
+# Install submoduled plugins
+## Those that relate to testing
+plugin 'rspec', :git =&gt; 'git://github.com/dchelimsky/rspec.git', :submodule =&gt; true
+plugin 'rspec-rails', :git =&gt; 'git://github.com/dchelimsky/rspec-rails.git', :submodule =&gt; true
+plugin 'machinist', :git =&gt; 'git://github.com/notahat/machinist.git', :submodule =&gt; true
+generate(&quot;rspec&quot;)
+gem 'faker'
+## setup for the win
+inside ('spec') { run &quot;mkdir blueprints&quot; }
+inside ('spec') { run &quot;rm -rf fixtures&quot; }
+
+
+## Potentially Useful 
+plugin 'asset_packager', :git =&gt; 'git://github.com/sbecker/asset_packager.git', :submodule =&gt; true
+plugin 'exception_notifier', :git =&gt; 'git://github.com/rails/exception_notification.git', :submodule =&gt; true
+
+## user related
+if ask(&quot;Will this app have authenticated users?&quot;)
+  plugin 'open_id_authentication', :git =&gt; 'git://github.com/rails/open_id_authentication.git', :submodule =&gt; true
+  plugin 'role_requirement', :git =&gt; 'git://github.com/timcharper/role_requirement.git', :submodule =&gt; true
+  plugin 'restful-authentication', :git =&gt; 'git://github.com/technoweenie/restful-authentication.git', :submodule =&gt; true
+  plugin 'aasm', :git =&gt; 'git://github.com/rubyist/aasm.git', :submodule =&gt; true
+  gem 'ruby-openid', :lib =&gt; 'openid'  
+  generate(&quot;authenticated&quot;, &quot;user session&quot;)
+  generate(&quot;roles&quot;, &quot;Role User&quot;)
+  rake('open_id_authentication:db:create')
+end
+
+# tags
+if ask(&quot;Do you want tags with that?&quot;)
+  plugin 'acts_as_taggable_redux', :git =&gt; 'git://github.com/monki/acts_as_taggable_redux.git', :submodule =&gt; true
+  rake('acts_as_taggable:db:create')
+end
+
+# require some gems
+if ask(&quot;Want to require a bunch of useful gems?&quot;)
+  gem 'hpricot', :source =&gt; 'http://code.whytheluckystiff.net'
+  gem 'RedCloth', :lib =&gt; 'redcloth'
+end
+
+# Final install steps
+rake('gems:install', :sudo =&gt; true)
+rake('db:sessions:create')
+rake('db:migrate')
+
+# Set up session store initializer
+  initializer 'session_store.rb', &lt;&lt;-END
+ActionController::Base.session = { :session_key =&gt; '_#{(1..6).map { |x| (65 + rand(26)).chr }.join}_session', :secret =&gt; '#{(1..40).map { |x| (65 + rand(26)).chr }.join}' }
+ActionController::Base.session_store = :active_record_store
+  END
+ 
+# Initialize submodules
+  git :submodule =&gt; &quot;init&quot;
+
+# Commit all work so far to the repository
+  git :add =&gt; '.'
+  git :commit =&gt; &quot;-a -m 'Initial commit'&quot;
+
+# Success!
+  puts &quot;SUCCESS!&quot;</diff>
      <filename>gistfile1.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a08d13b7e39f490af49025f2adbe2d96bbf4258c</id>
    </parent>
  </parents>
  <author>
    <name>James Cox</name>
    <email>james@imaj.es</email>
  </author>
  <url>http://github.com/imajes/rails-template/commit/68405e8cff113edb9c1bff68d74fd75b80b4c401</url>
  <id>68405e8cff113edb9c1bff68d74fd75b80b4c401</id>
  <committed-date>2009-01-20T16:50:08-08:00</committed-date>
  <authored-date>2009-01-20T16:50:08-08:00</authored-date>
  <message>add spec helper, changes to gist</message>
  <tree>252a31f40507aa14aeabca206d084176c88e609d</tree>
  <committer>
    <name>James Cox</name>
    <email>james@imaj.es</email>
  </committer>
</commit>
