public
Description: A Rails project template, intended to keep app baselines up to date. Includes shoulda, mocha, factory_girl, Hoptoad, git rake tasks, cap recipes, etc.
Homepage: http://thoughtbot.com
Clone URL: git://github.com/thoughtbot/suspenders.git
documentation
added test/factories.rb
added test/shoulda_macros
cpytel (author)
Wed Oct 01 05:58:43 -0700 2008
commit  a3dfd0f3027b0f8d58b8e211bdd42536f632d392
tree    6d23945d3772129515f077180283a937d56a8155
parent  02d63cd6d104a600da3912376a6ef83b58952c96
...
1
 
2
3
4
...
12
13
14
15
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
...
 
1
2
3
4
...
12
13
14
 
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
0
@@ -1,4 +1,4 @@
0
-This is the Thoughtbot Rails Template. To create a new project, checkout this
0
+This is Suspenders, the thoughtbot rails template. To create a new project, checkout this
0
 repository and run:
0
 
0
   ./script/create_project.rb projectname
0
@@ -12,4 +12,99 @@ When making a change to a project that was created via this template, consider
0
 whether it's a change that should be made across all projects. If so, then
0
 make the change in this template, and pull it into your project via:
0
 
0
- git pull git@github.com:thoughtbot/suspenders.git master
0
\ No newline at end of file
0
+ git pull git@github.com:thoughtbot/suspenders.git master
0
+
0
+
0
+About Suspenders
0
+
0
+Suspenders was created for use at thoughtbot, inc. (http://www.thoughtbot.com) as a
0
+baseline application setup, with reasonable default plugins that the majority (if not all)
0
+of our applications used, as well as best-practice configuration options.
0
+
0
+Suspenders currently includes Rails 2.1.1
0
+
0
+Gems (unpacked in vendor/gems):
0
+
0
+ will_paginate 2.3.4
0
+ RedCloth 3.0.4
0
+
0
+ For testing:
0
+ mocha 0.9.1
0
+ factory_girl 1.1.3
0
+ shoulda 2.0.2
0
+ quietbacktrace
0
+
0
+Plugins (in vendor/plugins):
0
+
0
+ hoptoad_notifier
0
+ mile_marker
0
+ squirrel
0
+ tb_common_tasks
0
+
0
+ For testing:
0
+ helper_test
0
+
0
+Initializers (in config/initializers)
0
+
0
+ action_mailer_configs.rb
0
+ We use SMTP by default in all applications.
0
+
0
+ hoptoad.rb
0
+ Get your API key at http://hoptoadapp.com
0
+
0
+ requires.rb
0
+ Automatically requires everything in
0
+ lib/
0
+ lib/extensions
0
+ test/mocks/RAILS_ENV (Removed in Rails 2, we decided to keep it)
0
+ Add other things you need to require in here.
0
+
0
+ time_formats.rb
0
+ Two time formats are available by default, :short_date and :long_date.
0
+ Add other time formats here.
0
+
0
+Rake Tasks
0
+
0
+ bootstrap
0
+ Provides rake tasks for loading data into the database. These are used for an initial application dataset needed for production.
0
+
0
+ capstrano
0
+ Standard capistrano deployment tasks
0
+
0
+ git_tasks
0
+ Tasks for deployment management to staging and production when using git.
0
+
0
+Testing
0
+
0
+ Testing is done utilizing Test::Unit, Shoulda, factory_girl, and mocha.
0
+
0
+ factory_girl is a fixture replacement library, following the factory pattern. Place your
0
+ factories in test/factories.rb. The fixture directory has been removed, as fixtures are not
0
+ used.
0
+
0
+ Shoulda is a pragmatic testing framework for TDD and BDD built on top of Test::Unit. A number of additional
0
+ testing macros are provided in test/shoulda_macros.
0
+ shoulda_have_form
0
+ shoulda_paginate_collection
0
+
0
+Deployment
0
+
0
+ Deployment is done using capistrano, and deploys to a mongrel cluster, running under Apache.
0
+
0
+ Rake tasks are provided for managing git branches which the different environments pull from
0
+ for deploy.
0
+
0
+ To push the git master to git staging branch run
0
+ rake git:push:staging
0
+ To push the git staging branch to production branch run
0
+ rake git:push:production
0
+
0
+ Setup your deployment environment by running
0
+ cap ENVIRONMENT deploy:setup
0
+ (You'll be prompted for the environment's database password)
0
+
0
+ Deploy to the desired environment by running
0
+ cap ENVIRONMENT deploy
0
+
0
+ The default environment for deploy is staging, to deploy to staging, just run
0
+ cap deploy
0
\ No newline at end of file

Comments

    No one has commented yet.