forked from bryanlarsen/agility-gitorial-patches
-
Notifications
You must be signed in to change notification settings - Fork 1
/
03-run-hobo.patch
2171 lines (2126 loc) · 76.5 KB
/
03-run-hobo.patch
1
2
3
4
5
6
7
8
9
10
11
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
run-hobo
From: Bryan Larsen <[email protected]>
OUTPUT_FILE: agility.markdown
## Before you start
You'll need a working Ruby on Rails setup. We're assuming you know at
least the basics of Rails. If not, you should probably work through a
Rails tutorial before attempting this one.
## Create the application with Hobo gem
Although Hobo is in fact a group of Rails plugins, it is also
available as a gem which gives you the useful `hobo` command:
$ gem install hobo --pre
The `hobo` command is like the `rails` command, it can create a new
blank Rails app that is set-up for Hobo, as well as performing several
other tasks. When you run the command, it will ask you many
questions. For now, answer exactly as we do.
$ hobo new agility
Hobo Command Line Interface 2.0.0.pre8
Generating Rails infrastructure...
create
create README.rdoc
create Rakefile
... snip ...
Hobo Setup Wizard
Do you want to start the Setup Wizard now?
(Choose 'n' if you need to manually customize any file before running the Wizard.
You can run it later with `hobo g setup_wizard` from the application root dir.) [y|n]
Choose yes here to pull in Hobo.
User Resource
Choose a name for the user resource: [<enter>=user|<custom_name>]
Press enter to leave the name of the user model as `user`.
Do you want to send an activation email to activate the user? [y|n] y
Press `y` here because that's a useful feature we'll use.
Invite Only Option
Do you want to add the features for an invite only website? [y|n] n
We're not building an invite-only website, so we'll press `n` here.
Templates Option
Will your application use only hobo/dryml web page templates?
(Choose 'n' only if you also plan to use plain rails/erb web page templates) [y|n] y
Press `y` here because we're building a pure Hobo application.
Test Framework
Do you want to customize the test_framework? [y|n] n
Choose no -- we'll use the default test framework, Test::Unit. It's easy enough to select a different test framework later if you change your mind.
Front Controller
Choose a name for the front controller: [<enter>=front|<custom_name>]
Press enter to leave the default front controller name as `front`.
Front Theme
The currently available themes are clean, clean_admin, clean_sidemenu and bootstrap.
Choose a theme for the front site: [<enter>=bootstrap|<custom_name>]
Press enter to choose the default Hobo theme, bootstrap.
Front jQuery-UI Theme
The currently available jQuery-UI themes are listed here: https://github.com/fatdude/jquery-ui-themes-rails/blob/master/README.markdown
Choose a jQuery-UI theme for the front site: [<enter>=redmond|<custom_name>]
Press enter to select the default jQuery-UI theme, redmond. jQuery-UI is not used very much with the bootstrap theme and may be [removed later](http://hobocentral.net/blog/2012/12/21/using-hobo-2-0-without-jquery-ui/).
Admin Subsite
Do you want an admin subsite? [y|n] n
A subsite in Hobo is a separate collection of views and controllers routed independently. Each subsite can have a different theme. They're easy enough to add later via the [admin_subsite](/manual/generators/admin_subsite) or [subsite](/manual/generators/subsite) generators so we won't add one now.
DB Migration
Initial Migration: [s]kip, [g]enerate migration file only, generate and [m]igrate: [s|g|m] m
Press `m` here. There's a lot going on underneath the hood here, but
we'll get to that later.
I18n
The Hobo supported locales are de en es fr it nb pt-PT ru (please, contribute to more translations)
Type the locales (space separated) you want to add to your application or <enter> for 'en':
Press enter here to choose English.
=> "en"
Git Repository
Do you want to initialize a git repository now? [y|n] y
Do you want git to ignore the auto-generated files?
(Choose 'n' only if you are planning to deploy on a read-only File System like Heroku) [y|n] y
Choose `y` to both of these questions to put your project into Git.
Even if you don't know git you can still say "yes" here -- maybe
you'll find it useful in the future.
## Run the app
You should now have a complete bare bones application. Fire it up
and give it a try!
$ cd agility
$ rails server
---
.gitignore | 17 ++
Gemfile | 48 ++++++
Gemfile.lock | 168 +++++++++++++++++++++
README | 23 ---
Rakefile | 7 +
app/assets/images/rails.png | Bin
app/assets/javascripts/application.js | 11 +
app/assets/javascripts/application.js.orig | 15 ++
app/assets/javascripts/application/.gitkeep | 0
app/assets/javascripts/front.js | 16 ++
app/assets/javascripts/front/.gitkeep | 0
app/assets/stylesheets/application.css.orig | 13 ++
app/assets/stylesheets/application.scss | 9 +
app/assets/stylesheets/application/.gitkeep | 0
app/assets/stylesheets/front.scss | 16 ++
app/assets/stylesheets/front/.gitkeep | 0
app/controllers/application_controller.rb | 3
app/controllers/front_controller.rb | 19 ++
app/controllers/users_controller.rb | 20 ++
app/helpers/front_helper.rb | 2
app/mailers/.gitkeep | 0
app/mailers/user_mailer.rb | 17 ++
app/models/.gitkeep | 0
app/models/guest.rb | 7 +
app/models/user.rb | 77 +++++++++
app/views/front/index.dryml | 30 ++++
app/views/taglibs/application.dryml | 3
app/views/taglibs/front_site.dryml | 17 ++
app/views/user_mailer/activation.erb | 9 +
app/views/user_mailer/forgot_password.erb | 10 +
config.ru | 4
config/application.rb | 68 ++++++++
config/boot.rb | 6 +
config/database.yml | 25 +++
config/environment.rb | 5 +
config/environments/development.rb | 39 +++++
config/environments/production.rb | 67 ++++++++
config/environments/test.rb | 37 +++++
config/initializers/backtrace_silencers.rb | 7 +
config/initializers/dryml_taglibs.rb | 1
config/initializers/inflections.rb | 15 ++
config/initializers/mime_types.rb | 5 +
config/initializers/secret_token.rb | 7 +
config/initializers/session_store.rb | 8 +
config/initializers/wrap_parameters.rb | 14 ++
config/locales/app.en.yml | 25 +++
config/locales/hobo.en.yml | 195 ++++++++++++++++++++++++
config/routes.rb | 70 +++++++++
db/migrate/20130108212536_initial_migration.rb | 22 +++
db/schema.rb | 32 ++++
db/seeds.rb | 7 +
doc/README_FOR_APP | 2
lib/assets/.gitkeep | 0
lib/tasks/.gitkeep | 0
log/.gitkeep | 0
public/404.html | 26 +++
public/422.html | 26 +++
public/500.html | 25 +++
public/favicon.ico | 0
public/robots.txt | 5 +
script/rails | 6 +
test/fixtures/.gitkeep | 0
test/fixtures/users.yml | 11 +
test/functional/.gitkeep | 0
test/functional/front_controller_test.rb | 7 +
test/functional/user_mailer_test.rb | 7 +
test/integration/.gitkeep | 0
test/performance/browsing_test.rb | 12 +
test/test_helper.rb | 13 ++
test/unit/.gitkeep | 0
test/unit/helpers/front_helper_test.rb | 4
test/unit/user_test.rb | 7 +
vendor/assets/javascripts/.gitkeep | 0
vendor/assets/stylesheets/.gitkeep | 0
vendor/plugins/.gitkeep | 0
75 files changed, 1344 insertions(+), 23 deletions(-)
create mode 100644 .gitignore
create mode 100644 Gemfile
create mode 100644 Gemfile.lock
delete mode 100644 README
create mode 100644 Rakefile
create mode 100644 app/assets/images/rails.png
create mode 100644 app/assets/javascripts/application.js
create mode 100644 app/assets/javascripts/application.js.orig
create mode 100644 app/assets/javascripts/application/.gitkeep
create mode 100644 app/assets/javascripts/front.js
create mode 100644 app/assets/javascripts/front/.gitkeep
create mode 100644 app/assets/stylesheets/application.css.orig
create mode 100644 app/assets/stylesheets/application.scss
create mode 100644 app/assets/stylesheets/application/.gitkeep
create mode 100644 app/assets/stylesheets/front.scss
create mode 100644 app/assets/stylesheets/front/.gitkeep
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/controllers/front_controller.rb
create mode 100644 app/controllers/users_controller.rb
create mode 100644 app/helpers/front_helper.rb
create mode 100644 app/mailers/.gitkeep
create mode 100644 app/mailers/user_mailer.rb
create mode 100644 app/models/.gitkeep
create mode 100644 app/models/guest.rb
create mode 100644 app/models/user.rb
create mode 100644 app/views/front/index.dryml
create mode 100644 app/views/taglibs/application.dryml
create mode 100644 app/views/taglibs/front_site.dryml
create mode 100644 app/views/user_mailer/activation.erb
create mode 100644 app/views/user_mailer/forgot_password.erb
create mode 100644 config.ru
create mode 100644 config/application.rb
create mode 100644 config/boot.rb
create mode 100644 config/database.yml
create mode 100644 config/environment.rb
create mode 100644 config/environments/development.rb
create mode 100644 config/environments/production.rb
create mode 100644 config/environments/test.rb
create mode 100644 config/initializers/backtrace_silencers.rb
create mode 100644 config/initializers/dryml_taglibs.rb
create mode 100644 config/initializers/inflections.rb
create mode 100644 config/initializers/mime_types.rb
create mode 100644 config/initializers/secret_token.rb
create mode 100644 config/initializers/session_store.rb
create mode 100644 config/initializers/wrap_parameters.rb
create mode 100644 config/locales/app.en.yml
create mode 100644 config/locales/hobo.en.yml
create mode 100644 config/routes.rb
create mode 100644 db/migrate/20130108212536_initial_migration.rb
create mode 100644 db/schema.rb
create mode 100644 db/seeds.rb
create mode 100644 doc/README_FOR_APP
create mode 100644 lib/assets/.gitkeep
create mode 100644 lib/tasks/.gitkeep
create mode 100644 log/.gitkeep
create mode 100644 public/404.html
create mode 100644 public/422.html
create mode 100644 public/500.html
create mode 100644 public/favicon.ico
create mode 100644 public/robots.txt
create mode 100755 script/rails
create mode 100644 test/fixtures/.gitkeep
create mode 100644 test/fixtures/users.yml
create mode 100644 test/functional/.gitkeep
create mode 100644 test/functional/front_controller_test.rb
create mode 100644 test/functional/user_mailer_test.rb
create mode 100644 test/integration/.gitkeep
create mode 100644 test/performance/browsing_test.rb
create mode 100644 test/test_helper.rb
create mode 100644 test/unit/.gitkeep
create mode 100644 test/unit/helpers/front_helper_test.rb
create mode 100644 test/unit/user_test.rb
create mode 100644 vendor/assets/javascripts/.gitkeep
create mode 100644 vendor/assets/stylesheets/.gitkeep
create mode 100644 vendor/plugins/.gitkeep
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b9d2a5c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,17 @@
+# See http://help.github.com/ignore-files/ for more about ignoring files.
+#
+# If you find yourself ignoring temporary files generated by your text editor
+# or operating system, you probably want to add a global ignore instead:
+# git config --global core.excludesfile ~/.gitignore_global
+
+# Ignore bundler config
+/.bundle
+
+# Ignore the default SQLite database.
+/db/*.sqlite3
+
+# Ignore all logfiles and tempfiles.
+/log/*.log
+/tmp
+app/views/taglibs/auto/**/*
+config/hobo_routes.rb
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..ec53aa9
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,48 @@
+source 'https://rubygems.org'
+
+gem 'rails', '3.2.11'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'sqlite3'
+
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', '~> 3.2.3'
+ gem 'coffee-rails', '~> 3.2.1'
+
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
+ # gem 'therubyracer', :platforms => :ruby
+
+ gem 'uglifier', '>= 1.0.3'
+end
+
+gem 'jquery-rails'
+
+# To use ActiveModel has_secure_password
+# gem 'bcrypt-ruby', '~> 3.0.0'
+
+# To use Jbuilder templates for JSON
+# gem 'jbuilder'
+
+# Use unicorn as the app server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'debugger'
+
+gem "hobo", "= 2.0.0.pre8"
+# Hobo has a lot of assets. Stop cluttering the log in development mode.
+gem "quiet_assets", :group => :development
+# Hobo's version of will_paginate is required.
+gem "will_paginate", :git => "git://github.com/Hobo/will_paginate.git"
+gem "hobo_bootstrap", "2.0.0.pre8"
+gem "hobo_jquery_ui", "2.0.0.pre8"
+gem "hobo_bootstrap_ui", "2.0.0.pre8"
+gem "jquery-ui-themes", "~> 0.0.4"
\ No newline at end of file
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000..038b15b
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,168 @@
+GIT
+ remote: git://github.com/Hobo/will_paginate.git
+ revision: cc7ef01551b94fe4f607e38929037234dc70bb62
+ specs:
+ will_paginate (3.0.4.hobo)
+
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actionmailer (3.2.11)
+ actionpack (= 3.2.11)
+ mail (~> 2.4.4)
+ actionpack (3.2.11)
+ activemodel (= 3.2.11)
+ activesupport (= 3.2.11)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.4)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.2.1)
+ activemodel (3.2.11)
+ activesupport (= 3.2.11)
+ builder (~> 3.0.0)
+ activerecord (3.2.11)
+ activemodel (= 3.2.11)
+ activesupport (= 3.2.11)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.11)
+ activemodel (= 3.2.11)
+ activesupport (= 3.2.11)
+ activesupport (3.2.11)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ arel (3.0.2)
+ bootstrap-datepicker-rails (0.6.35)
+ railties (>= 3.0)
+ bootstrap-sass (2.2.2.0)
+ sass (~> 3.2)
+ builder (3.0.4)
+ coffee-rails (3.2.2)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.4.0)
+ dryml (2.0.0.pre8)
+ actionpack (~> 3.2.0)
+ hobo_support (= 2.0.0.pre8)
+ erubis (2.7.0)
+ execjs (1.4.0)
+ multi_json (~> 1.0)
+ hike (1.2.1)
+ hobo (2.0.0.pre8)
+ dryml (= 2.0.0.pre8)
+ hobo_fields (= 2.0.0.pre8)
+ hobo_support (= 2.0.0.pre8)
+ will_paginate (~> 3.0.0)
+ hobo_bootstrap (2.0.0.pre8)
+ bootstrap-sass (~> 2.1)
+ hobo (~> 2.0.0.pre6)
+ hobo_jquery (~> 2.0.0.pre6)
+ will_paginate-bootstrap (~> 0.2.1)
+ hobo_bootstrap_ui (2.0.0.pre8)
+ bootstrap-datepicker-rails
+ hobo_bootstrap (~> 2.0.0.pre1)
+ hobo_fields (2.0.0.pre8)
+ hobo_support (= 2.0.0.pre8)
+ hobo_jquery (2.0.0.pre8)
+ hobo_rapid (= 2.0.0.pre8)
+ jquery-rails (~> 2.0)
+ hobo_jquery_ui (2.0.0.pre8)
+ hobo (= 2.0.0.pre8)
+ hobo_jquery (= 2.0.0.pre8)
+ jquery-ui-themes (~> 0.0.4)
+ hobo_rapid (2.0.0.pre8)
+ hobo (= 2.0.0.pre8)
+ hobo_support (2.0.0.pre8)
+ rails (~> 3.2.0)
+ httparty (0.9.0)
+ multi_json (~> 1.0)
+ multi_xml
+ i18n (0.6.1)
+ journey (1.0.4)
+ jquery-rails (2.1.4)
+ railties (>= 3.0, < 5.0)
+ thor (>= 0.14, < 2.0)
+ jquery-ui-themes (0.0.8)
+ httparty
+ json (1.7.6)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ multi_json (1.5.0)
+ multi_xml (0.5.1)
+ polyglot (0.3.3)
+ quiet_assets (1.0.1)
+ railties (~> 3.1)
+ rack (1.4.3)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.2)
+ rack (>= 1.0)
+ rails (3.2.11)
+ actionmailer (= 3.2.11)
+ actionpack (= 3.2.11)
+ activerecord (= 3.2.11)
+ activeresource (= 3.2.11)
+ activesupport (= 3.2.11)
+ bundler (~> 1.0)
+ railties (= 3.2.11)
+ railties (3.2.11)
+ actionpack (= 3.2.11)
+ activesupport (= 3.2.11)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
+ rake (10.0.3)
+ rdoc (3.12)
+ json (~> 1.4)
+ sass (3.2.5)
+ sass-rails (3.2.5)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ sprockets (2.2.2)
+ hike (~> 1.2)
+ multi_json (~> 1.0)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.6)
+ thor (0.16.0)
+ tilt (1.3.3)
+ treetop (1.4.12)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.35)
+ uglifier (1.3.0)
+ execjs (>= 0.3.0)
+ multi_json (~> 1.0, >= 1.0.2)
+ will_paginate-bootstrap (0.2.2)
+ will_paginate (>= 3.0.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-rails (~> 3.2.1)
+ hobo (= 2.0.0.pre8)
+ hobo_bootstrap (= 2.0.0.pre8)
+ hobo_bootstrap_ui (= 2.0.0.pre8)
+ hobo_jquery_ui (= 2.0.0.pre8)
+ jquery-rails
+ jquery-ui-themes (~> 0.0.4)
+ quiet_assets
+ rails (= 3.2.11)
+ sass-rails (~> 3.2.3)
+ sqlite3
+ uglifier (>= 1.0.3)
+ will_paginate!
diff --git a/README b/README
deleted file mode 100644
index 73e9cd7..0000000
--- a/README
+++ /dev/null
@@ -1,23 +0,0 @@
-# Agility
-
-This is the source code to accompany the [Agility gitorial for
-Hobo](http://cookbook.hobocentral.net/tutorials/agility).
-
-Agility is a simple "Agile Development" application – Agility. The
-application tracks projects which consist of a number of user
-stories. Stories have a status (e.g. accepted, under development…) as
-well as a number of associated tasks. Tasks can be assigned to users,
-and each user can see a heads-up of all the tasks they’ve been
-assigned to on their home page.
-
-To keep the gitorial clean, updates to the gitorial **rewrite
-history**. That means that you cannot `git pull`. If you wish to
-update to a later version, you must `git clone` the repository again
-and move any changes you have made from your old clone to the new one.
-
-The "real" history is kept in our [source
-repository](http://github.com/Hobo/agility-gitorial-patches/tree/master).
-
-There is an [older version of
-agility](http://github.com/tablatom/agility/tree/master) that is not
-in gitorial format. That tree is mainly used for integration testing Hobo.
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..dc92f01
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,7 @@
+#!/usr/bin/env rake
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+
+Agility::Application.load_tasks
diff --git a/app/assets/images/rails.png b/app/assets/images/rails.png
new file mode 100644
index 0000000000000000000000000000000000000000..d5edc04e65f555e3ba4dcdaad39dc352e75b575e
GIT binary patch
literal 6646
zcmV<S842czP)<h;3K|Lk000e1NJLTq001%o002M;1^@s6Sk)wZ0000PbVXQnQ*UN;
zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBV0m`OxIRCwB~TM3k0WtINkQm@vou3oA;
zNq1-8!xDmF*T@+_U=+mh$jJf6?dYgy#^am;M`uK5blh=77)EhM@t~py21LYhMiCH!
z$QqK6jX=`rPP)_kQdM2ctM}e~_y1olodi*s$9d_h_g?+)-v8e3-tXT3$G9%ti|{al
z09OXUUl|5A8-UGg0h$i^V(?}V%)8vU`G*dpHo&Vq7c>pVcQya!6@Dsmj@#jv7C*qh
zIhOJ6_K0n?*d`*T7TDuW-}m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application.js
new file mode 100644
index 0000000..0b6e515
--- /dev/null
+++ b/app/assets/javascripts/application.js
@@ -0,0 +1,11 @@
+// This file is included in all sites and subsites. This is a
+// manifest file that'll be compiled into including all the files
+// listed below. Add new JavaScript/Coffee code in separate files in
+// the application directory and they'll automatically be included.
+// It's not advisable to add code directly here, but if you do, it'll
+// appear at the bottom of the the compiled file.
+//
+//= require jquery
+//= require jquery_ujs
+//= require jquery-ui
+//= require_tree ./application
diff --git a/app/assets/javascripts/application.js.orig b/app/assets/javascripts/application.js.orig
new file mode 100644
index 0000000..9097d83
--- /dev/null
+++ b/app/assets/javascripts/application.js.orig
@@ -0,0 +1,15 @@
+// This is a manifest file that'll be compiled into application.js, which will include all the files
+// listed below.
+//
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
+// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
+//
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// the compiled file.
+//
+// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
+// GO AFTER THE REQUIRES BELOW.
+//
+//= require jquery
+//= require jquery_ujs
+//= require_tree .
diff --git a/app/assets/javascripts/application/.gitkeep b/app/assets/javascripts/application/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/app/assets/javascripts/front.js b/app/assets/javascripts/front.js
new file mode 100644
index 0000000..3dc1106
--- /dev/null
+++ b/app/assets/javascripts/front.js
@@ -0,0 +1,16 @@
+// This is a manifest file for the front subsite (which is your whole
+// application if you don't have any subsites). It will be compiled
+// into including all the files listed below. Add new
+// JavaScript/Coffee code in separate files in the front directory and
+// they'll automatically be included in the compiled file accessible
+// from http://example.com/assets/front.js It's not advisable to add
+// code directly here, but if you do, it'll appear at the bottom of
+// the the compiled file.
+//
+//= require application
+//= require hobo_rapid
+//= require hobo_jquery
+//= require hobo_bootstrap
+//= require hobo_jquery_ui
+//= require hobo_bootstrap_ui
+//= require_tree ./front
diff --git a/app/assets/javascripts/front/.gitkeep b/app/assets/javascripts/front/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/app/assets/stylesheets/application.css.orig b/app/assets/stylesheets/application.css.orig
new file mode 100644
index 0000000..3192ec8
--- /dev/null
+++ b/app/assets/stylesheets/application.css.orig
@@ -0,0 +1,13 @@
+/*
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
+ * listed below.
+ *
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
+ *
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
+ * compiled file, but it's generally better to create a new file per style scope.
+ *
+ *= require_self
+ *= require_tree .
+ */
diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss
new file mode 100644
index 0000000..657b322
--- /dev/null
+++ b/app/assets/stylesheets/application.scss
@@ -0,0 +1,9 @@
+/*
+ * This is the global stylesheet manifest file. Files or plugins
+ * referenced from here or placed in the application/ directory will be
+ * included in all subsites. This file is included by front.css and all
+ * subsites.
+ *
+ *= require_self
+ *= require_tree ./application
+*/
diff --git a/app/assets/stylesheets/application/.gitkeep b/app/assets/stylesheets/application/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/app/assets/stylesheets/front.scss b/app/assets/stylesheets/front.scss
new file mode 100644
index 0000000..bac2fc0
--- /dev/null
+++ b/app/assets/stylesheets/front.scss
@@ -0,0 +1,16 @@
+/*
+ * This is the stylesheet manifest file for the front subsite (which
+ * is your whole application if you don't have any subsites). Files
+ * or plugins referenced from here or placed in the front/ directory
+ * will be included.
+ *
+ *= require_self
+ *= require application
+ *= require hobo_rapid
+ *= require hobo_jquery
+ *= require hobo_bootstrap
+ *= require hobo_jquery_ui
+ *= require hobo_bootstrap_ui
+ *= require jquery-ui/redmond
+ *= require_tree ./front
+*/
diff --git a/app/assets/stylesheets/front/.gitkeep b/app/assets/stylesheets/front/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
new file mode 100644
index 0000000..e8065d9
--- /dev/null
+++ b/app/controllers/application_controller.rb
@@ -0,0 +1,3 @@
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+end
diff --git a/app/controllers/front_controller.rb b/app/controllers/front_controller.rb
new file mode 100644
index 0000000..86e3201
--- /dev/null
+++ b/app/controllers/front_controller.rb
@@ -0,0 +1,19 @@
+class FrontController < ApplicationController
+
+ hobo_controller
+
+ def index; end
+
+ def summary
+ if !current_user.administrator?
+ redirect_to user_login_path
+ end
+ end
+
+ def search
+ if params[:query]
+ site_search(params[:query])
+ end
+ end
+
+end
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
new file mode 100644
index 0000000..fdbeb0e
--- /dev/null
+++ b/app/controllers/users_controller.rb
@@ -0,0 +1,20 @@
+class UsersController < ApplicationController
+
+ hobo_user_controller
+
+ auto_actions :all, :except => [ :index, :new, :create ]
+
+ # Normally, users should be created via the user lifecycle, except
+ # for the initial user created via the form on the front screen on
+ # first run. This method creates the initial user.
+ def create
+ hobo_create do
+ if valid?
+ self.current_user = this
+ flash[:notice] = t("hobo.messages.you_are_site_admin", :default=>"You are now the site administrator")
+ redirect_to home_page
+ end
+ end
+ end
+
+end
diff --git a/app/helpers/front_helper.rb b/app/helpers/front_helper.rb
new file mode 100644
index 0000000..1dbbd46
--- /dev/null
+++ b/app/helpers/front_helper.rb
@@ -0,0 +1,2 @@
+module FrontHelper
+end
diff --git a/app/mailers/.gitkeep b/app/mailers/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb
new file mode 100644
index 0000000..0c84be2
--- /dev/null
+++ b/app/mailers/user_mailer.rb
@@ -0,0 +1,17 @@
+class UserMailer < ActionMailer::Base
+ default :from => "no-reply@#{host}"
+
+ def forgot_password(user, key)
+ @user, @key = user, key
+ mail( :subject => "#{app_name} -- forgotten password",
+ :to => user.email_address )
+ end
+
+
+ def activation(user, key)
+ @user, @key = user, key
+ mail( :subject => "#{app_name} -- activate",
+ :to => user.email_address )
+ end
+
+end
diff --git a/app/models/.gitkeep b/app/models/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/app/models/guest.rb b/app/models/guest.rb
new file mode 100644
index 0000000..b7b3230
--- /dev/null
+++ b/app/models/guest.rb
@@ -0,0 +1,7 @@
+class Guest < Hobo::Model::Guest
+
+ def administrator?
+ false
+ end
+
+end
diff --git a/app/models/user.rb b/app/models/user.rb
new file mode 100644
index 0000000..32600a3
--- /dev/null
+++ b/app/models/user.rb
@@ -0,0 +1,77 @@
+class User < ActiveRecord::Base
+
+ hobo_user_model # Don't put anything above this
+
+ fields do
+ name :string, :required, :unique
+ email_address :email_address, :login => true
+ administrator :boolean, :default => false
+ timestamps
+ end
+ attr_accessible :name, :email_address, :password, :password_confirmation
+
+ # This gives admin rights and an :active state to the first sign-up.
+ # Just remove it if you don't want that
+ before_create do |user|
+ if !Rails.env.test? && user.class.count == 0
+ user.administrator = true
+ user.state = "active"
+ end
+ end
+
+
+ # --- Signup lifecycle --- #
+
+ lifecycle do
+
+ state :inactive, :default => true
+ state :active
+
+ create :signup, :available_to => "Guest",
+ :params => [:name, :email_address, :password, :password_confirmation],
+ :become => :inactive, :new_key => true do
+ UserMailer.activation(self, lifecycle.key).deliver
+ end
+
+ transition :activate, { :inactive => :active }, :available_to => :key_holder
+
+ transition :request_password_reset, { :inactive => :inactive }, :new_key => true do
+ UserMailer.activation(self, lifecycle.key).deliver
+ end
+
+ transition :request_password_reset, { :active => :active }, :new_key => true do
+ UserMailer.forgot_password(self, lifecycle.key).deliver
+ end
+
+ transition :reset_password, { :active => :active }, :available_to => :key_holder,
+ :params => [ :password, :password_confirmation ]
+
+ end
+
+ def signed_up?
+ state=="active"