clearance 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of clearance might be problematic. Click here for more details.

Files changed (262) hide show
  1. data/CHANGELOG.md +9 -0
  2. data/Gemfile +21 -0
  3. data/Gemfile.lock +171 -0
  4. data/README.md +18 -30
  5. data/Rakefile +14 -123
  6. data/VERSION +1 -1
  7. data/{spec/rails_root/app → app}/views/layouts/application.html.erb +0 -2
  8. data/app/views/passwords/edit.html.erb +3 -4
  9. data/app/views/passwords/new.html.erb +2 -2
  10. data/{lib/rails/generators/clearance_views_templates/formtastic/erb → app/views}/users/_inputs.html.erb +0 -0
  11. data/lib/clearance/user.rb +11 -9
  12. data/lib/generators/clearance/features/features_generator.rb +18 -0
  13. data/lib/generators/clearance/install/install_generator.rb +46 -0
  14. data/lib/generators/clearance/install/templates/README +22 -0
  15. data/lib/{rails/generators/clearance_templates → generators/clearance/install/templates}/clearance.rb +0 -0
  16. data/lib/{rails/generators/clearance_templates/migrations/update_users.rb → generators/clearance/install/templates/db/migrate/upgrade_clearance_to_diesel.rb} +1 -1
  17. data/lib/{rails/generators/clearance_templates → generators/clearance/install/templates}/user.rb +0 -0
  18. data/lib/generators/clearance/views/views_generator.rb +8 -0
  19. data/test/controllers/sessions_controller_test.rb +0 -2
  20. data/test/controllers/users_controller_test.rb +0 -2
  21. data/{lib/rails/generators/clearance_templates → test}/factories.rb +1 -1
  22. data/test/models/user_test.rb +23 -0
  23. data/test/test_helper.rb +18 -8
  24. metadata +38 -478
  25. data/lib/rails/generators/clearance_features_generator.rb +0 -20
  26. data/lib/rails/generators/clearance_features_templates/features/password_reset.feature +0 -40
  27. data/lib/rails/generators/clearance_features_templates/features/sign_in.feature +0 -28
  28. data/lib/rails/generators/clearance_features_templates/features/sign_out.feature +0 -16
  29. data/lib/rails/generators/clearance_features_templates/features/sign_up.feature +0 -21
  30. data/lib/rails/generators/clearance_features_templates/features/step_definitions/clearance_steps.rb +0 -109
  31. data/lib/rails/generators/clearance_generator.rb +0 -72
  32. data/lib/rails/generators/clearance_templates/README +0 -24
  33. data/lib/rails/generators/clearance_templates/migrations/create_users.rb +0 -19
  34. data/lib/rails/generators/clearance_views_generator.rb +0 -14
  35. data/lib/rails/generators/clearance_views_templates/formtastic/erb/passwords/edit.html.erb +0 -21
  36. data/lib/rails/generators/clearance_views_templates/formtastic/erb/passwords/new.html.erb +0 -15
  37. data/lib/rails/generators/clearance_views_templates/formtastic/erb/sessions/new.html.erb +0 -21
  38. data/lib/rails/generators/clearance_views_templates/formtastic/erb/users/new.html.erb +0 -10
  39. data/spec/rails_root/Gemfile +0 -17
  40. data/spec/rails_root/Gemfile.lock +0 -143
  41. data/spec/rails_root/README +0 -244
  42. data/spec/rails_root/Rakefile +0 -10
  43. data/spec/rails_root/app/controllers/accounts_controller.rb +0 -10
  44. data/spec/rails_root/app/controllers/application_controller.rb +0 -6
  45. data/spec/rails_root/app/helpers/application_helper.rb +0 -2
  46. data/spec/rails_root/app/models/user.rb +0 -3
  47. data/spec/rails_root/app/views/accounts/edit.html.erb +0 -0
  48. data/spec/rails_root/app/views/passwords/edit.html.erb +0 -21
  49. data/spec/rails_root/app/views/passwords/new.html.erb +0 -15
  50. data/spec/rails_root/app/views/sessions/new.html.erb +0 -21
  51. data/spec/rails_root/app/views/users/_inputs.html.erb +0 -6
  52. data/spec/rails_root/app/views/users/new.html.erb +0 -10
  53. data/spec/rails_root/config.ru +0 -4
  54. data/spec/rails_root/config/application.rb +0 -46
  55. data/spec/rails_root/config/boot.rb +0 -6
  56. data/spec/rails_root/config/cucumber.yml +0 -8
  57. data/spec/rails_root/config/database.yml +0 -25
  58. data/spec/rails_root/config/environment.rb +0 -7
  59. data/spec/rails_root/config/environments/development.rb +0 -21
  60. data/spec/rails_root/config/environments/production.rb +0 -42
  61. data/spec/rails_root/config/environments/test.rb +0 -34
  62. data/spec/rails_root/config/initializers/backtrace_silencers.rb +0 -7
  63. data/spec/rails_root/config/initializers/clearance.rb +0 -3
  64. data/spec/rails_root/config/initializers/inflections.rb +0 -10
  65. data/spec/rails_root/config/initializers/mime_types.rb +0 -5
  66. data/spec/rails_root/config/initializers/secret_token.rb +0 -7
  67. data/spec/rails_root/config/initializers/session_store.rb +0 -8
  68. data/spec/rails_root/config/locales/en.yml +0 -5
  69. data/spec/rails_root/config/routes.rb +0 -61
  70. data/spec/rails_root/db/development.sqlite3 +0 -0
  71. data/spec/rails_root/db/migrate/20110209234521_clearance_create_users.rb +0 -19
  72. data/spec/rails_root/db/schema.rb +0 -28
  73. data/spec/rails_root/db/test.sqlite3 +0 -0
  74. data/spec/rails_root/doc/README_FOR_APP +0 -2
  75. data/spec/rails_root/features/password_reset.feature +0 -40
  76. data/spec/rails_root/features/sign_in.feature +0 -28
  77. data/spec/rails_root/features/sign_out.feature +0 -16
  78. data/spec/rails_root/features/sign_up.feature +0 -21
  79. data/spec/rails_root/features/step_definitions/clearance_steps.rb +0 -109
  80. data/spec/rails_root/features/step_definitions/web_steps.rb +0 -219
  81. data/spec/rails_root/features/support/env.rb +0 -57
  82. data/spec/rails_root/features/support/paths.rb +0 -45
  83. data/spec/rails_root/lib/tasks/cucumber.rake +0 -53
  84. data/spec/rails_root/log/development.log +0 -536
  85. data/spec/rails_root/log/test.log +0 -7600
  86. data/spec/rails_root/public/404.html +0 -26
  87. data/spec/rails_root/public/422.html +0 -26
  88. data/spec/rails_root/public/500.html +0 -26
  89. data/spec/rails_root/public/favicon.ico +0 -0
  90. data/spec/rails_root/public/images/rails.png +0 -0
  91. data/spec/rails_root/public/javascripts/application.js +0 -2
  92. data/spec/rails_root/public/javascripts/controls.js +0 -965
  93. data/spec/rails_root/public/javascripts/dragdrop.js +0 -974
  94. data/spec/rails_root/public/javascripts/effects.js +0 -1123
  95. data/spec/rails_root/public/javascripts/prototype.js +0 -4874
  96. data/spec/rails_root/public/javascripts/rails.js +0 -118
  97. data/spec/rails_root/public/robots.txt +0 -5
  98. data/spec/rails_root/script/cucumber +0 -10
  99. data/spec/rails_root/script/rails +0 -9
  100. data/spec/rails_root/test/factories/clearance.rb +0 -13
  101. data/spec/rails_root/test/functional/accounts_controller_test.rb +0 -22
  102. data/spec/rails_root/test/performance/browsing_test.rb +0 -9
  103. data/spec/rails_root/test/test_helper.rb +0 -13
  104. data/spec/rails_root/vendor/Gemfile +0 -17
  105. data/spec/rails_root/vendor/Gemfile.lock +0 -143
  106. data/spec/rails_root/vendor/README +0 -244
  107. data/spec/rails_root/vendor/Rakefile +0 -10
  108. data/spec/rails_root/vendor/app/controllers/accounts_controller.rb +0 -10
  109. data/spec/rails_root/vendor/app/controllers/application_controller.rb +0 -6
  110. data/spec/rails_root/vendor/app/helpers/application_helper.rb +0 -2
  111. data/spec/rails_root/vendor/app/models/user.rb +0 -3
  112. data/spec/rails_root/vendor/app/views/accounts/edit.html.erb +0 -0
  113. data/spec/rails_root/vendor/app/views/layouts/application.html.erb +0 -24
  114. data/spec/rails_root/vendor/app/views/passwords/edit.html.erb +0 -21
  115. data/spec/rails_root/vendor/app/views/passwords/new.html.erb +0 -15
  116. data/spec/rails_root/vendor/app/views/sessions/new.html.erb +0 -21
  117. data/spec/rails_root/vendor/app/views/users/_inputs.html.erb +0 -6
  118. data/spec/rails_root/vendor/app/views/users/new.html.erb +0 -10
  119. data/spec/rails_root/vendor/config.ru +0 -4
  120. data/spec/rails_root/vendor/config/application.rb +0 -46
  121. data/spec/rails_root/vendor/config/boot.rb +0 -6
  122. data/spec/rails_root/vendor/config/cucumber.yml +0 -8
  123. data/spec/rails_root/vendor/config/database.yml +0 -25
  124. data/spec/rails_root/vendor/config/environment.rb +0 -7
  125. data/spec/rails_root/vendor/config/environments/development.rb +0 -21
  126. data/spec/rails_root/vendor/config/environments/production.rb +0 -42
  127. data/spec/rails_root/vendor/config/environments/test.rb +0 -34
  128. data/spec/rails_root/vendor/config/initializers/backtrace_silencers.rb +0 -7
  129. data/spec/rails_root/vendor/config/initializers/clearance.rb +0 -3
  130. data/spec/rails_root/vendor/config/initializers/inflections.rb +0 -10
  131. data/spec/rails_root/vendor/config/initializers/mime_types.rb +0 -5
  132. data/spec/rails_root/vendor/config/initializers/secret_token.rb +0 -7
  133. data/spec/rails_root/vendor/config/initializers/session_store.rb +0 -8
  134. data/spec/rails_root/vendor/config/locales/en.yml +0 -5
  135. data/spec/rails_root/vendor/config/routes.rb +0 -61
  136. data/spec/rails_root/vendor/db/development.sqlite3 +0 -0
  137. data/spec/rails_root/vendor/db/migrate/20101220184900_clearance_create_users.rb +0 -20
  138. data/spec/rails_root/vendor/db/schema.rb +0 -29
  139. data/spec/rails_root/vendor/db/test.sqlite3 +0 -0
  140. data/spec/rails_root/vendor/doc/README_FOR_APP +0 -2
  141. data/spec/rails_root/vendor/features/password_reset.feature +0 -33
  142. data/spec/rails_root/vendor/features/sign_in.feature +0 -35
  143. data/spec/rails_root/vendor/features/sign_out.feature +0 -15
  144. data/spec/rails_root/vendor/features/sign_up.feature +0 -45
  145. data/spec/rails_root/vendor/features/step_definitions/clearance_steps.rb +0 -138
  146. data/spec/rails_root/vendor/features/step_definitions/web_steps.rb +0 -219
  147. data/spec/rails_root/vendor/features/support/env.rb +0 -57
  148. data/spec/rails_root/vendor/features/support/paths.rb +0 -45
  149. data/spec/rails_root/vendor/lib/tasks/cucumber.rake +0 -53
  150. data/spec/rails_root/vendor/log/development.log +0 -663
  151. data/spec/rails_root/vendor/log/test.log +0 -22745
  152. data/spec/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE +0 -20
  153. data/spec/rails_root/vendor/plugins/dynamic_form/README +0 -13
  154. data/spec/rails_root/vendor/plugins/dynamic_form/Rakefile +0 -10
  155. data/spec/rails_root/vendor/plugins/dynamic_form/init.rb +0 -5
  156. data/spec/rails_root/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb +0 -300
  157. data/spec/rails_root/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml +0 -8
  158. data/spec/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb +0 -42
  159. data/spec/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_test.rb +0 -370
  160. data/spec/rails_root/vendor/plugins/dynamic_form/test/test_helper.rb +0 -9
  161. data/spec/rails_root/vendor/public/404.html +0 -26
  162. data/spec/rails_root/vendor/public/422.html +0 -26
  163. data/spec/rails_root/vendor/public/500.html +0 -26
  164. data/spec/rails_root/vendor/public/favicon.ico +0 -0
  165. data/spec/rails_root/vendor/public/images/rails.png +0 -0
  166. data/spec/rails_root/vendor/public/javascripts/application.js +0 -2
  167. data/spec/rails_root/vendor/public/javascripts/controls.js +0 -965
  168. data/spec/rails_root/vendor/public/javascripts/dragdrop.js +0 -974
  169. data/spec/rails_root/vendor/public/javascripts/effects.js +0 -1123
  170. data/spec/rails_root/vendor/public/javascripts/prototype.js +0 -4874
  171. data/spec/rails_root/vendor/public/javascripts/rails.js +0 -118
  172. data/spec/rails_root/vendor/public/robots.txt +0 -5
  173. data/spec/rails_root/vendor/script/cucumber +0 -10
  174. data/spec/rails_root/vendor/script/rails +0 -9
  175. data/spec/rails_root/vendor/test/factories/clearance.rb +0 -13
  176. data/spec/rails_root/vendor/test/functional/accounts_controller_test.rb +0 -22
  177. data/spec/rails_root/vendor/test/performance/browsing_test.rb +0 -9
  178. data/spec/rails_root/vendor/test/test_helper.rb +0 -13
  179. data/spec/rails_root/vendor/vendor/plugins/dynamic_form/MIT-LICENSE +0 -20
  180. data/spec/rails_root/vendor/vendor/plugins/dynamic_form/README +0 -13
  181. data/spec/rails_root/vendor/vendor/plugins/dynamic_form/Rakefile +0 -10
  182. data/spec/rails_root/vendor/vendor/plugins/dynamic_form/init.rb +0 -5
  183. data/spec/rails_root/vendor/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb +0 -300
  184. data/spec/rails_root/vendor/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml +0 -8
  185. data/spec/rails_root/vendor/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb +0 -42
  186. data/spec/rails_root/vendor/vendor/plugins/dynamic_form/test/dynamic_form_test.rb +0 -370
  187. data/spec/rails_root/vendor/vendor/plugins/dynamic_form/test/test_helper.rb +0 -9
  188. data/test/rails_root/Gemfile +0 -17
  189. data/test/rails_root/Gemfile.lock +0 -145
  190. data/test/rails_root/README +0 -244
  191. data/test/rails_root/Rakefile +0 -10
  192. data/test/rails_root/app/controllers/accounts_controller.rb +0 -10
  193. data/test/rails_root/app/controllers/application_controller.rb +0 -6
  194. data/test/rails_root/app/helpers/application_helper.rb +0 -2
  195. data/test/rails_root/app/models/user.rb +0 -3
  196. data/test/rails_root/app/views/accounts/edit.html.erb +0 -0
  197. data/test/rails_root/app/views/layouts/application.html.erb +0 -24
  198. data/test/rails_root/app/views/passwords/edit.html.erb +0 -21
  199. data/test/rails_root/app/views/passwords/new.html.erb +0 -15
  200. data/test/rails_root/app/views/sessions/new.html.erb +0 -21
  201. data/test/rails_root/app/views/users/_inputs.html.erb +0 -6
  202. data/test/rails_root/app/views/users/new.html.erb +0 -10
  203. data/test/rails_root/config.ru +0 -4
  204. data/test/rails_root/config/application.rb +0 -46
  205. data/test/rails_root/config/boot.rb +0 -6
  206. data/test/rails_root/config/cucumber.yml +0 -8
  207. data/test/rails_root/config/database.yml +0 -25
  208. data/test/rails_root/config/environment.rb +0 -7
  209. data/test/rails_root/config/environments/development.rb +0 -21
  210. data/test/rails_root/config/environments/production.rb +0 -42
  211. data/test/rails_root/config/environments/test.rb +0 -34
  212. data/test/rails_root/config/initializers/backtrace_silencers.rb +0 -7
  213. data/test/rails_root/config/initializers/clearance.rb +0 -3
  214. data/test/rails_root/config/initializers/inflections.rb +0 -10
  215. data/test/rails_root/config/initializers/mime_types.rb +0 -5
  216. data/test/rails_root/config/initializers/secret_token.rb +0 -7
  217. data/test/rails_root/config/initializers/session_store.rb +0 -8
  218. data/test/rails_root/config/locales/en.yml +0 -5
  219. data/test/rails_root/config/routes.rb +0 -61
  220. data/test/rails_root/db/development.sqlite3 +0 -0
  221. data/test/rails_root/db/migrate/20110209234101_clearance_create_users.rb +0 -19
  222. data/test/rails_root/db/schema.rb +0 -28
  223. data/test/rails_root/db/test.sqlite3 +0 -0
  224. data/test/rails_root/doc/README_FOR_APP +0 -2
  225. data/test/rails_root/features/password_reset.feature +0 -40
  226. data/test/rails_root/features/sign_in.feature +0 -28
  227. data/test/rails_root/features/sign_out.feature +0 -16
  228. data/test/rails_root/features/sign_up.feature +0 -21
  229. data/test/rails_root/features/step_definitions/clearance_steps.rb +0 -109
  230. data/test/rails_root/features/step_definitions/web_steps.rb +0 -219
  231. data/test/rails_root/features/support/env.rb +0 -57
  232. data/test/rails_root/features/support/paths.rb +0 -45
  233. data/test/rails_root/lib/tasks/cucumber.rake +0 -53
  234. data/test/rails_root/log/development.log +0 -938
  235. data/test/rails_root/log/test.log +0 -20303
  236. data/test/rails_root/public/404.html +0 -26
  237. data/test/rails_root/public/422.html +0 -26
  238. data/test/rails_root/public/500.html +0 -26
  239. data/test/rails_root/public/favicon.ico +0 -0
  240. data/test/rails_root/public/images/rails.png +0 -0
  241. data/test/rails_root/public/javascripts/application.js +0 -2
  242. data/test/rails_root/public/javascripts/controls.js +0 -965
  243. data/test/rails_root/public/javascripts/dragdrop.js +0 -974
  244. data/test/rails_root/public/javascripts/effects.js +0 -1123
  245. data/test/rails_root/public/javascripts/prototype.js +0 -4874
  246. data/test/rails_root/public/javascripts/rails.js +0 -118
  247. data/test/rails_root/public/robots.txt +0 -5
  248. data/test/rails_root/script/cucumber +0 -10
  249. data/test/rails_root/script/rails +0 -9
  250. data/test/rails_root/test/factories/clearance.rb +0 -13
  251. data/test/rails_root/test/functional/accounts_controller_test.rb +0 -22
  252. data/test/rails_root/test/performance/browsing_test.rb +0 -9
  253. data/test/rails_root/test/test_helper.rb +0 -13
  254. data/test/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE +0 -20
  255. data/test/rails_root/vendor/plugins/dynamic_form/README +0 -13
  256. data/test/rails_root/vendor/plugins/dynamic_form/Rakefile +0 -10
  257. data/test/rails_root/vendor/plugins/dynamic_form/init.rb +0 -5
  258. data/test/rails_root/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb +0 -300
  259. data/test/rails_root/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml +0 -8
  260. data/test/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb +0 -42
  261. data/test/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_test.rb +0 -370
  262. data/test/rails_root/vendor/plugins/dynamic_form/test/test_helper.rb +0 -9
@@ -1,17 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gem 'rails', '3.0.0'
4
-
5
- gem 'sqlite3-ruby', :require => 'sqlite3'
6
-
7
- gem 'capybara', '0.4.0'
8
- gem 'cucumber', '0.10.0'
9
- gem 'cucumber-rails', '0.3.2'
10
- gem 'factory_girl_rails', '1.0'
11
- gem 'formtastic', '1.1.0.beta'
12
- gem 'launchy', '0.3.7'
13
- gem 'mocha', '0.9.8'
14
- gem 'nokogiri', '1.4.1'
15
- gem 'shoulda', '2.11.3'
16
-
17
- gem 'clearance', :path => '../..'
@@ -1,143 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- clearance (0.9.0.rc9)
5
- rails (~> 3.0.0)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- abstract (1.0.0)
11
- actionmailer (3.0.0)
12
- actionpack (= 3.0.0)
13
- mail (~> 2.2.5)
14
- actionpack (3.0.0)
15
- activemodel (= 3.0.0)
16
- activesupport (= 3.0.0)
17
- builder (~> 2.1.2)
18
- erubis (~> 2.6.6)
19
- i18n (~> 0.4.1)
20
- rack (~> 1.2.1)
21
- rack-mount (~> 0.6.12)
22
- rack-test (~> 0.5.4)
23
- tzinfo (~> 0.3.23)
24
- activemodel (3.0.0)
25
- activesupport (= 3.0.0)
26
- builder (~> 2.1.2)
27
- i18n (~> 0.4.1)
28
- activerecord (3.0.0)
29
- activemodel (= 3.0.0)
30
- activesupport (= 3.0.0)
31
- arel (~> 1.0.0)
32
- tzinfo (~> 0.3.23)
33
- activeresource (3.0.0)
34
- activemodel (= 3.0.0)
35
- activesupport (= 3.0.0)
36
- activesupport (3.0.0)
37
- arel (1.0.1)
38
- activesupport (~> 3.0.0)
39
- builder (2.1.2)
40
- capybara (0.4.0)
41
- celerity (>= 0.7.9)
42
- culerity (>= 0.2.4)
43
- mime-types (>= 1.16)
44
- nokogiri (>= 1.3.3)
45
- rack (>= 1.0.0)
46
- rack-test (>= 0.5.4)
47
- selenium-webdriver (>= 0.0.27)
48
- xpath (~> 0.1.2)
49
- celerity (0.8.6)
50
- childprocess (0.1.4)
51
- ffi (~> 0.6.3)
52
- configuration (1.1.0)
53
- cucumber (0.10.0)
54
- builder (>= 2.1.2)
55
- diff-lcs (~> 1.1.2)
56
- gherkin (~> 2.3.2)
57
- json (~> 1.4.6)
58
- term-ansicolor (~> 1.0.5)
59
- cucumber-rails (0.3.2)
60
- cucumber (>= 0.8.0)
61
- culerity (0.2.13)
62
- diff-lcs (1.1.2)
63
- erubis (2.6.6)
64
- abstract (>= 1.0.0)
65
- factory_girl (1.3.2)
66
- factory_girl_rails (1.0)
67
- factory_girl (~> 1.3)
68
- rails (>= 3.0.0.beta4)
69
- ffi (0.6.3)
70
- rake (>= 0.8.7)
71
- formtastic (1.1.0.beta)
72
- actionpack (>= 2.3.0)
73
- activesupport (>= 2.3.0)
74
- i18n (>= 0.4.0)
75
- gherkin (2.3.2)
76
- json (~> 1.4.6)
77
- term-ansicolor (~> 1.0.5)
78
- i18n (0.4.1)
79
- json (1.4.6)
80
- json_pure (1.4.6)
81
- launchy (0.3.7)
82
- configuration (>= 0.0.5)
83
- rake (>= 0.8.1)
84
- mail (2.2.5)
85
- activesupport (>= 2.3.6)
86
- mime-types
87
- treetop (>= 1.4.5)
88
- mime-types (1.16)
89
- mocha (0.9.8)
90
- rake
91
- nokogiri (1.4.1)
92
- polyglot (0.3.1)
93
- rack (1.2.1)
94
- rack-mount (0.6.13)
95
- rack (>= 1.0.0)
96
- rack-test (0.5.4)
97
- rack (>= 1.0)
98
- rails (3.0.0)
99
- actionmailer (= 3.0.0)
100
- actionpack (= 3.0.0)
101
- activerecord (= 3.0.0)
102
- activeresource (= 3.0.0)
103
- activesupport (= 3.0.0)
104
- bundler (~> 1.0.0)
105
- railties (= 3.0.0)
106
- railties (3.0.0)
107
- actionpack (= 3.0.0)
108
- activesupport (= 3.0.0)
109
- rake (>= 0.8.4)
110
- thor (~> 0.14.0)
111
- rake (0.8.7)
112
- rubyzip (0.9.4)
113
- selenium-webdriver (0.1.1)
114
- childprocess (= 0.1.4)
115
- ffi (~> 0.6.3)
116
- json_pure
117
- rubyzip
118
- shoulda (2.11.3)
119
- sqlite3-ruby (1.3.1)
120
- term-ansicolor (1.0.5)
121
- thor (0.14.0)
122
- treetop (1.4.8)
123
- polyglot (>= 0.3.1)
124
- tzinfo (0.3.23)
125
- xpath (0.1.2)
126
- nokogiri (~> 1.3)
127
-
128
- PLATFORMS
129
- ruby
130
-
131
- DEPENDENCIES
132
- capybara (= 0.4.0)
133
- clearance!
134
- cucumber (= 0.10.0)
135
- cucumber-rails (= 0.3.2)
136
- factory_girl_rails (= 1.0)
137
- formtastic (= 1.1.0.beta)
138
- launchy (= 0.3.7)
139
- mocha (= 0.9.8)
140
- nokogiri (= 1.4.1)
141
- rails (= 3.0.0)
142
- shoulda (= 2.11.3)
143
- sqlite3-ruby
@@ -1,244 +0,0 @@
1
- == Welcome to Rails
2
-
3
- Rails is a web-application framework that includes everything needed to create
4
- database-backed web applications according to the Model-View-Control pattern.
5
-
6
- This pattern splits the view (also called the presentation) into "dumb" templates
7
- that are primarily responsible for inserting pre-built data in between HTML tags.
8
- The model contains the "smart" domain objects (such as Account, Product, Person,
9
- Post) that holds all the business logic and knows how to persist themselves to
10
- a database. The controller handles the incoming requests (such as Save New Account,
11
- Update Product, Show Post) by manipulating the model and directing data to the view.
12
-
13
- In Rails, the model is handled by what's called an object-relational mapping
14
- layer entitled Active Record. This layer allows you to present the data from
15
- database rows as objects and embellish these data objects with business logic
16
- methods. You can read more about Active Record in
17
- link:files/vendor/rails/activerecord/README.html.
18
-
19
- The controller and view are handled by the Action Pack, which handles both
20
- layers by its two parts: Action View and Action Controller. These two layers
21
- are bundled in a single package due to their heavy interdependence. This is
22
- unlike the relationship between the Active Record and Action Pack that is much
23
- more separate. Each of these packages can be used independently outside of
24
- Rails. You can read more about Action Pack in
25
- link:files/vendor/rails/actionpack/README.html.
26
-
27
-
28
- == Getting Started
29
-
30
- 1. At the command prompt, start a new Rails application using the <tt>rails</tt> command
31
- and your application name. Ex: rails myapp
32
- 2. Change directory into myapp and start the web server: <tt>rails server</tt> (run with --help for options)
33
- 3. Go to http://localhost:3000/ and get "Welcome aboard: You're riding the Rails!"
34
- 4. Follow the guidelines to start developing your application
35
-
36
-
37
- == Web Servers
38
-
39
- By default, Rails will try to use Mongrel if it's installed when started with <tt>rails server</tt>, otherwise
40
- Rails will use WEBrick, the webserver that ships with Ruby. But you can also use Rails
41
- with a variety of other web servers.
42
-
43
- Mongrel is a Ruby-based webserver with a C component (which requires compilation) that is
44
- suitable for development and deployment of Rails applications. If you have Ruby Gems installed,
45
- getting up and running with mongrel is as easy as: <tt>gem install mongrel</tt>.
46
- More info at: http://mongrel.rubyforge.org
47
-
48
- Say other Ruby web servers like Thin and Ebb or regular web servers like Apache or LiteSpeed or
49
- Lighttpd or IIS. The Ruby web servers are run through Rack and the latter can either be setup to use
50
- FCGI or proxy to a pack of Mongrels/Thin/Ebb servers.
51
-
52
- == Apache .htaccess example for FCGI/CGI
53
-
54
- # General Apache options
55
- AddHandler fastcgi-script .fcgi
56
- AddHandler cgi-script .cgi
57
- Options +FollowSymLinks +ExecCGI
58
-
59
- # If you don't want Rails to look in certain directories,
60
- # use the following rewrite rules so that Apache won't rewrite certain requests
61
- #
62
- # Example:
63
- # RewriteCond %{REQUEST_URI} ^/notrails.*
64
- # RewriteRule .* - [L]
65
-
66
- # Redirect all requests not available on the filesystem to Rails
67
- # By default the cgi dispatcher is used which is very slow
68
- #
69
- # For better performance replace the dispatcher with the fastcgi one
70
- #
71
- # Example:
72
- # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
73
- RewriteEngine On
74
-
75
- # If your Rails application is accessed via an Alias directive,
76
- # then you MUST also set the RewriteBase in this htaccess file.
77
- #
78
- # Example:
79
- # Alias /myrailsapp /path/to/myrailsapp/public
80
- # RewriteBase /myrailsapp
81
-
82
- RewriteRule ^$ index.html [QSA]
83
- RewriteRule ^([^.]+)$ $1.html [QSA]
84
- RewriteCond %{REQUEST_FILENAME} !-f
85
- RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
86
-
87
- # In case Rails experiences terminal errors
88
- # Instead of displaying this message you can supply a file here which will be rendered instead
89
- #
90
- # Example:
91
- # ErrorDocument 500 /500.html
92
-
93
- ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
94
-
95
-
96
- == Debugging Rails
97
-
98
- Sometimes your application goes wrong. Fortunately there are a lot of tools that
99
- will help you debug it and get it back on the rails.
100
-
101
- First area to check is the application log files. Have "tail -f" commands running
102
- on the server.log and development.log. Rails will automatically display debugging
103
- and runtime information to these files. Debugging info will also be shown in the
104
- browser on requests from 127.0.0.1.
105
-
106
- You can also log your own messages directly into the log file from your code using
107
- the Ruby logger class from inside your controllers. Example:
108
-
109
- class WeblogController < ActionController::Base
110
- def destroy
111
- @weblog = Weblog.find(params[:id])
112
- @weblog.destroy
113
- logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
114
- end
115
- end
116
-
117
- The result will be a message in your log file along the lines of:
118
-
119
- Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1
120
-
121
- More information on how to use the logger is at http://www.ruby-doc.org/core/
122
-
123
- Also, Ruby documentation can be found at http://www.ruby-lang.org/ including:
124
-
125
- * The Learning Ruby (Pickaxe) Book: http://www.ruby-doc.org/docs/ProgrammingRuby/
126
- * Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
127
-
128
- These two online (and free) books will bring you up to speed on the Ruby language
129
- and also on programming in general.
130
-
131
-
132
- == Debugger
133
-
134
- Debugger support is available through the debugger command when you start your Mongrel or
135
- Webrick server with --debugger. This means that you can break out of execution at any point
136
- in the code, investigate and change the model, AND then resume execution!
137
- You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
138
- Example:
139
-
140
- class WeblogController < ActionController::Base
141
- def index
142
- @posts = Post.find(:all)
143
- debugger
144
- end
145
- end
146
-
147
- So the controller will accept the action, run the first line, then present you
148
- with a IRB prompt in the server window. Here you can do things like:
149
-
150
- >> @posts.inspect
151
- => "[#<Post:0x14a6be8 @attributes={\"title\"=>nil, \"body\"=>nil, \"id\"=>\"1\"}>,
152
- #<Post:0x14a6620 @attributes={\"title\"=>\"Rails you know!\", \"body\"=>\"Only ten..\", \"id\"=>\"2\"}>]"
153
- >> @posts.first.title = "hello from a debugger"
154
- => "hello from a debugger"
155
-
156
- ...and even better is that you can examine how your runtime objects actually work:
157
-
158
- >> f = @posts.first
159
- => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
160
- >> f.
161
- Display all 152 possibilities? (y or n)
162
-
163
- Finally, when you're ready to resume execution, you enter "cont"
164
-
165
-
166
- == Console
167
-
168
- You can interact with the domain model by starting the console through <tt>rails console</tt>.
169
- Here you'll have all parts of the application configured, just like it is when the
170
- application is running. You can inspect domain models, change values, and save to the
171
- database. Starting the script without arguments will launch it in the development environment.
172
- Passing an argument will specify a different environment, like <tt>rails console production</tt>.
173
-
174
- To reload your controllers and models after launching the console run <tt>reload!</tt>
175
-
176
- == dbconsole
177
-
178
- You can go to the command line of your database directly through <tt>rails dbconsole</tt>.
179
- You would be connected to the database with the credentials defined in database.yml.
180
- Starting the script without arguments will connect you to the development database. Passing an
181
- argument will connect you to a different database, like <tt>rails dbconsole production</tt>.
182
- Currently works for mysql, postgresql and sqlite.
183
-
184
- == Description of Contents
185
-
186
- app
187
- Holds all the code that's specific to this particular application.
188
-
189
- app/controllers
190
- Holds controllers that should be named like weblogs_controller.rb for
191
- automated URL mapping. All controllers should descend from ApplicationController
192
- which itself descends from ActionController::Base.
193
-
194
- app/models
195
- Holds models that should be named like post.rb.
196
- Most models will descend from ActiveRecord::Base.
197
-
198
- app/views
199
- Holds the template files for the view that should be named like
200
- weblogs/index.html.erb for the WeblogsController#index action. All views use eRuby
201
- syntax.
202
-
203
- app/views/layouts
204
- Holds the template files for layouts to be used with views. This models the common
205
- header/footer method of wrapping views. In your views, define a layout using the
206
- <tt>layout :default</tt> and create a file named default.html.erb. Inside default.html.erb,
207
- call <% yield %> to render the view using this layout.
208
-
209
- app/helpers
210
- Holds view helpers that should be named like weblogs_helper.rb. These are generated
211
- for you automatically when using rails generate for controllers. Helpers can be used to
212
- wrap functionality for your views into methods.
213
-
214
- config
215
- Configuration files for the Rails environment, the routing map, the database, and other dependencies.
216
-
217
- db
218
- Contains the database schema in schema.rb. db/migrate contains all
219
- the sequence of Migrations for your schema.
220
-
221
- doc
222
- This directory is where your application documentation will be stored when generated
223
- using <tt>rake doc:app</tt>
224
-
225
- lib
226
- Application specific libraries. Basically, any kind of custom code that doesn't
227
- belong under controllers, models, or helpers. This directory is in the load path.
228
-
229
- public
230
- The directory available for the web server. Contains subdirectories for images, stylesheets,
231
- and javascripts. Also contains the dispatchers and the default HTML files. This should be
232
- set as the DOCUMENT_ROOT of your web server.
233
-
234
- script
235
- Helper scripts for automation and generation.
236
-
237
- test
238
- Unit and functional tests along with fixtures. When using the rails generate command, template
239
- test files will be generated for you and placed in this directory.
240
-
241
- vendor
242
- External libraries that the application depends on. Also includes the plugins subdirectory.
243
- If the app has frozen rails, those gems also go here, under vendor/rails/.
244
- This directory is in the load path.
@@ -1,10 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- require 'rake'
7
- require 'rake/testtask'
8
- require 'rake/rdoctask'
9
-
10
- Rails3Root::Application.load_tasks
@@ -1,10 +0,0 @@
1
- class AccountsController < ApplicationController
2
- before_filter :authenticate
3
-
4
- def edit
5
- end
6
-
7
- def create
8
- redirect_to edit_account_path
9
- end
10
- end
@@ -1,6 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- helper :all
3
- protect_from_forgery
4
- include Clearance::Authentication
5
- before_filter :authenticate
6
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,3 +0,0 @@
1
- class User < ActiveRecord::Base
2
- include Clearance::User
3
- end
@@ -1,21 +0,0 @@
1
- <h2>Change your password</h2>
2
-
3
- <p>
4
- Your password has been reset. Choose a new password below.
5
- </p>
6
-
7
- <%= semantic_form_for(:user,
8
- :url => user_password_path(@user, :token => @user.confirmation_token),
9
- :html => { :method => :put }) do |form| %>
10
- <%= form.error_messages %>
11
- <%= form.inputs do -%>
12
- <%= form.input :password, :as => :password,
13
- :label => "Choose password" %>
14
- <%= form.input :password_confirmation, :as => :password,
15
- :label => "Confirm password" %>
16
- <% end -%>
17
- <%= form.buttons do -%>
18
- <%= form.commit_button "Save this password" %>
19
- <% end -%>
20
- <% end %>
21
-