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.
- data/CHANGELOG.md +9 -0
- data/Gemfile +21 -0
- data/Gemfile.lock +171 -0
- data/README.md +18 -30
- data/Rakefile +14 -123
- data/VERSION +1 -1
- data/{spec/rails_root/app → app}/views/layouts/application.html.erb +0 -2
- data/app/views/passwords/edit.html.erb +3 -4
- data/app/views/passwords/new.html.erb +2 -2
- data/{lib/rails/generators/clearance_views_templates/formtastic/erb → app/views}/users/_inputs.html.erb +0 -0
- data/lib/clearance/user.rb +11 -9
- data/lib/generators/clearance/features/features_generator.rb +18 -0
- data/lib/generators/clearance/install/install_generator.rb +46 -0
- data/lib/generators/clearance/install/templates/README +22 -0
- data/lib/{rails/generators/clearance_templates → generators/clearance/install/templates}/clearance.rb +0 -0
- data/lib/{rails/generators/clearance_templates/migrations/update_users.rb → generators/clearance/install/templates/db/migrate/upgrade_clearance_to_diesel.rb} +1 -1
- data/lib/{rails/generators/clearance_templates → generators/clearance/install/templates}/user.rb +0 -0
- data/lib/generators/clearance/views/views_generator.rb +8 -0
- data/test/controllers/sessions_controller_test.rb +0 -2
- data/test/controllers/users_controller_test.rb +0 -2
- data/{lib/rails/generators/clearance_templates → test}/factories.rb +1 -1
- data/test/models/user_test.rb +23 -0
- data/test/test_helper.rb +18 -8
- metadata +38 -478
- data/lib/rails/generators/clearance_features_generator.rb +0 -20
- data/lib/rails/generators/clearance_features_templates/features/password_reset.feature +0 -40
- data/lib/rails/generators/clearance_features_templates/features/sign_in.feature +0 -28
- data/lib/rails/generators/clearance_features_templates/features/sign_out.feature +0 -16
- data/lib/rails/generators/clearance_features_templates/features/sign_up.feature +0 -21
- data/lib/rails/generators/clearance_features_templates/features/step_definitions/clearance_steps.rb +0 -109
- data/lib/rails/generators/clearance_generator.rb +0 -72
- data/lib/rails/generators/clearance_templates/README +0 -24
- data/lib/rails/generators/clearance_templates/migrations/create_users.rb +0 -19
- data/lib/rails/generators/clearance_views_generator.rb +0 -14
- data/lib/rails/generators/clearance_views_templates/formtastic/erb/passwords/edit.html.erb +0 -21
- data/lib/rails/generators/clearance_views_templates/formtastic/erb/passwords/new.html.erb +0 -15
- data/lib/rails/generators/clearance_views_templates/formtastic/erb/sessions/new.html.erb +0 -21
- data/lib/rails/generators/clearance_views_templates/formtastic/erb/users/new.html.erb +0 -10
- data/spec/rails_root/Gemfile +0 -17
- data/spec/rails_root/Gemfile.lock +0 -143
- data/spec/rails_root/README +0 -244
- data/spec/rails_root/Rakefile +0 -10
- data/spec/rails_root/app/controllers/accounts_controller.rb +0 -10
- data/spec/rails_root/app/controllers/application_controller.rb +0 -6
- data/spec/rails_root/app/helpers/application_helper.rb +0 -2
- data/spec/rails_root/app/models/user.rb +0 -3
- data/spec/rails_root/app/views/accounts/edit.html.erb +0 -0
- data/spec/rails_root/app/views/passwords/edit.html.erb +0 -21
- data/spec/rails_root/app/views/passwords/new.html.erb +0 -15
- data/spec/rails_root/app/views/sessions/new.html.erb +0 -21
- data/spec/rails_root/app/views/users/_inputs.html.erb +0 -6
- data/spec/rails_root/app/views/users/new.html.erb +0 -10
- data/spec/rails_root/config.ru +0 -4
- data/spec/rails_root/config/application.rb +0 -46
- data/spec/rails_root/config/boot.rb +0 -6
- data/spec/rails_root/config/cucumber.yml +0 -8
- data/spec/rails_root/config/database.yml +0 -25
- data/spec/rails_root/config/environment.rb +0 -7
- data/spec/rails_root/config/environments/development.rb +0 -21
- data/spec/rails_root/config/environments/production.rb +0 -42
- data/spec/rails_root/config/environments/test.rb +0 -34
- data/spec/rails_root/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails_root/config/initializers/clearance.rb +0 -3
- data/spec/rails_root/config/initializers/inflections.rb +0 -10
- data/spec/rails_root/config/initializers/mime_types.rb +0 -5
- data/spec/rails_root/config/initializers/secret_token.rb +0 -7
- data/spec/rails_root/config/initializers/session_store.rb +0 -8
- data/spec/rails_root/config/locales/en.yml +0 -5
- data/spec/rails_root/config/routes.rb +0 -61
- data/spec/rails_root/db/development.sqlite3 +0 -0
- data/spec/rails_root/db/migrate/20110209234521_clearance_create_users.rb +0 -19
- data/spec/rails_root/db/schema.rb +0 -28
- data/spec/rails_root/db/test.sqlite3 +0 -0
- data/spec/rails_root/doc/README_FOR_APP +0 -2
- data/spec/rails_root/features/password_reset.feature +0 -40
- data/spec/rails_root/features/sign_in.feature +0 -28
- data/spec/rails_root/features/sign_out.feature +0 -16
- data/spec/rails_root/features/sign_up.feature +0 -21
- data/spec/rails_root/features/step_definitions/clearance_steps.rb +0 -109
- data/spec/rails_root/features/step_definitions/web_steps.rb +0 -219
- data/spec/rails_root/features/support/env.rb +0 -57
- data/spec/rails_root/features/support/paths.rb +0 -45
- data/spec/rails_root/lib/tasks/cucumber.rake +0 -53
- data/spec/rails_root/log/development.log +0 -536
- data/spec/rails_root/log/test.log +0 -7600
- data/spec/rails_root/public/404.html +0 -26
- data/spec/rails_root/public/422.html +0 -26
- data/spec/rails_root/public/500.html +0 -26
- data/spec/rails_root/public/favicon.ico +0 -0
- data/spec/rails_root/public/images/rails.png +0 -0
- data/spec/rails_root/public/javascripts/application.js +0 -2
- data/spec/rails_root/public/javascripts/controls.js +0 -965
- data/spec/rails_root/public/javascripts/dragdrop.js +0 -974
- data/spec/rails_root/public/javascripts/effects.js +0 -1123
- data/spec/rails_root/public/javascripts/prototype.js +0 -4874
- data/spec/rails_root/public/javascripts/rails.js +0 -118
- data/spec/rails_root/public/robots.txt +0 -5
- data/spec/rails_root/script/cucumber +0 -10
- data/spec/rails_root/script/rails +0 -9
- data/spec/rails_root/test/factories/clearance.rb +0 -13
- data/spec/rails_root/test/functional/accounts_controller_test.rb +0 -22
- data/spec/rails_root/test/performance/browsing_test.rb +0 -9
- data/spec/rails_root/test/test_helper.rb +0 -13
- data/spec/rails_root/vendor/Gemfile +0 -17
- data/spec/rails_root/vendor/Gemfile.lock +0 -143
- data/spec/rails_root/vendor/README +0 -244
- data/spec/rails_root/vendor/Rakefile +0 -10
- data/spec/rails_root/vendor/app/controllers/accounts_controller.rb +0 -10
- data/spec/rails_root/vendor/app/controllers/application_controller.rb +0 -6
- data/spec/rails_root/vendor/app/helpers/application_helper.rb +0 -2
- data/spec/rails_root/vendor/app/models/user.rb +0 -3
- data/spec/rails_root/vendor/app/views/accounts/edit.html.erb +0 -0
- data/spec/rails_root/vendor/app/views/layouts/application.html.erb +0 -24
- data/spec/rails_root/vendor/app/views/passwords/edit.html.erb +0 -21
- data/spec/rails_root/vendor/app/views/passwords/new.html.erb +0 -15
- data/spec/rails_root/vendor/app/views/sessions/new.html.erb +0 -21
- data/spec/rails_root/vendor/app/views/users/_inputs.html.erb +0 -6
- data/spec/rails_root/vendor/app/views/users/new.html.erb +0 -10
- data/spec/rails_root/vendor/config.ru +0 -4
- data/spec/rails_root/vendor/config/application.rb +0 -46
- data/spec/rails_root/vendor/config/boot.rb +0 -6
- data/spec/rails_root/vendor/config/cucumber.yml +0 -8
- data/spec/rails_root/vendor/config/database.yml +0 -25
- data/spec/rails_root/vendor/config/environment.rb +0 -7
- data/spec/rails_root/vendor/config/environments/development.rb +0 -21
- data/spec/rails_root/vendor/config/environments/production.rb +0 -42
- data/spec/rails_root/vendor/config/environments/test.rb +0 -34
- data/spec/rails_root/vendor/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails_root/vendor/config/initializers/clearance.rb +0 -3
- data/spec/rails_root/vendor/config/initializers/inflections.rb +0 -10
- data/spec/rails_root/vendor/config/initializers/mime_types.rb +0 -5
- data/spec/rails_root/vendor/config/initializers/secret_token.rb +0 -7
- data/spec/rails_root/vendor/config/initializers/session_store.rb +0 -8
- data/spec/rails_root/vendor/config/locales/en.yml +0 -5
- data/spec/rails_root/vendor/config/routes.rb +0 -61
- data/spec/rails_root/vendor/db/development.sqlite3 +0 -0
- data/spec/rails_root/vendor/db/migrate/20101220184900_clearance_create_users.rb +0 -20
- data/spec/rails_root/vendor/db/schema.rb +0 -29
- data/spec/rails_root/vendor/db/test.sqlite3 +0 -0
- data/spec/rails_root/vendor/doc/README_FOR_APP +0 -2
- data/spec/rails_root/vendor/features/password_reset.feature +0 -33
- data/spec/rails_root/vendor/features/sign_in.feature +0 -35
- data/spec/rails_root/vendor/features/sign_out.feature +0 -15
- data/spec/rails_root/vendor/features/sign_up.feature +0 -45
- data/spec/rails_root/vendor/features/step_definitions/clearance_steps.rb +0 -138
- data/spec/rails_root/vendor/features/step_definitions/web_steps.rb +0 -219
- data/spec/rails_root/vendor/features/support/env.rb +0 -57
- data/spec/rails_root/vendor/features/support/paths.rb +0 -45
- data/spec/rails_root/vendor/lib/tasks/cucumber.rake +0 -53
- data/spec/rails_root/vendor/log/development.log +0 -663
- data/spec/rails_root/vendor/log/test.log +0 -22745
- data/spec/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE +0 -20
- data/spec/rails_root/vendor/plugins/dynamic_form/README +0 -13
- data/spec/rails_root/vendor/plugins/dynamic_form/Rakefile +0 -10
- data/spec/rails_root/vendor/plugins/dynamic_form/init.rb +0 -5
- data/spec/rails_root/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb +0 -300
- data/spec/rails_root/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml +0 -8
- data/spec/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb +0 -42
- data/spec/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_test.rb +0 -370
- data/spec/rails_root/vendor/plugins/dynamic_form/test/test_helper.rb +0 -9
- data/spec/rails_root/vendor/public/404.html +0 -26
- data/spec/rails_root/vendor/public/422.html +0 -26
- data/spec/rails_root/vendor/public/500.html +0 -26
- data/spec/rails_root/vendor/public/favicon.ico +0 -0
- data/spec/rails_root/vendor/public/images/rails.png +0 -0
- data/spec/rails_root/vendor/public/javascripts/application.js +0 -2
- data/spec/rails_root/vendor/public/javascripts/controls.js +0 -965
- data/spec/rails_root/vendor/public/javascripts/dragdrop.js +0 -974
- data/spec/rails_root/vendor/public/javascripts/effects.js +0 -1123
- data/spec/rails_root/vendor/public/javascripts/prototype.js +0 -4874
- data/spec/rails_root/vendor/public/javascripts/rails.js +0 -118
- data/spec/rails_root/vendor/public/robots.txt +0 -5
- data/spec/rails_root/vendor/script/cucumber +0 -10
- data/spec/rails_root/vendor/script/rails +0 -9
- data/spec/rails_root/vendor/test/factories/clearance.rb +0 -13
- data/spec/rails_root/vendor/test/functional/accounts_controller_test.rb +0 -22
- data/spec/rails_root/vendor/test/performance/browsing_test.rb +0 -9
- data/spec/rails_root/vendor/test/test_helper.rb +0 -13
- data/spec/rails_root/vendor/vendor/plugins/dynamic_form/MIT-LICENSE +0 -20
- data/spec/rails_root/vendor/vendor/plugins/dynamic_form/README +0 -13
- data/spec/rails_root/vendor/vendor/plugins/dynamic_form/Rakefile +0 -10
- data/spec/rails_root/vendor/vendor/plugins/dynamic_form/init.rb +0 -5
- data/spec/rails_root/vendor/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb +0 -300
- data/spec/rails_root/vendor/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml +0 -8
- data/spec/rails_root/vendor/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb +0 -42
- data/spec/rails_root/vendor/vendor/plugins/dynamic_form/test/dynamic_form_test.rb +0 -370
- data/spec/rails_root/vendor/vendor/plugins/dynamic_form/test/test_helper.rb +0 -9
- data/test/rails_root/Gemfile +0 -17
- data/test/rails_root/Gemfile.lock +0 -145
- data/test/rails_root/README +0 -244
- data/test/rails_root/Rakefile +0 -10
- data/test/rails_root/app/controllers/accounts_controller.rb +0 -10
- data/test/rails_root/app/controllers/application_controller.rb +0 -6
- data/test/rails_root/app/helpers/application_helper.rb +0 -2
- data/test/rails_root/app/models/user.rb +0 -3
- data/test/rails_root/app/views/accounts/edit.html.erb +0 -0
- data/test/rails_root/app/views/layouts/application.html.erb +0 -24
- data/test/rails_root/app/views/passwords/edit.html.erb +0 -21
- data/test/rails_root/app/views/passwords/new.html.erb +0 -15
- data/test/rails_root/app/views/sessions/new.html.erb +0 -21
- data/test/rails_root/app/views/users/_inputs.html.erb +0 -6
- data/test/rails_root/app/views/users/new.html.erb +0 -10
- data/test/rails_root/config.ru +0 -4
- data/test/rails_root/config/application.rb +0 -46
- data/test/rails_root/config/boot.rb +0 -6
- data/test/rails_root/config/cucumber.yml +0 -8
- data/test/rails_root/config/database.yml +0 -25
- data/test/rails_root/config/environment.rb +0 -7
- data/test/rails_root/config/environments/development.rb +0 -21
- data/test/rails_root/config/environments/production.rb +0 -42
- data/test/rails_root/config/environments/test.rb +0 -34
- data/test/rails_root/config/initializers/backtrace_silencers.rb +0 -7
- data/test/rails_root/config/initializers/clearance.rb +0 -3
- data/test/rails_root/config/initializers/inflections.rb +0 -10
- data/test/rails_root/config/initializers/mime_types.rb +0 -5
- data/test/rails_root/config/initializers/secret_token.rb +0 -7
- data/test/rails_root/config/initializers/session_store.rb +0 -8
- data/test/rails_root/config/locales/en.yml +0 -5
- data/test/rails_root/config/routes.rb +0 -61
- data/test/rails_root/db/development.sqlite3 +0 -0
- data/test/rails_root/db/migrate/20110209234101_clearance_create_users.rb +0 -19
- data/test/rails_root/db/schema.rb +0 -28
- data/test/rails_root/db/test.sqlite3 +0 -0
- data/test/rails_root/doc/README_FOR_APP +0 -2
- data/test/rails_root/features/password_reset.feature +0 -40
- data/test/rails_root/features/sign_in.feature +0 -28
- data/test/rails_root/features/sign_out.feature +0 -16
- data/test/rails_root/features/sign_up.feature +0 -21
- data/test/rails_root/features/step_definitions/clearance_steps.rb +0 -109
- data/test/rails_root/features/step_definitions/web_steps.rb +0 -219
- data/test/rails_root/features/support/env.rb +0 -57
- data/test/rails_root/features/support/paths.rb +0 -45
- data/test/rails_root/lib/tasks/cucumber.rake +0 -53
- data/test/rails_root/log/development.log +0 -938
- data/test/rails_root/log/test.log +0 -20303
- data/test/rails_root/public/404.html +0 -26
- data/test/rails_root/public/422.html +0 -26
- data/test/rails_root/public/500.html +0 -26
- data/test/rails_root/public/favicon.ico +0 -0
- data/test/rails_root/public/images/rails.png +0 -0
- data/test/rails_root/public/javascripts/application.js +0 -2
- data/test/rails_root/public/javascripts/controls.js +0 -965
- data/test/rails_root/public/javascripts/dragdrop.js +0 -974
- data/test/rails_root/public/javascripts/effects.js +0 -1123
- data/test/rails_root/public/javascripts/prototype.js +0 -4874
- data/test/rails_root/public/javascripts/rails.js +0 -118
- data/test/rails_root/public/robots.txt +0 -5
- data/test/rails_root/script/cucumber +0 -10
- data/test/rails_root/script/rails +0 -9
- data/test/rails_root/test/factories/clearance.rb +0 -13
- data/test/rails_root/test/functional/accounts_controller_test.rb +0 -22
- data/test/rails_root/test/performance/browsing_test.rb +0 -9
- data/test/rails_root/test/test_helper.rb +0 -13
- data/test/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE +0 -20
- data/test/rails_root/vendor/plugins/dynamic_form/README +0 -13
- data/test/rails_root/vendor/plugins/dynamic_form/Rakefile +0 -10
- data/test/rails_root/vendor/plugins/dynamic_form/init.rb +0 -5
- data/test/rails_root/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb +0 -300
- data/test/rails_root/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml +0 -8
- data/test/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb +0 -42
- data/test/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_test.rb +0 -370
- data/test/rails_root/vendor/plugins/dynamic_form/test/test_helper.rb +0 -9
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.2
|
@@ -4,11 +4,10 @@
|
|
4
4
|
Your password has been reset. Choose a new password below.
|
5
5
|
</p>
|
6
6
|
|
7
|
-
<%= error_messages_for :user %>
|
8
|
-
|
9
7
|
<%= form_for(:user,
|
10
|
-
|
11
|
-
|
8
|
+
:url => user_password_path(@user, :token => @user.confirmation_token),
|
9
|
+
:html => { :method => :put }) do |form| %>
|
10
|
+
<%= form.error_messages %>
|
12
11
|
<div class="password_field">
|
13
12
|
<%= form.label :password, "Choose password" %>
|
14
13
|
<%= form.password_field :password %>
|
File without changes
|
data/lib/clearance/user.rb
CHANGED
@@ -119,6 +119,7 @@ module Clearance
|
|
119
119
|
self.password_confirmation = new_password_confirmation
|
120
120
|
if valid?
|
121
121
|
self.confirmation_token = nil
|
122
|
+
generate_remember_token
|
122
123
|
end
|
123
124
|
save
|
124
125
|
end
|
@@ -129,29 +130,30 @@ module Clearance
|
|
129
130
|
Digest::SHA1.hexdigest(string)
|
130
131
|
end
|
131
132
|
|
133
|
+
def encrypt(string)
|
134
|
+
generate_hash("--#{salt}--#{string}--")
|
135
|
+
end
|
136
|
+
|
132
137
|
def initialize_salt
|
133
|
-
if
|
138
|
+
if salt.blank?
|
134
139
|
self.salt = generate_hash("--#{Time.now.utc}--#{password}--#{rand}--")
|
135
140
|
end
|
136
141
|
end
|
137
142
|
|
138
143
|
def encrypt_password
|
139
|
-
|
140
|
-
|
144
|
+
if password.present?
|
145
|
+
self.encrypted_password = encrypt(password)
|
146
|
+
end
|
141
147
|
end
|
142
148
|
|
143
|
-
def
|
144
|
-
|
149
|
+
def generate_remember_token
|
150
|
+
self.remember_token = encrypt("--#{Time.now.utc}--#{encrypted_password}--#{id}--#{rand}--")
|
145
151
|
end
|
146
152
|
|
147
153
|
def generate_confirmation_token
|
148
154
|
self.confirmation_token = encrypt("--#{Time.now.utc}--#{password}--#{rand}--")
|
149
155
|
end
|
150
156
|
|
151
|
-
def generate_remember_token
|
152
|
-
self.remember_token = encrypt("--#{Time.now.utc}--#{encrypted_password}--#{id}--#{rand}--")
|
153
|
-
end
|
154
|
-
|
155
157
|
# Always false. Override to allow other forms of authentication
|
156
158
|
# (username, facebook, etc).
|
157
159
|
# @return [Boolean] true if the email field be left blank for this user
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'diesel/generators/features_base'
|
2
|
+
|
3
|
+
module Clearance
|
4
|
+
module Generators
|
5
|
+
class FeaturesGenerator < Diesel::Generators::FeaturesBase
|
6
|
+
def inject_paths
|
7
|
+
inject_into_file "features/support/paths.rb", :after => "# Add more mappings here.\n" do
|
8
|
+
" when /the sign up page/i
|
9
|
+
sign_up_path
|
10
|
+
when /the sign in page/i
|
11
|
+
sign_in_path
|
12
|
+
when /the password reset request page/i
|
13
|
+
new_password_path\n"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'diesel/generators/install_base'
|
2
|
+
|
3
|
+
module Clearance
|
4
|
+
module Generators
|
5
|
+
class InstallGenerator < Diesel::Generators::InstallBase
|
6
|
+
def install
|
7
|
+
template "clearance.rb", "config/initializers/clearance.rb"
|
8
|
+
|
9
|
+
inject_into_class "app/controllers/application_controller.rb", ApplicationController do
|
10
|
+
" include Clearance::Authentication\n"
|
11
|
+
end
|
12
|
+
|
13
|
+
user_model = "app/models/user.rb"
|
14
|
+
if File.exists?(user_model)
|
15
|
+
inject_into_class user_model, User do
|
16
|
+
"include Clearance::User"
|
17
|
+
end
|
18
|
+
else
|
19
|
+
template "user.rb", user_model
|
20
|
+
end
|
21
|
+
|
22
|
+
if File.exists?("spec")
|
23
|
+
template "test/factories.rb", "spec/factories/clearance.rb"
|
24
|
+
else
|
25
|
+
template "test/factories.rb", "test/factories/clearance.rb"
|
26
|
+
end
|
27
|
+
|
28
|
+
readme "README"
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def migrations
|
34
|
+
if users_table_exists?
|
35
|
+
super.reject { |name| name.include?("create") } + ["db/migrate/upgrade_clearance_to_diesel.rb"]
|
36
|
+
else
|
37
|
+
super
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def users_table_exists?
|
42
|
+
ActiveRecord::Base.connection.table_exists?(:users)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
*******************************************************************************
|
3
|
+
|
4
|
+
Next steps:
|
5
|
+
|
6
|
+
1. Configure the mailer to create full URLs in emails:
|
7
|
+
|
8
|
+
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
9
|
+
|
10
|
+
In production it should be your app's domain name.
|
11
|
+
|
12
|
+
2. Migrate:
|
13
|
+
|
14
|
+
rake db:migrate
|
15
|
+
|
16
|
+
3. Display flashes. For example, in your application layout:
|
17
|
+
|
18
|
+
<% flash.each do |key, value| -%>
|
19
|
+
<div class="flash <%= key %>"><%=h value %></div>
|
20
|
+
<% end -%>
|
21
|
+
|
22
|
+
*******************************************************************************
|
File without changes
|
data/lib/{rails/generators/clearance_templates → generators/clearance/install/templates}/user.rb
RENAMED
File without changes
|
@@ -5,7 +5,7 @@ end
|
|
5
5
|
Factory.define :user do |user|
|
6
6
|
user.email { Factory.next :email }
|
7
7
|
user.password { "password" }
|
8
|
-
user.password_confirmation {
|
8
|
+
user.password_confirmation { |instance| instance.password }
|
9
9
|
end
|
10
10
|
|
11
11
|
Factory.define :email_confirmed_user, :parent => :user do |user|
|
data/test/models/user_test.rb
CHANGED
@@ -218,4 +218,27 @@ class UserTest < ActiveSupport::TestCase
|
|
218
218
|
should allow_value("").for(:password)
|
219
219
|
end
|
220
220
|
|
221
|
+
context "user factory" do
|
222
|
+
should "create a valid user with just an overridden password" do
|
223
|
+
assert Factory.build(:user, :password => "test").valid?
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
context "when user exists before Clearance was installed" do
|
228
|
+
setup do
|
229
|
+
@user = Factory(:user)
|
230
|
+
sql = "update users set salt = NULL, encrypted_password = NULL, remember_token = NULL where id = #{@user.id}"
|
231
|
+
ActiveRecord::Base.connection.update(sql)
|
232
|
+
assert_nil @user.reload.salt
|
233
|
+
assert_nil @user.reload.encrypted_password
|
234
|
+
assert_nil @user.reload.remember_token
|
235
|
+
end
|
236
|
+
|
237
|
+
should "initialize salt, generate remember token, and save encrypted password on update_password" do
|
238
|
+
@user.update_password('password', 'password')
|
239
|
+
assert_not_nil @user.salt
|
240
|
+
assert_not_nil @user.encrypted_password
|
241
|
+
assert_not_nil @user.remember_token
|
242
|
+
end
|
243
|
+
end
|
221
244
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,17 +1,27 @@
|
|
1
|
-
ENV["RAILS_ENV"]
|
2
|
-
|
3
|
-
|
1
|
+
ENV["RAILS_ENV"] ||= "test"
|
2
|
+
|
3
|
+
PROJECT_ROOT = File.expand_path("../..", __FILE__)
|
4
|
+
$LOAD_PATH << File.join(PROJECT_ROOT, "lib")
|
5
|
+
|
6
|
+
require 'rails/all'
|
7
|
+
Bundler.require
|
8
|
+
|
9
|
+
require 'diesel/testing'
|
4
10
|
require 'rails/test_help'
|
5
11
|
|
6
|
-
$: << File.expand_path(File.dirname(__FILE__) + '/..')
|
7
12
|
require 'clearance'
|
13
|
+
require 'clearance/shoulda_macros'
|
8
14
|
|
9
|
-
|
10
|
-
require 'redgreen'
|
11
|
-
rescue LoadError
|
15
|
+
Clearance.configure do |config|
|
12
16
|
end
|
13
17
|
|
14
|
-
|
18
|
+
class ApplicationController < ActionController::Base
|
19
|
+
include Clearance::Authentication
|
20
|
+
end
|
21
|
+
|
22
|
+
class User < ActiveRecord::Base
|
23
|
+
include Clearance::User
|
24
|
+
end
|
15
25
|
|
16
26
|
class ActiveSupport::TestCase
|
17
27
|
self.use_transactional_fixtures = true
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clearance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 10
|
9
|
-
-
|
10
|
-
version: 0.10.
|
9
|
+
- 2
|
10
|
+
version: 0.10.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dan Croak
|
@@ -32,7 +32,7 @@ autorequire:
|
|
32
32
|
bindir: bin
|
33
33
|
cert_chain: []
|
34
34
|
|
35
|
-
date: 2011-02-
|
35
|
+
date: 2011-02-18 00:00:00 -05:00
|
36
36
|
default_executable:
|
37
37
|
dependencies:
|
38
38
|
- !ruby/object:Gem::Dependency
|
@@ -52,9 +52,25 @@ dependencies:
|
|
52
52
|
type: :runtime
|
53
53
|
version_requirements: *id001
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
|
-
name:
|
55
|
+
name: diesel
|
56
56
|
prerelease: false
|
57
57
|
requirement: &id002 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 19
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
- 1
|
66
|
+
- 4
|
67
|
+
version: 0.1.4
|
68
|
+
type: :runtime
|
69
|
+
version_requirements: *id002
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rspec
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
58
74
|
none: false
|
59
75
|
requirements:
|
60
76
|
- - ~>
|
@@ -66,14 +82,14 @@ dependencies:
|
|
66
82
|
- 0
|
67
83
|
version: 1.3.0
|
68
84
|
type: :development
|
69
|
-
version_requirements: *
|
85
|
+
version_requirements: *id003
|
70
86
|
- !ruby/object:Gem::Dependency
|
71
87
|
name: cucumber
|
72
88
|
prerelease: false
|
73
|
-
requirement: &
|
89
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
74
90
|
none: false
|
75
91
|
requirements:
|
76
|
-
- -
|
92
|
+
- - ~>
|
77
93
|
- !ruby/object:Gem::Version
|
78
94
|
hash: 55
|
79
95
|
segments:
|
@@ -82,7 +98,7 @@ dependencies:
|
|
82
98
|
- 0
|
83
99
|
version: 0.10.0
|
84
100
|
type: :development
|
85
|
-
version_requirements: *
|
101
|
+
version_requirements: *id004
|
86
102
|
description: Rails authentication with email & password.
|
87
103
|
email: support@thoughtbot.com
|
88
104
|
executables: []
|
@@ -94,6 +110,8 @@ extra_rdoc_files:
|
|
94
110
|
- README.md
|
95
111
|
files:
|
96
112
|
- CHANGELOG.md
|
113
|
+
- Gemfile
|
114
|
+
- Gemfile.lock
|
97
115
|
- LICENSE
|
98
116
|
- Rakefile
|
99
117
|
- README.md
|
@@ -103,10 +121,12 @@ files:
|
|
103
121
|
- app/controllers/clearance/users_controller.rb
|
104
122
|
- app/models/clearance_mailer.rb
|
105
123
|
- app/views/clearance_mailer/change_password.html.erb
|
124
|
+
- app/views/layouts/application.html.erb
|
106
125
|
- app/views/passwords/edit.html.erb
|
107
126
|
- app/views/passwords/new.html.erb
|
108
127
|
- app/views/sessions/new.html.erb
|
109
128
|
- app/views/users/_form.html.erb
|
129
|
+
- app/views/users/_inputs.html.erb
|
110
130
|
- app/views/users/new.html.erb
|
111
131
|
- config/routes.rb
|
112
132
|
- lib/clearance/authentication.rb
|
@@ -115,255 +135,19 @@ files:
|
|
115
135
|
- lib/clearance/shoulda_macros.rb
|
116
136
|
- lib/clearance/user.rb
|
117
137
|
- lib/clearance.rb
|
118
|
-
- lib/
|
119
|
-
- lib/
|
120
|
-
- lib/
|
121
|
-
- lib/
|
122
|
-
- lib/
|
123
|
-
- lib/
|
124
|
-
- lib/
|
125
|
-
- lib/rails/generators/clearance_templates/clearance.rb
|
126
|
-
- lib/rails/generators/clearance_templates/factories.rb
|
127
|
-
- lib/rails/generators/clearance_templates/migrations/create_users.rb
|
128
|
-
- lib/rails/generators/clearance_templates/migrations/update_users.rb
|
129
|
-
- lib/rails/generators/clearance_templates/README
|
130
|
-
- lib/rails/generators/clearance_templates/user.rb
|
131
|
-
- lib/rails/generators/clearance_views_generator.rb
|
132
|
-
- lib/rails/generators/clearance_views_templates/formtastic/erb/passwords/edit.html.erb
|
133
|
-
- lib/rails/generators/clearance_views_templates/formtastic/erb/passwords/new.html.erb
|
134
|
-
- lib/rails/generators/clearance_views_templates/formtastic/erb/sessions/new.html.erb
|
135
|
-
- lib/rails/generators/clearance_views_templates/formtastic/erb/users/_inputs.html.erb
|
136
|
-
- lib/rails/generators/clearance_views_templates/formtastic/erb/users/new.html.erb
|
137
|
-
- spec/rails_root/app/controllers/accounts_controller.rb
|
138
|
-
- spec/rails_root/app/controllers/application_controller.rb
|
139
|
-
- spec/rails_root/app/helpers/application_helper.rb
|
140
|
-
- spec/rails_root/app/models/user.rb
|
141
|
-
- spec/rails_root/app/views/accounts/edit.html.erb
|
142
|
-
- spec/rails_root/app/views/layouts/application.html.erb
|
143
|
-
- spec/rails_root/app/views/passwords/edit.html.erb
|
144
|
-
- spec/rails_root/app/views/passwords/new.html.erb
|
145
|
-
- spec/rails_root/app/views/sessions/new.html.erb
|
146
|
-
- spec/rails_root/app/views/users/_inputs.html.erb
|
147
|
-
- spec/rails_root/app/views/users/new.html.erb
|
148
|
-
- spec/rails_root/config/application.rb
|
149
|
-
- spec/rails_root/config/boot.rb
|
150
|
-
- spec/rails_root/config/cucumber.yml
|
151
|
-
- spec/rails_root/config/database.yml
|
152
|
-
- spec/rails_root/config/environment.rb
|
153
|
-
- spec/rails_root/config/environments/development.rb
|
154
|
-
- spec/rails_root/config/environments/production.rb
|
155
|
-
- spec/rails_root/config/environments/test.rb
|
156
|
-
- spec/rails_root/config/initializers/backtrace_silencers.rb
|
157
|
-
- spec/rails_root/config/initializers/clearance.rb
|
158
|
-
- spec/rails_root/config/initializers/inflections.rb
|
159
|
-
- spec/rails_root/config/initializers/mime_types.rb
|
160
|
-
- spec/rails_root/config/initializers/secret_token.rb
|
161
|
-
- spec/rails_root/config/initializers/session_store.rb
|
162
|
-
- spec/rails_root/config/locales/en.yml
|
163
|
-
- spec/rails_root/config/routes.rb
|
164
|
-
- spec/rails_root/config.ru
|
165
|
-
- spec/rails_root/db/development.sqlite3
|
166
|
-
- spec/rails_root/db/migrate/20110209234521_clearance_create_users.rb
|
167
|
-
- spec/rails_root/db/schema.rb
|
168
|
-
- spec/rails_root/db/test.sqlite3
|
169
|
-
- spec/rails_root/doc/README_FOR_APP
|
170
|
-
- spec/rails_root/features/password_reset.feature
|
171
|
-
- spec/rails_root/features/sign_in.feature
|
172
|
-
- spec/rails_root/features/sign_out.feature
|
173
|
-
- spec/rails_root/features/sign_up.feature
|
174
|
-
- spec/rails_root/features/step_definitions/clearance_steps.rb
|
175
|
-
- spec/rails_root/features/step_definitions/web_steps.rb
|
176
|
-
- spec/rails_root/features/support/env.rb
|
177
|
-
- spec/rails_root/features/support/paths.rb
|
178
|
-
- spec/rails_root/Gemfile
|
179
|
-
- spec/rails_root/Gemfile.lock
|
180
|
-
- spec/rails_root/lib/tasks/cucumber.rake
|
181
|
-
- spec/rails_root/log/development.log
|
182
|
-
- spec/rails_root/log/test.log
|
183
|
-
- spec/rails_root/public/404.html
|
184
|
-
- spec/rails_root/public/422.html
|
185
|
-
- spec/rails_root/public/500.html
|
186
|
-
- spec/rails_root/public/favicon.ico
|
187
|
-
- spec/rails_root/public/images/rails.png
|
188
|
-
- spec/rails_root/public/javascripts/application.js
|
189
|
-
- spec/rails_root/public/javascripts/controls.js
|
190
|
-
- spec/rails_root/public/javascripts/dragdrop.js
|
191
|
-
- spec/rails_root/public/javascripts/effects.js
|
192
|
-
- spec/rails_root/public/javascripts/prototype.js
|
193
|
-
- spec/rails_root/public/javascripts/rails.js
|
194
|
-
- spec/rails_root/public/robots.txt
|
195
|
-
- spec/rails_root/Rakefile
|
196
|
-
- spec/rails_root/README
|
197
|
-
- spec/rails_root/script/cucumber
|
198
|
-
- spec/rails_root/script/rails
|
199
|
-
- spec/rails_root/test/factories/clearance.rb
|
200
|
-
- spec/rails_root/test/functional/accounts_controller_test.rb
|
201
|
-
- spec/rails_root/test/performance/browsing_test.rb
|
202
|
-
- spec/rails_root/test/test_helper.rb
|
203
|
-
- spec/rails_root/vendor/app/controllers/accounts_controller.rb
|
204
|
-
- spec/rails_root/vendor/app/controllers/application_controller.rb
|
205
|
-
- spec/rails_root/vendor/app/helpers/application_helper.rb
|
206
|
-
- spec/rails_root/vendor/app/models/user.rb
|
207
|
-
- spec/rails_root/vendor/app/views/accounts/edit.html.erb
|
208
|
-
- spec/rails_root/vendor/app/views/layouts/application.html.erb
|
209
|
-
- spec/rails_root/vendor/app/views/passwords/edit.html.erb
|
210
|
-
- spec/rails_root/vendor/app/views/passwords/new.html.erb
|
211
|
-
- spec/rails_root/vendor/app/views/sessions/new.html.erb
|
212
|
-
- spec/rails_root/vendor/app/views/users/_inputs.html.erb
|
213
|
-
- spec/rails_root/vendor/app/views/users/new.html.erb
|
214
|
-
- spec/rails_root/vendor/config/application.rb
|
215
|
-
- spec/rails_root/vendor/config/boot.rb
|
216
|
-
- spec/rails_root/vendor/config/cucumber.yml
|
217
|
-
- spec/rails_root/vendor/config/database.yml
|
218
|
-
- spec/rails_root/vendor/config/environment.rb
|
219
|
-
- spec/rails_root/vendor/config/environments/development.rb
|
220
|
-
- spec/rails_root/vendor/config/environments/production.rb
|
221
|
-
- spec/rails_root/vendor/config/environments/test.rb
|
222
|
-
- spec/rails_root/vendor/config/initializers/backtrace_silencers.rb
|
223
|
-
- spec/rails_root/vendor/config/initializers/clearance.rb
|
224
|
-
- spec/rails_root/vendor/config/initializers/inflections.rb
|
225
|
-
- spec/rails_root/vendor/config/initializers/mime_types.rb
|
226
|
-
- spec/rails_root/vendor/config/initializers/secret_token.rb
|
227
|
-
- spec/rails_root/vendor/config/initializers/session_store.rb
|
228
|
-
- spec/rails_root/vendor/config/locales/en.yml
|
229
|
-
- spec/rails_root/vendor/config/routes.rb
|
230
|
-
- spec/rails_root/vendor/config.ru
|
231
|
-
- spec/rails_root/vendor/db/development.sqlite3
|
232
|
-
- spec/rails_root/vendor/db/migrate/20101220184900_clearance_create_users.rb
|
233
|
-
- spec/rails_root/vendor/db/schema.rb
|
234
|
-
- spec/rails_root/vendor/db/test.sqlite3
|
235
|
-
- spec/rails_root/vendor/doc/README_FOR_APP
|
236
|
-
- spec/rails_root/vendor/features/password_reset.feature
|
237
|
-
- spec/rails_root/vendor/features/sign_in.feature
|
238
|
-
- spec/rails_root/vendor/features/sign_out.feature
|
239
|
-
- spec/rails_root/vendor/features/sign_up.feature
|
240
|
-
- spec/rails_root/vendor/features/step_definitions/clearance_steps.rb
|
241
|
-
- spec/rails_root/vendor/features/step_definitions/web_steps.rb
|
242
|
-
- spec/rails_root/vendor/features/support/env.rb
|
243
|
-
- spec/rails_root/vendor/features/support/paths.rb
|
244
|
-
- spec/rails_root/vendor/Gemfile
|
245
|
-
- spec/rails_root/vendor/Gemfile.lock
|
246
|
-
- spec/rails_root/vendor/lib/tasks/cucumber.rake
|
247
|
-
- spec/rails_root/vendor/log/development.log
|
248
|
-
- spec/rails_root/vendor/log/test.log
|
249
|
-
- spec/rails_root/vendor/plugins/dynamic_form/init.rb
|
250
|
-
- spec/rails_root/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb
|
251
|
-
- spec/rails_root/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml
|
252
|
-
- spec/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE
|
253
|
-
- spec/rails_root/vendor/plugins/dynamic_form/Rakefile
|
254
|
-
- spec/rails_root/vendor/plugins/dynamic_form/README
|
255
|
-
- spec/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb
|
256
|
-
- spec/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_test.rb
|
257
|
-
- spec/rails_root/vendor/plugins/dynamic_form/test/test_helper.rb
|
258
|
-
- spec/rails_root/vendor/public/404.html
|
259
|
-
- spec/rails_root/vendor/public/422.html
|
260
|
-
- spec/rails_root/vendor/public/500.html
|
261
|
-
- spec/rails_root/vendor/public/favicon.ico
|
262
|
-
- spec/rails_root/vendor/public/images/rails.png
|
263
|
-
- spec/rails_root/vendor/public/javascripts/application.js
|
264
|
-
- spec/rails_root/vendor/public/javascripts/controls.js
|
265
|
-
- spec/rails_root/vendor/public/javascripts/dragdrop.js
|
266
|
-
- spec/rails_root/vendor/public/javascripts/effects.js
|
267
|
-
- spec/rails_root/vendor/public/javascripts/prototype.js
|
268
|
-
- spec/rails_root/vendor/public/javascripts/rails.js
|
269
|
-
- spec/rails_root/vendor/public/robots.txt
|
270
|
-
- spec/rails_root/vendor/Rakefile
|
271
|
-
- spec/rails_root/vendor/README
|
272
|
-
- spec/rails_root/vendor/script/cucumber
|
273
|
-
- spec/rails_root/vendor/script/rails
|
274
|
-
- spec/rails_root/vendor/test/factories/clearance.rb
|
275
|
-
- spec/rails_root/vendor/test/functional/accounts_controller_test.rb
|
276
|
-
- spec/rails_root/vendor/test/performance/browsing_test.rb
|
277
|
-
- spec/rails_root/vendor/test/test_helper.rb
|
278
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/init.rb
|
279
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb
|
280
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml
|
281
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/MIT-LICENSE
|
282
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/Rakefile
|
283
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/README
|
284
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb
|
285
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/test/dynamic_form_test.rb
|
286
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/test/test_helper.rb
|
138
|
+
- lib/generators/clearance/features/features_generator.rb
|
139
|
+
- lib/generators/clearance/install/install_generator.rb
|
140
|
+
- lib/generators/clearance/install/templates/clearance.rb
|
141
|
+
- lib/generators/clearance/install/templates/db/migrate/upgrade_clearance_to_diesel.rb
|
142
|
+
- lib/generators/clearance/install/templates/README
|
143
|
+
- lib/generators/clearance/install/templates/user.rb
|
144
|
+
- lib/generators/clearance/views/views_generator.rb
|
287
145
|
- test/controllers/passwords_controller_test.rb
|
288
146
|
- test/controllers/sessions_controller_test.rb
|
289
147
|
- test/controllers/users_controller_test.rb
|
148
|
+
- test/factories.rb
|
290
149
|
- test/models/clearance_mailer_test.rb
|
291
150
|
- test/models/user_test.rb
|
292
|
-
- test/rails_root/app/controllers/accounts_controller.rb
|
293
|
-
- test/rails_root/app/controllers/application_controller.rb
|
294
|
-
- test/rails_root/app/helpers/application_helper.rb
|
295
|
-
- test/rails_root/app/models/user.rb
|
296
|
-
- test/rails_root/app/views/accounts/edit.html.erb
|
297
|
-
- test/rails_root/app/views/layouts/application.html.erb
|
298
|
-
- test/rails_root/app/views/passwords/edit.html.erb
|
299
|
-
- test/rails_root/app/views/passwords/new.html.erb
|
300
|
-
- test/rails_root/app/views/sessions/new.html.erb
|
301
|
-
- test/rails_root/app/views/users/_inputs.html.erb
|
302
|
-
- test/rails_root/app/views/users/new.html.erb
|
303
|
-
- test/rails_root/config/application.rb
|
304
|
-
- test/rails_root/config/boot.rb
|
305
|
-
- test/rails_root/config/cucumber.yml
|
306
|
-
- test/rails_root/config/database.yml
|
307
|
-
- test/rails_root/config/environment.rb
|
308
|
-
- test/rails_root/config/environments/development.rb
|
309
|
-
- test/rails_root/config/environments/production.rb
|
310
|
-
- test/rails_root/config/environments/test.rb
|
311
|
-
- test/rails_root/config/initializers/backtrace_silencers.rb
|
312
|
-
- test/rails_root/config/initializers/clearance.rb
|
313
|
-
- test/rails_root/config/initializers/inflections.rb
|
314
|
-
- test/rails_root/config/initializers/mime_types.rb
|
315
|
-
- test/rails_root/config/initializers/secret_token.rb
|
316
|
-
- test/rails_root/config/initializers/session_store.rb
|
317
|
-
- test/rails_root/config/locales/en.yml
|
318
|
-
- test/rails_root/config/routes.rb
|
319
|
-
- test/rails_root/config.ru
|
320
|
-
- test/rails_root/db/development.sqlite3
|
321
|
-
- test/rails_root/db/migrate/20110209234101_clearance_create_users.rb
|
322
|
-
- test/rails_root/db/schema.rb
|
323
|
-
- test/rails_root/db/test.sqlite3
|
324
|
-
- test/rails_root/doc/README_FOR_APP
|
325
|
-
- test/rails_root/features/password_reset.feature
|
326
|
-
- test/rails_root/features/sign_in.feature
|
327
|
-
- test/rails_root/features/sign_out.feature
|
328
|
-
- test/rails_root/features/sign_up.feature
|
329
|
-
- test/rails_root/features/step_definitions/clearance_steps.rb
|
330
|
-
- test/rails_root/features/step_definitions/web_steps.rb
|
331
|
-
- test/rails_root/features/support/env.rb
|
332
|
-
- test/rails_root/features/support/paths.rb
|
333
|
-
- test/rails_root/Gemfile
|
334
|
-
- test/rails_root/Gemfile.lock
|
335
|
-
- test/rails_root/lib/tasks/cucumber.rake
|
336
|
-
- test/rails_root/log/development.log
|
337
|
-
- test/rails_root/log/test.log
|
338
|
-
- test/rails_root/public/404.html
|
339
|
-
- test/rails_root/public/422.html
|
340
|
-
- test/rails_root/public/500.html
|
341
|
-
- test/rails_root/public/favicon.ico
|
342
|
-
- test/rails_root/public/images/rails.png
|
343
|
-
- test/rails_root/public/javascripts/application.js
|
344
|
-
- test/rails_root/public/javascripts/controls.js
|
345
|
-
- test/rails_root/public/javascripts/dragdrop.js
|
346
|
-
- test/rails_root/public/javascripts/effects.js
|
347
|
-
- test/rails_root/public/javascripts/prototype.js
|
348
|
-
- test/rails_root/public/javascripts/rails.js
|
349
|
-
- test/rails_root/public/robots.txt
|
350
|
-
- test/rails_root/Rakefile
|
351
|
-
- test/rails_root/README
|
352
|
-
- test/rails_root/script/cucumber
|
353
|
-
- test/rails_root/script/rails
|
354
|
-
- test/rails_root/test/factories/clearance.rb
|
355
|
-
- test/rails_root/test/functional/accounts_controller_test.rb
|
356
|
-
- test/rails_root/test/performance/browsing_test.rb
|
357
|
-
- test/rails_root/test/test_helper.rb
|
358
|
-
- test/rails_root/vendor/plugins/dynamic_form/init.rb
|
359
|
-
- test/rails_root/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb
|
360
|
-
- test/rails_root/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml
|
361
|
-
- test/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE
|
362
|
-
- test/rails_root/vendor/plugins/dynamic_form/Rakefile
|
363
|
-
- test/rails_root/vendor/plugins/dynamic_form/README
|
364
|
-
- test/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb
|
365
|
-
- test/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_test.rb
|
366
|
-
- test/rails_root/vendor/plugins/dynamic_form/test/test_helper.rb
|
367
151
|
- test/test_helper.rb
|
368
152
|
has_rdoc: true
|
369
153
|
homepage: http://github.com/thoughtbot/clearance
|
@@ -400,234 +184,10 @@ signing_key:
|
|
400
184
|
specification_version: 3
|
401
185
|
summary: Rails authentication with email & password.
|
402
186
|
test_files:
|
403
|
-
- spec/rails_root/app/controllers/accounts_controller.rb
|
404
|
-
- spec/rails_root/app/controllers/application_controller.rb
|
405
|
-
- spec/rails_root/app/helpers/application_helper.rb
|
406
|
-
- spec/rails_root/app/models/user.rb
|
407
|
-
- spec/rails_root/app/views/accounts/edit.html.erb
|
408
|
-
- spec/rails_root/app/views/layouts/application.html.erb
|
409
|
-
- spec/rails_root/app/views/passwords/edit.html.erb
|
410
|
-
- spec/rails_root/app/views/passwords/new.html.erb
|
411
|
-
- spec/rails_root/app/views/sessions/new.html.erb
|
412
|
-
- spec/rails_root/app/views/users/_inputs.html.erb
|
413
|
-
- spec/rails_root/app/views/users/new.html.erb
|
414
|
-
- spec/rails_root/config/application.rb
|
415
|
-
- spec/rails_root/config/boot.rb
|
416
|
-
- spec/rails_root/config/cucumber.yml
|
417
|
-
- spec/rails_root/config/database.yml
|
418
|
-
- spec/rails_root/config/environment.rb
|
419
|
-
- spec/rails_root/config/environments/development.rb
|
420
|
-
- spec/rails_root/config/environments/production.rb
|
421
|
-
- spec/rails_root/config/environments/test.rb
|
422
|
-
- spec/rails_root/config/initializers/backtrace_silencers.rb
|
423
|
-
- spec/rails_root/config/initializers/clearance.rb
|
424
|
-
- spec/rails_root/config/initializers/inflections.rb
|
425
|
-
- spec/rails_root/config/initializers/mime_types.rb
|
426
|
-
- spec/rails_root/config/initializers/secret_token.rb
|
427
|
-
- spec/rails_root/config/initializers/session_store.rb
|
428
|
-
- spec/rails_root/config/locales/en.yml
|
429
|
-
- spec/rails_root/config/routes.rb
|
430
|
-
- spec/rails_root/config.ru
|
431
|
-
- spec/rails_root/db/development.sqlite3
|
432
|
-
- spec/rails_root/db/migrate/20110209234521_clearance_create_users.rb
|
433
|
-
- spec/rails_root/db/schema.rb
|
434
|
-
- spec/rails_root/db/test.sqlite3
|
435
|
-
- spec/rails_root/doc/README_FOR_APP
|
436
|
-
- spec/rails_root/features/password_reset.feature
|
437
|
-
- spec/rails_root/features/sign_in.feature
|
438
|
-
- spec/rails_root/features/sign_out.feature
|
439
|
-
- spec/rails_root/features/sign_up.feature
|
440
|
-
- spec/rails_root/features/step_definitions/clearance_steps.rb
|
441
|
-
- spec/rails_root/features/step_definitions/web_steps.rb
|
442
|
-
- spec/rails_root/features/support/env.rb
|
443
|
-
- spec/rails_root/features/support/paths.rb
|
444
|
-
- spec/rails_root/Gemfile
|
445
|
-
- spec/rails_root/Gemfile.lock
|
446
|
-
- spec/rails_root/lib/tasks/cucumber.rake
|
447
|
-
- spec/rails_root/log/development.log
|
448
|
-
- spec/rails_root/log/test.log
|
449
|
-
- spec/rails_root/public/404.html
|
450
|
-
- spec/rails_root/public/422.html
|
451
|
-
- spec/rails_root/public/500.html
|
452
|
-
- spec/rails_root/public/favicon.ico
|
453
|
-
- spec/rails_root/public/images/rails.png
|
454
|
-
- spec/rails_root/public/javascripts/application.js
|
455
|
-
- spec/rails_root/public/javascripts/controls.js
|
456
|
-
- spec/rails_root/public/javascripts/dragdrop.js
|
457
|
-
- spec/rails_root/public/javascripts/effects.js
|
458
|
-
- spec/rails_root/public/javascripts/prototype.js
|
459
|
-
- spec/rails_root/public/javascripts/rails.js
|
460
|
-
- spec/rails_root/public/robots.txt
|
461
|
-
- spec/rails_root/Rakefile
|
462
|
-
- spec/rails_root/README
|
463
|
-
- spec/rails_root/script/cucumber
|
464
|
-
- spec/rails_root/script/rails
|
465
|
-
- spec/rails_root/test/factories/clearance.rb
|
466
|
-
- spec/rails_root/test/functional/accounts_controller_test.rb
|
467
|
-
- spec/rails_root/test/performance/browsing_test.rb
|
468
|
-
- spec/rails_root/test/test_helper.rb
|
469
|
-
- spec/rails_root/vendor/app/controllers/accounts_controller.rb
|
470
|
-
- spec/rails_root/vendor/app/controllers/application_controller.rb
|
471
|
-
- spec/rails_root/vendor/app/helpers/application_helper.rb
|
472
|
-
- spec/rails_root/vendor/app/models/user.rb
|
473
|
-
- spec/rails_root/vendor/app/views/accounts/edit.html.erb
|
474
|
-
- spec/rails_root/vendor/app/views/layouts/application.html.erb
|
475
|
-
- spec/rails_root/vendor/app/views/passwords/edit.html.erb
|
476
|
-
- spec/rails_root/vendor/app/views/passwords/new.html.erb
|
477
|
-
- spec/rails_root/vendor/app/views/sessions/new.html.erb
|
478
|
-
- spec/rails_root/vendor/app/views/users/_inputs.html.erb
|
479
|
-
- spec/rails_root/vendor/app/views/users/new.html.erb
|
480
|
-
- spec/rails_root/vendor/config/application.rb
|
481
|
-
- spec/rails_root/vendor/config/boot.rb
|
482
|
-
- spec/rails_root/vendor/config/cucumber.yml
|
483
|
-
- spec/rails_root/vendor/config/database.yml
|
484
|
-
- spec/rails_root/vendor/config/environment.rb
|
485
|
-
- spec/rails_root/vendor/config/environments/development.rb
|
486
|
-
- spec/rails_root/vendor/config/environments/production.rb
|
487
|
-
- spec/rails_root/vendor/config/environments/test.rb
|
488
|
-
- spec/rails_root/vendor/config/initializers/backtrace_silencers.rb
|
489
|
-
- spec/rails_root/vendor/config/initializers/clearance.rb
|
490
|
-
- spec/rails_root/vendor/config/initializers/inflections.rb
|
491
|
-
- spec/rails_root/vendor/config/initializers/mime_types.rb
|
492
|
-
- spec/rails_root/vendor/config/initializers/secret_token.rb
|
493
|
-
- spec/rails_root/vendor/config/initializers/session_store.rb
|
494
|
-
- spec/rails_root/vendor/config/locales/en.yml
|
495
|
-
- spec/rails_root/vendor/config/routes.rb
|
496
|
-
- spec/rails_root/vendor/config.ru
|
497
|
-
- spec/rails_root/vendor/db/development.sqlite3
|
498
|
-
- spec/rails_root/vendor/db/migrate/20101220184900_clearance_create_users.rb
|
499
|
-
- spec/rails_root/vendor/db/schema.rb
|
500
|
-
- spec/rails_root/vendor/db/test.sqlite3
|
501
|
-
- spec/rails_root/vendor/doc/README_FOR_APP
|
502
|
-
- spec/rails_root/vendor/features/password_reset.feature
|
503
|
-
- spec/rails_root/vendor/features/sign_in.feature
|
504
|
-
- spec/rails_root/vendor/features/sign_out.feature
|
505
|
-
- spec/rails_root/vendor/features/sign_up.feature
|
506
|
-
- spec/rails_root/vendor/features/step_definitions/clearance_steps.rb
|
507
|
-
- spec/rails_root/vendor/features/step_definitions/web_steps.rb
|
508
|
-
- spec/rails_root/vendor/features/support/env.rb
|
509
|
-
- spec/rails_root/vendor/features/support/paths.rb
|
510
|
-
- spec/rails_root/vendor/Gemfile
|
511
|
-
- spec/rails_root/vendor/Gemfile.lock
|
512
|
-
- spec/rails_root/vendor/lib/tasks/cucumber.rake
|
513
|
-
- spec/rails_root/vendor/log/development.log
|
514
|
-
- spec/rails_root/vendor/log/test.log
|
515
|
-
- spec/rails_root/vendor/plugins/dynamic_form/init.rb
|
516
|
-
- spec/rails_root/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb
|
517
|
-
- spec/rails_root/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml
|
518
|
-
- spec/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE
|
519
|
-
- spec/rails_root/vendor/plugins/dynamic_form/Rakefile
|
520
|
-
- spec/rails_root/vendor/plugins/dynamic_form/README
|
521
|
-
- spec/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb
|
522
|
-
- spec/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_test.rb
|
523
|
-
- spec/rails_root/vendor/plugins/dynamic_form/test/test_helper.rb
|
524
|
-
- spec/rails_root/vendor/public/404.html
|
525
|
-
- spec/rails_root/vendor/public/422.html
|
526
|
-
- spec/rails_root/vendor/public/500.html
|
527
|
-
- spec/rails_root/vendor/public/favicon.ico
|
528
|
-
- spec/rails_root/vendor/public/images/rails.png
|
529
|
-
- spec/rails_root/vendor/public/javascripts/application.js
|
530
|
-
- spec/rails_root/vendor/public/javascripts/controls.js
|
531
|
-
- spec/rails_root/vendor/public/javascripts/dragdrop.js
|
532
|
-
- spec/rails_root/vendor/public/javascripts/effects.js
|
533
|
-
- spec/rails_root/vendor/public/javascripts/prototype.js
|
534
|
-
- spec/rails_root/vendor/public/javascripts/rails.js
|
535
|
-
- spec/rails_root/vendor/public/robots.txt
|
536
|
-
- spec/rails_root/vendor/Rakefile
|
537
|
-
- spec/rails_root/vendor/README
|
538
|
-
- spec/rails_root/vendor/script/cucumber
|
539
|
-
- spec/rails_root/vendor/script/rails
|
540
|
-
- spec/rails_root/vendor/test/factories/clearance.rb
|
541
|
-
- spec/rails_root/vendor/test/functional/accounts_controller_test.rb
|
542
|
-
- spec/rails_root/vendor/test/performance/browsing_test.rb
|
543
|
-
- spec/rails_root/vendor/test/test_helper.rb
|
544
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/init.rb
|
545
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb
|
546
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml
|
547
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/MIT-LICENSE
|
548
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/Rakefile
|
549
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/README
|
550
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb
|
551
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/test/dynamic_form_test.rb
|
552
|
-
- spec/rails_root/vendor/vendor/plugins/dynamic_form/test/test_helper.rb
|
553
187
|
- test/controllers/passwords_controller_test.rb
|
554
188
|
- test/controllers/sessions_controller_test.rb
|
555
189
|
- test/controllers/users_controller_test.rb
|
190
|
+
- test/factories.rb
|
556
191
|
- test/models/clearance_mailer_test.rb
|
557
192
|
- test/models/user_test.rb
|
558
|
-
- test/rails_root/app/controllers/accounts_controller.rb
|
559
|
-
- test/rails_root/app/controllers/application_controller.rb
|
560
|
-
- test/rails_root/app/helpers/application_helper.rb
|
561
|
-
- test/rails_root/app/models/user.rb
|
562
|
-
- test/rails_root/app/views/accounts/edit.html.erb
|
563
|
-
- test/rails_root/app/views/layouts/application.html.erb
|
564
|
-
- test/rails_root/app/views/passwords/edit.html.erb
|
565
|
-
- test/rails_root/app/views/passwords/new.html.erb
|
566
|
-
- test/rails_root/app/views/sessions/new.html.erb
|
567
|
-
- test/rails_root/app/views/users/_inputs.html.erb
|
568
|
-
- test/rails_root/app/views/users/new.html.erb
|
569
|
-
- test/rails_root/config/application.rb
|
570
|
-
- test/rails_root/config/boot.rb
|
571
|
-
- test/rails_root/config/cucumber.yml
|
572
|
-
- test/rails_root/config/database.yml
|
573
|
-
- test/rails_root/config/environment.rb
|
574
|
-
- test/rails_root/config/environments/development.rb
|
575
|
-
- test/rails_root/config/environments/production.rb
|
576
|
-
- test/rails_root/config/environments/test.rb
|
577
|
-
- test/rails_root/config/initializers/backtrace_silencers.rb
|
578
|
-
- test/rails_root/config/initializers/clearance.rb
|
579
|
-
- test/rails_root/config/initializers/inflections.rb
|
580
|
-
- test/rails_root/config/initializers/mime_types.rb
|
581
|
-
- test/rails_root/config/initializers/secret_token.rb
|
582
|
-
- test/rails_root/config/initializers/session_store.rb
|
583
|
-
- test/rails_root/config/locales/en.yml
|
584
|
-
- test/rails_root/config/routes.rb
|
585
|
-
- test/rails_root/config.ru
|
586
|
-
- test/rails_root/db/development.sqlite3
|
587
|
-
- test/rails_root/db/migrate/20110209234101_clearance_create_users.rb
|
588
|
-
- test/rails_root/db/schema.rb
|
589
|
-
- test/rails_root/db/test.sqlite3
|
590
|
-
- test/rails_root/doc/README_FOR_APP
|
591
|
-
- test/rails_root/features/password_reset.feature
|
592
|
-
- test/rails_root/features/sign_in.feature
|
593
|
-
- test/rails_root/features/sign_out.feature
|
594
|
-
- test/rails_root/features/sign_up.feature
|
595
|
-
- test/rails_root/features/step_definitions/clearance_steps.rb
|
596
|
-
- test/rails_root/features/step_definitions/web_steps.rb
|
597
|
-
- test/rails_root/features/support/env.rb
|
598
|
-
- test/rails_root/features/support/paths.rb
|
599
|
-
- test/rails_root/Gemfile
|
600
|
-
- test/rails_root/Gemfile.lock
|
601
|
-
- test/rails_root/lib/tasks/cucumber.rake
|
602
|
-
- test/rails_root/log/development.log
|
603
|
-
- test/rails_root/log/test.log
|
604
|
-
- test/rails_root/public/404.html
|
605
|
-
- test/rails_root/public/422.html
|
606
|
-
- test/rails_root/public/500.html
|
607
|
-
- test/rails_root/public/favicon.ico
|
608
|
-
- test/rails_root/public/images/rails.png
|
609
|
-
- test/rails_root/public/javascripts/application.js
|
610
|
-
- test/rails_root/public/javascripts/controls.js
|
611
|
-
- test/rails_root/public/javascripts/dragdrop.js
|
612
|
-
- test/rails_root/public/javascripts/effects.js
|
613
|
-
- test/rails_root/public/javascripts/prototype.js
|
614
|
-
- test/rails_root/public/javascripts/rails.js
|
615
|
-
- test/rails_root/public/robots.txt
|
616
|
-
- test/rails_root/Rakefile
|
617
|
-
- test/rails_root/README
|
618
|
-
- test/rails_root/script/cucumber
|
619
|
-
- test/rails_root/script/rails
|
620
|
-
- test/rails_root/test/factories/clearance.rb
|
621
|
-
- test/rails_root/test/functional/accounts_controller_test.rb
|
622
|
-
- test/rails_root/test/performance/browsing_test.rb
|
623
|
-
- test/rails_root/test/test_helper.rb
|
624
|
-
- test/rails_root/vendor/plugins/dynamic_form/init.rb
|
625
|
-
- test/rails_root/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb
|
626
|
-
- test/rails_root/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml
|
627
|
-
- test/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE
|
628
|
-
- test/rails_root/vendor/plugins/dynamic_form/Rakefile
|
629
|
-
- test/rails_root/vendor/plugins/dynamic_form/README
|
630
|
-
- test/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb
|
631
|
-
- test/rails_root/vendor/plugins/dynamic_form/test/dynamic_form_test.rb
|
632
|
-
- test/rails_root/vendor/plugins/dynamic_form/test/test_helper.rb
|
633
193
|
- test/test_helper.rb
|