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,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,24 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Rails3Root</title>
5
- <%= stylesheet_link_tag :all %>
6
- <%= javascript_include_tag :defaults %>
7
- <%= csrf_meta_tag %>
8
- </head>
9
- <body>
10
- <div id="header">
11
- <% if signed_in? -%>
12
- <%= link_to "Sign out", sign_out_path, :method => :delete %>
13
- <% else -%>
14
- <%= link_to "Sign in", sign_in_path %>
15
- <% end -%>
16
- </div>
17
- <div id="flash">
18
- <% flash.each do |key, value| -%>
19
- <div id="flash_<%= key %>"><%=h value %></div>
20
- <% end %>
21
- </div>
22
- <%= yield %>
23
- </body>
24
- </html>
@@ -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
-
@@ -1,15 +0,0 @@
1
- <h2>Reset your password</h2>
2
-
3
- <p>
4
- We will email you a link to reset your password.
5
- </p>
6
-
7
- <%= semantic_form_for :password, :url => passwords_path do |form| -%>
8
- <%= form.inputs do -%>
9
- <%= form.input :email, :label => "Email address" %>
10
- <% end -%>
11
- <%= form.buttons do -%>
12
- <%= form.commit_button "Reset password" %>
13
- <% end -%>
14
- <% end -%>
15
-
@@ -1,21 +0,0 @@
1
- <h2>Sign in</h2>
2
-
3
- <%= semantic_form_for :session, :url => session_path do |form| %>
4
- <%= form.inputs do %>
5
- <%= form.input :email %>
6
- <%= form.input :password, :as => :password %>
7
- <% end %>
8
- <%= form.buttons do %>
9
- <%= form.commit_button "Sign in" %>
10
- <% end %>
11
- <% end %>
12
-
13
- <ul>
14
- <li>
15
- <%= link_to "Sign up", sign_up_path %>
16
- </li>
17
- <li>
18
- <%= link_to "Forgot password?", new_password_path %>
19
- </li>
20
- </ul>
21
-
@@ -1,6 +0,0 @@
1
- <%= form.inputs do %>
2
- <%= form.input :email %>
3
- <%= form.input :password %>
4
- <%= form.input :password_confirmation, :label => "Confirm password" %>
5
- <% end %>
6
-
@@ -1,10 +0,0 @@
1
- <h2>Sign up</h2>
2
-
3
- <%= semantic_form_for @user do |form| %>
4
- <%= form.error_messages %>
5
- <%= render :partial => "/users/inputs", :locals => { :form => form } %>
6
- <%= form.buttons do %>
7
- <%= form.commit_button "Sign up" %>
8
- <% end %>
9
- <% end %>
10
-
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails3Root::Application
@@ -1,46 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- # If you have a Gemfile, require the gems listed there, including any gems
6
- # you've limited to :test, :development, or :production.
7
- Bundler.require(:default, Rails.env) if defined?(Bundler)
8
-
9
- module Rails3Root
10
- class Application < Rails::Application
11
- # Settings in config/environments/* take precedence over those specified here.
12
- # Application configuration should go into files in config/initializers
13
- # -- all .rb files in that directory are automatically loaded.
14
-
15
- # Add additional load paths for your own custom dirs
16
- # config.load_paths += %W( #{config.root}/extras )
17
-
18
- # Only load the plugins named here, in the order given (default is alphabetical).
19
- # :all can be used as a placeholder for all plugins not explicitly named
20
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
21
-
22
- # Activate observers that should always be running
23
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
24
-
25
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
26
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
27
- # config.time_zone = 'Central Time (US & Canada)'
28
-
29
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
30
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
31
- # config.i18n.default_locale = :de
32
-
33
- # Configure generators values. Many other options are available, be sure to check the documentation.
34
- # config.generators do |g|
35
- # g.orm :active_record
36
- # g.template_engine :erb
37
- # g.test_framework :test_unit, :fixture => true
38
- # end
39
-
40
- # Configure the default encoding used in templates for Ruby 1.9.
41
- config.encoding = "utf-8"
42
-
43
- # Configure sensitive parameters which will be filtered from the log file.
44
- config.filter_parameters += [:password]
45
- end
46
- end
@@ -1,6 +0,0 @@
1
- require 'rubygems'
2
- # Set up gems listed in the Gemfile.
3
- if File.exist?(File.expand_path('../../Gemfile', __FILE__))
4
- require 'bundler'
5
- Bundler.setup
6
- end
@@ -1,8 +0,0 @@
1
- <%
2
- rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3
- rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
4
- std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip"
5
- %>
6
- default: <%= std_opts %> features
7
- wip: --tags @wip:3 --wip features
8
- rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3-ruby (not necessary on OS X Leopard)
3
- development:
4
- adapter: sqlite3
5
- database: db/development.sqlite3
6
- pool: 5
7
- timeout: 5000
8
-
9
- # Warning: The database defined as "test" will be erased and
10
- # re-generated from your development database when you run "rake".
11
- # Do not set this db to the same as development or production.
12
- test: &test
13
- adapter: sqlite3
14
- database: db/test.sqlite3
15
- pool: 5
16
- timeout: 5000
17
-
18
- production:
19
- adapter: sqlite3
20
- database: db/production.sqlite3
21
- pool: 5
22
- timeout: 5000
23
-
24
- cucumber:
25
- <<: *test
@@ -1,7 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Rails3Root::Application.initialize!
6
-
7
- ActionMailer::Base.default_url_options = { :host => 'localhost:3000' }
@@ -1,21 +0,0 @@
1
- Rails3Root::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the webserver when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- config.action_view.debug_rjs = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Don't care if the mailer can't send
18
- config.action_mailer.raise_delivery_errors = false
19
-
20
- config.active_support.deprecation = :stderr
21
- end
@@ -1,42 +0,0 @@
1
- Rails3Root::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # The production environment is meant for finished, "live" apps.
5
- # Code is not reloaded between requests
6
- config.cache_classes = true
7
-
8
- # Full error reports are disabled and caching is turned on
9
- config.consider_all_requests_local = false
10
- config.action_controller.perform_caching = true
11
-
12
- # Specifies the header that your server uses for sending files
13
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
-
15
- # For nginx:
16
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
-
18
- # If you have no front-end server that supports something like X-Sendfile,
19
- # just comment this out and Rails will serve the files
20
-
21
- # See everything in the log (default is :info)
22
- # config.log_level = :debug
23
-
24
- # Use a different logger for distributed setups
25
- # config.logger = SyslogLogger.new
26
-
27
- # Use a different cache store in production
28
- # config.cache_store = :mem_cache_store
29
-
30
- # Disable Rails's static asset server
31
- # In production, Apache or nginx will already do this
32
- config.serve_static_assets = false
33
-
34
- # Enable serving of images, stylesheets, and javascripts from an asset server
35
- # config.action_controller.asset_host = "http://assets.example.com"
36
-
37
- # Disable delivery errors, bad email addresses will be ignored
38
- # config.action_mailer.raise_delivery_errors = false
39
-
40
- # Enable threaded mode
41
- # config.threadsafe!
42
- end
@@ -1,34 +0,0 @@
1
- Rails3Root::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
12
-
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = false
19
-
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- config.active_support.deprecation = :stderr
34
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,3 +0,0 @@
1
- Clearance.configure do |config|
2
- config.mailer_sender = 'donotreply@example.com'
3
- end
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Rails.application.config.secret_token = 'b0a71f62c3707fe6874a435909a597203110c418dc3022773b5131e2a26a99b304010089bd3ebb92e206b3b94a883aeefa571a8a52a45160f8663d163786610c'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, :key => '_rails3_root_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rake db:sessions:create")
8
- # Rails.application.config.session_store :active_record_store
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,61 +0,0 @@
1
- Rails3Root::Application.routes.draw do
2
- resource :account
3
- root :to => 'accounts#edit'
4
-
5
- # The priority is based upon order of creation:
6
- # first created -> highest priority.
7
-
8
- # Sample of regular route:
9
- # match 'products/:id' => 'catalog#view'
10
- # Keep in mind you can assign values other than :controller and :action
11
-
12
- # Sample of named route:
13
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
14
- # This route can be invoked with purchase_url(:id => product.id)
15
-
16
- # Sample resource route (maps HTTP verbs to controller actions automatically):
17
- # resources :products
18
-
19
- # Sample resource route with options:
20
- # resources :products do
21
- # member do
22
- # get :short
23
- # post :toggle
24
- # end
25
- #
26
- # collection do
27
- # get :sold
28
- # end
29
- # end
30
-
31
- # Sample resource route with sub-resources:
32
- # resources :products do
33
- # resources :comments, :sales
34
- # resource :seller
35
- # end
36
-
37
- # Sample resource route with more complex sub-resources
38
- # resources :products do
39
- # resources :comments
40
- # resources :sales do
41
- # get :recent, :on => :collection
42
- # end
43
- # end
44
-
45
- # Sample resource route within a namespace:
46
- # namespace :admin do
47
- # # Directs /admin/products/* to Admin::ProductsController
48
- # # (app/controllers/admin/products_controller.rb)
49
- # resources :products
50
- # end
51
-
52
- # You can have the root of your site routed with "root"
53
- # just remember to delete public/index.html.
54
- # root :to => "welcome#index"
55
-
56
- # See how all your routes lay out with "rake routes"
57
-
58
- # This is a legacy wild controller route that's not recommended for RESTful applications.
59
- # Note: This route will make all actions in every controller accessible via GET requests.
60
- # match ':controller(/:action(/:id(.:format)))'
61
- end