devise 1.2.rc → 1.2.rc2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of devise might be problematic. Click here for more details.
- data/.gitignore +10 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.rdoc +45 -1
- data/Gemfile +29 -0
- data/Gemfile.lock +158 -0
- data/MIT-LICENSE +1 -1
- data/README.rdoc +25 -8
- data/Rakefile +34 -0
- data/TODO +4 -0
- data/app/controllers/devise/omniauth_callbacks_controller.rb +3 -3
- data/app/controllers/devise/registrations_controller.rb +4 -4
- data/app/controllers/devise/sessions_controller.rb +3 -2
- data/app/helpers/devise_helper.rb +6 -0
- data/config/locales/en.yml +2 -0
- data/devise.gemspec +25 -0
- data/lib/devise.rb +31 -5
- data/lib/devise/controllers/helpers.rb +30 -29
- data/lib/devise/controllers/internal_helpers.rb +6 -1
- data/lib/devise/controllers/rememberable.rb +52 -0
- data/lib/devise/encryptors/authlogic_sha512.rb +1 -1
- data/lib/devise/failure_app.rb +20 -4
- data/lib/devise/hooks/forgetable.rb +1 -4
- data/lib/devise/hooks/rememberable.rb +5 -44
- data/lib/devise/hooks/timeoutable.rb +1 -1
- data/lib/devise/models.rb +4 -2
- data/lib/devise/models/authenticatable.rb +13 -3
- data/lib/devise/models/confirmable.rb +3 -3
- data/lib/devise/models/database_authenticatable.rb +5 -3
- data/lib/devise/models/encryptable.rb +9 -2
- data/lib/devise/models/lockable.rb +18 -13
- data/lib/devise/models/recoverable.rb +9 -1
- data/lib/devise/models/registerable.rb +1 -1
- data/lib/devise/models/rememberable.rb +2 -5
- data/lib/devise/models/token_authenticatable.rb +4 -4
- data/lib/devise/omniauth.rb +3 -18
- data/lib/devise/omniauth/test_helpers.rb +14 -40
- data/lib/devise/omniauth/url_helpers.rb +6 -2
- data/lib/devise/rails.rb +3 -2
- data/lib/devise/rails/warden_compat.rb +5 -0
- data/lib/devise/schema.rb +3 -2
- data/lib/devise/strategies/authenticatable.rb +15 -1
- data/lib/devise/strategies/database_authenticatable.rb +1 -1
- data/lib/devise/strategies/rememberable.rb +6 -5
- data/lib/devise/strategies/token_authenticatable.rb +1 -1
- data/lib/devise/test_helpers.rb +3 -3
- data/lib/devise/version.rb +1 -1
- data/lib/generators/active_record/devise_generator.rb +2 -2
- data/lib/generators/active_record/templates/migration.rb +1 -0
- data/lib/generators/devise/devise_generator.rb +3 -1
- data/lib/generators/devise/orm_helpers.rb +1 -2
- data/lib/generators/devise/views_generator.rb +8 -45
- data/lib/generators/mongoid/devise_generator.rb +2 -2
- data/lib/generators/templates/devise.rb +19 -7
- data/test/controllers/helpers_test.rb +35 -5
- data/test/devise_test.rb +10 -0
- data/test/failure_app_test.rb +32 -3
- data/test/generators/active_record_generator_test.rb +24 -0
- data/test/generators/devise_generator_test.rb +33 -0
- data/test/generators/install_generator_test.rb +3 -4
- data/test/generators/mongoid_generator_test.rb +22 -0
- data/test/generators/views_generator_test.rb +13 -15
- data/test/indifferent_hash.rb +33 -0
- data/test/integration/authenticatable_test.rb +7 -0
- data/test/integration/omniauthable_test.rb +67 -32
- data/test/integration/registerable_test.rb +30 -0
- data/test/integration/rememberable_test.rb +16 -6
- data/test/integration/token_authenticatable_test.rb +43 -5
- data/test/models/confirmable_test.rb +20 -3
- data/test/models/encryptable_test.rb +1 -1
- data/test/models/lockable_test.rb +36 -15
- data/test/models/recoverable_test.rb +20 -11
- data/test/models/token_authenticatable_test.rb +19 -1
- data/test/models_test.rb +7 -0
- data/test/omniauth/test_helpers_test.rb +25 -0
- data/test/omniauth/url_helpers_test.rb +7 -0
- data/test/rails_app/Rakefile +10 -0
- data/test/rails_app/app/controllers/application_controller.rb +0 -1
- data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +7 -0
- data/test/rails_app/app/views/admins/index.html.erb +1 -0
- data/test/rails_app/app/views/admins/sessions/new.html.erb +2 -0
- data/test/rails_app/app/views/home/index.html.erb +1 -0
- data/test/rails_app/app/views/home/private.html.erb +1 -0
- data/test/rails_app/app/views/layouts/application.html.erb +24 -0
- data/test/rails_app/app/views/users/index.html.erb +1 -0
- data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +1 -0
- data/test/rails_app/app/views/users/sessions/new.html.erb +1 -0
- data/test/rails_app/config.ru +4 -0
- data/test/rails_app/config/application.rb +5 -0
- data/test/rails_app/config/database.yml +18 -0
- data/test/rails_app/config/initializers/devise.rb +18 -2
- data/test/rails_app/public/404.html +26 -0
- data/test/rails_app/public/422.html +26 -0
- data/test/rails_app/public/500.html +26 -0
- data/test/rails_app/public/favicon.ico +0 -0
- data/test/rails_app/script/rails +10 -0
- data/test/schema_test.rb +33 -0
- data/test/support/locale/en.yml +4 -0
- data/test/test_helper.rb +5 -2
- data/test/test_helpers_test.rb +33 -0
- metadata +71 -20
- data/test/generators/generators_test_helper.rb +0 -4
@@ -0,0 +1 @@
|
|
1
|
+
Home!
|
@@ -0,0 +1 @@
|
|
1
|
+
Private!
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<title>Devise Test App</title>
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<div id="container">
|
9
|
+
<%- flash.each do |name, msg| -%>
|
10
|
+
<%= content_tag :div, msg, :id => "flash_#{name}" %>
|
11
|
+
<%- end -%>
|
12
|
+
|
13
|
+
<% if user_signed_in? -%>
|
14
|
+
<p>Hello User <%= current_user.email %>! You are signed in!</p>
|
15
|
+
<% end -%>
|
16
|
+
|
17
|
+
<% if admin_signed_in? -%>
|
18
|
+
<p>Hello Admin <%= current_admin.email %>! You are signed in!</p>
|
19
|
+
<% end -%>
|
20
|
+
|
21
|
+
<%= yield %>
|
22
|
+
</div>
|
23
|
+
</body>
|
24
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
Welcome User #<%= current_user.id %>!
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= @resource.email %>
|
@@ -0,0 +1 @@
|
|
1
|
+
Special user view
|
@@ -31,5 +31,10 @@ module RailsApp
|
|
31
31
|
config.filter_parameters << :password
|
32
32
|
|
33
33
|
config.action_mailer.default_url_options = { :host => "localhost:3000" }
|
34
|
+
|
35
|
+
# This was used to break devise in some situations
|
36
|
+
config.to_prepare do
|
37
|
+
Devise::SessionsController.layout "application"
|
38
|
+
end
|
34
39
|
end
|
35
40
|
end
|
@@ -0,0 +1,18 @@
|
|
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:
|
13
|
+
adapter: sqlite3
|
14
|
+
database: ":memory:"
|
15
|
+
|
16
|
+
production:
|
17
|
+
adapter: sqlite3
|
18
|
+
database: ":memory:"
|
@@ -15,9 +15,9 @@ Devise.setup do |config|
|
|
15
15
|
require "devise/orm/#{DEVISE_ORM}"
|
16
16
|
|
17
17
|
# ==> Configuration for any authentication mechanism
|
18
|
-
# Configure which keys are used when authenticating
|
18
|
+
# Configure which keys are used when authenticating a user. By default is
|
19
19
|
# just :email. You can configure it to use [:username, :subdomain], so for
|
20
|
-
# authenticating
|
20
|
+
# authenticating a user, both parameters are required. Remember that those
|
21
21
|
# parameters are used only when authenticating and not when retrieving from
|
22
22
|
# session. If you need permissions, you should implement that in a before filter.
|
23
23
|
# You can also supply hash where the value is a boolean expliciting if authentication
|
@@ -31,6 +31,11 @@ Devise.setup do |config|
|
|
31
31
|
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
32
32
|
# config.request_keys = []
|
33
33
|
|
34
|
+
# Configure which authentication keys should be case-insensitive.
|
35
|
+
# These keys will be downcased upon creating or modifying a user and when used
|
36
|
+
# to authenticate or find a user. Default is :email.
|
37
|
+
config.case_insensitive_keys = [ :email ]
|
38
|
+
|
34
39
|
# Tell if authentication through request.params is enabled. True by default.
|
35
40
|
# config.params_authenticatable = true
|
36
41
|
|
@@ -57,6 +62,9 @@ Devise.setup do |config|
|
|
57
62
|
# (ie 2 days).
|
58
63
|
# config.confirm_within = 2.days
|
59
64
|
|
65
|
+
# Defines which key will be used when confirming an account
|
66
|
+
# config.confirmation_keys = [ :email ]
|
67
|
+
|
60
68
|
# ==> Configuration for :rememberable
|
61
69
|
# The time the user will be remembered without asking for credentials again.
|
62
70
|
# config.remember_for = 2.weeks
|
@@ -89,6 +97,9 @@ Devise.setup do |config|
|
|
89
97
|
# :none = No lock strategy. You should handle locking by yourself.
|
90
98
|
# config.lock_strategy = :failed_attempts
|
91
99
|
|
100
|
+
# Defines which key will be used when locking and unlocking an account
|
101
|
+
# config.unlock_keys = [ :email ]
|
102
|
+
|
92
103
|
# Defines which strategy will be used to unlock an account.
|
93
104
|
# :email = Sends an unlock link to the user email
|
94
105
|
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
@@ -103,6 +114,11 @@ Devise.setup do |config|
|
|
103
114
|
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
104
115
|
# config.unlock_in = 1.hour
|
105
116
|
|
117
|
+
# ==> Configuration for :recoverable
|
118
|
+
#
|
119
|
+
# Defines which key will be used when recovering the password for an account
|
120
|
+
# config.reset_password_keys = [ :email ]
|
121
|
+
|
106
122
|
# ==> Configuration for :encryptable
|
107
123
|
# Allow you to use another encryption algorithm besides bcrypt (default). You can use
|
108
124
|
# :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
ENV_PATH = File.expand_path('../../config/environment', __FILE__)
|
5
|
+
BOOT_PATH = File.expand_path('../../config/boot', __FILE__)
|
6
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
7
|
+
ROOT_PATH = File.expand_path('../..', __FILE__)
|
8
|
+
|
9
|
+
require BOOT_PATH
|
10
|
+
require 'rails/commands'
|
data/test/schema_test.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
if DEVISE_ORM == :mongoid
|
2
|
+
|
3
|
+
require 'test_helper'
|
4
|
+
|
5
|
+
class User2
|
6
|
+
include Mongoid::Document
|
7
|
+
devise :database_authenticatable
|
8
|
+
end
|
9
|
+
|
10
|
+
class User3
|
11
|
+
include Mongoid::Document
|
12
|
+
devise :database_authenticatable, :authentication_keys => [:username, :email]
|
13
|
+
end
|
14
|
+
|
15
|
+
class User4
|
16
|
+
include Mongoid::Document
|
17
|
+
devise :database_authenticatable, :authentication_keys => [:username]
|
18
|
+
end
|
19
|
+
|
20
|
+
class SchemaTest < ActiveSupport::TestCase
|
21
|
+
test 'should create an email field if there are no custom authentication keys' do
|
22
|
+
assert_not_equal User2.fields['email'], nil
|
23
|
+
end
|
24
|
+
|
25
|
+
test 'should create an email field if there are custom authentication keys and they include email' do
|
26
|
+
assert_not_equal User3.fields['email'], nil
|
27
|
+
end
|
28
|
+
|
29
|
+
test 'should not create an email field if there are custom authentication keys they don\'t include email' do
|
30
|
+
assert_equal User4.fields['email'], nil
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -17,8 +17,11 @@ Webrat.configure do |config|
|
|
17
17
|
config.open_error_files = false
|
18
18
|
end
|
19
19
|
|
20
|
-
Devise::OmniAuth.test_mode!
|
21
|
-
|
22
20
|
# Add support to load paths so we can overwrite broken webrat setup
|
23
21
|
$:.unshift File.expand_path('../support', __FILE__)
|
24
22
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
23
|
+
|
24
|
+
# For generators
|
25
|
+
require "rails/generators/test_case"
|
26
|
+
require "generators/devise/install_generator"
|
27
|
+
require "generators/devise/views_generator"
|
data/test/test_helpers_test.rb
CHANGED
@@ -4,6 +4,12 @@ class TestHelpersTest < ActionController::TestCase
|
|
4
4
|
tests UsersController
|
5
5
|
include Devise::TestHelpers
|
6
6
|
|
7
|
+
class CustomFailureApp < Devise::FailureApp
|
8
|
+
def redirect
|
9
|
+
self.status = 306
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
7
13
|
test "redirects if attempting to access a page unauthenticated" do
|
8
14
|
get :index
|
9
15
|
assert_redirected_to new_user_session_path
|
@@ -52,6 +58,16 @@ class TestHelpersTest < ActionController::TestCase
|
|
52
58
|
get :index
|
53
59
|
assert_redirected_to new_user_session_path
|
54
60
|
end
|
61
|
+
|
62
|
+
test "respects custom failure app" do
|
63
|
+
begin
|
64
|
+
Devise.warden_config.failure_app = CustomFailureApp
|
65
|
+
get :index
|
66
|
+
assert_response 306
|
67
|
+
ensure
|
68
|
+
Devise.warden_config.failure_app = Devise::FailureApp
|
69
|
+
end
|
70
|
+
end
|
55
71
|
|
56
72
|
test "defined Warden after_authentication callback should not be called when sign_in is called" do
|
57
73
|
begin
|
@@ -82,6 +98,23 @@ class TestHelpersTest < ActionController::TestCase
|
|
82
98
|
end
|
83
99
|
end
|
84
100
|
|
101
|
+
test "before_failure call should work" do
|
102
|
+
begin
|
103
|
+
executed = false
|
104
|
+
Warden::Manager.before_failure do |env,opts|
|
105
|
+
executed = true
|
106
|
+
end
|
107
|
+
|
108
|
+
user = create_user
|
109
|
+
sign_in user
|
110
|
+
|
111
|
+
get :index
|
112
|
+
assert executed
|
113
|
+
ensure
|
114
|
+
Warden::Manager._before_failure.pop
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
85
118
|
test "allows to sign in with different users" do
|
86
119
|
first_user = create_user
|
87
120
|
first_user.confirm!
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 15424225
|
5
|
+
prerelease: 4
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
9
|
- rc
|
10
|
-
|
10
|
+
- 2
|
11
|
+
version: 1.2.rc2
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- "Jos\xC3\xA9 Valim"
|
@@ -16,7 +17,7 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date:
|
20
|
+
date: 2011-03-11 00:00:00 +01:00
|
20
21
|
default_executable:
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|
@@ -27,12 +28,12 @@ dependencies:
|
|
27
28
|
requirements:
|
28
29
|
- - ~>
|
29
30
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
31
|
+
hash: 17
|
31
32
|
segments:
|
32
33
|
- 1
|
33
34
|
- 0
|
34
|
-
-
|
35
|
-
version: 1.0.
|
35
|
+
- 3
|
36
|
+
version: 1.0.3
|
36
37
|
type: :runtime
|
37
38
|
version_requirements: *id001
|
38
39
|
- !ruby/object:Gem::Dependency
|
@@ -43,12 +44,12 @@ dependencies:
|
|
43
44
|
requirements:
|
44
45
|
- - ~>
|
45
46
|
- !ruby/object:Gem::Version
|
46
|
-
hash:
|
47
|
+
hash: 25
|
47
48
|
segments:
|
48
49
|
- 0
|
49
50
|
- 0
|
50
|
-
-
|
51
|
-
version: 0.0.
|
51
|
+
- 3
|
52
|
+
version: 0.0.3
|
52
53
|
type: :runtime
|
53
54
|
version_requirements: *id002
|
54
55
|
- !ruby/object:Gem::Dependency
|
@@ -73,14 +74,18 @@ executables: []
|
|
73
74
|
|
74
75
|
extensions: []
|
75
76
|
|
76
|
-
extra_rdoc_files:
|
77
|
-
|
78
|
-
- MIT-LICENSE
|
79
|
-
- README.rdoc
|
77
|
+
extra_rdoc_files: []
|
78
|
+
|
80
79
|
files:
|
80
|
+
- .gitignore
|
81
|
+
- .travis.yml
|
81
82
|
- CHANGELOG.rdoc
|
83
|
+
- Gemfile
|
84
|
+
- Gemfile.lock
|
82
85
|
- MIT-LICENSE
|
83
86
|
- README.rdoc
|
87
|
+
- Rakefile
|
88
|
+
- TODO
|
84
89
|
- app/controllers/devise/confirmations_controller.rb
|
85
90
|
- app/controllers/devise/omniauth_callbacks_controller.rb
|
86
91
|
- app/controllers/devise/passwords_controller.rb
|
@@ -101,9 +106,11 @@ files:
|
|
101
106
|
- app/views/devise/shared/_links.erb
|
102
107
|
- app/views/devise/unlocks/new.html.erb
|
103
108
|
- config/locales/en.yml
|
109
|
+
- devise.gemspec
|
104
110
|
- lib/devise.rb
|
105
111
|
- lib/devise/controllers/helpers.rb
|
106
112
|
- lib/devise/controllers/internal_helpers.rb
|
113
|
+
- lib/devise/controllers/rememberable.rb
|
107
114
|
- lib/devise/controllers/scoped_views.rb
|
108
115
|
- lib/devise/controllers/url_helpers.rb
|
109
116
|
- lib/devise/encryptors/authlogic_sha512.rb
|
@@ -167,9 +174,12 @@ files:
|
|
167
174
|
- test/devise_test.rb
|
168
175
|
- test/encryptors_test.rb
|
169
176
|
- test/failure_app_test.rb
|
170
|
-
- test/generators/
|
177
|
+
- test/generators/active_record_generator_test.rb
|
178
|
+
- test/generators/devise_generator_test.rb
|
171
179
|
- test/generators/install_generator_test.rb
|
180
|
+
- test/generators/mongoid_generator_test.rb
|
172
181
|
- test/generators/views_generator_test.rb
|
182
|
+
- test/indifferent_hash.rb
|
173
183
|
- test/integration/authenticatable_test.rb
|
174
184
|
- test/integration/confirmable_test.rb
|
175
185
|
- test/integration/database_authenticatable_test.rb
|
@@ -197,9 +207,11 @@ files:
|
|
197
207
|
- test/models/trackable_test.rb
|
198
208
|
- test/models/validatable_test.rb
|
199
209
|
- test/models_test.rb
|
210
|
+
- test/omniauth/test_helpers_test.rb
|
200
211
|
- test/omniauth/url_helpers_test.rb
|
201
212
|
- test/orm/active_record.rb
|
202
213
|
- test/orm/mongoid.rb
|
214
|
+
- test/rails_app/Rakefile
|
203
215
|
- test/rails_app/app/active_record/admin.rb
|
204
216
|
- test/rails_app/app/active_record/shim.rb
|
205
217
|
- test/rails_app/app/active_record/user.rb
|
@@ -215,8 +227,18 @@ files:
|
|
215
227
|
- test/rails_app/app/mongoid/admin.rb
|
216
228
|
- test/rails_app/app/mongoid/shim.rb
|
217
229
|
- test/rails_app/app/mongoid/user.rb
|
230
|
+
- test/rails_app/app/views/admins/index.html.erb
|
231
|
+
- test/rails_app/app/views/admins/sessions/new.html.erb
|
232
|
+
- test/rails_app/app/views/home/index.html.erb
|
233
|
+
- test/rails_app/app/views/home/private.html.erb
|
234
|
+
- test/rails_app/app/views/layouts/application.html.erb
|
235
|
+
- test/rails_app/app/views/users/index.html.erb
|
236
|
+
- test/rails_app/app/views/users/mailer/confirmation_instructions.erb
|
237
|
+
- test/rails_app/app/views/users/sessions/new.html.erb
|
238
|
+
- test/rails_app/config.ru
|
218
239
|
- test/rails_app/config/application.rb
|
219
240
|
- test/rails_app/config/boot.rb
|
241
|
+
- test/rails_app/config/database.yml
|
220
242
|
- test/rails_app/config/environment.rb
|
221
243
|
- test/rails_app/config/environments/development.rb
|
222
244
|
- test/rails_app/config/environments/production.rb
|
@@ -230,10 +252,17 @@ files:
|
|
230
252
|
- test/rails_app/db/schema.rb
|
231
253
|
- test/rails_app/lib/shared_admin.rb
|
232
254
|
- test/rails_app/lib/shared_user.rb
|
255
|
+
- test/rails_app/public/404.html
|
256
|
+
- test/rails_app/public/422.html
|
257
|
+
- test/rails_app/public/500.html
|
258
|
+
- test/rails_app/public/favicon.ico
|
259
|
+
- test/rails_app/script/rails
|
233
260
|
- test/routes_test.rb
|
261
|
+
- test/schema_test.rb
|
234
262
|
- test/support/assertions.rb
|
235
263
|
- test/support/helpers.rb
|
236
264
|
- test/support/integration.rb
|
265
|
+
- test/support/locale/en.yml
|
237
266
|
- test/support/webrat/integrations/rails.rb
|
238
267
|
- test/test_helper.rb
|
239
268
|
- test/test_helpers_test.rb
|
@@ -242,8 +271,8 @@ homepage: http://github.com/plataformatec/devise
|
|
242
271
|
licenses: []
|
243
272
|
|
244
273
|
post_install_message:
|
245
|
-
rdoc_options:
|
246
|
-
|
274
|
+
rdoc_options: []
|
275
|
+
|
247
276
|
require_paths:
|
248
277
|
- lib
|
249
278
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -268,8 +297,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
297
|
version: 1.3.1
|
269
298
|
requirements: []
|
270
299
|
|
271
|
-
rubyforge_project:
|
272
|
-
rubygems_version: 1.3
|
300
|
+
rubyforge_project: devise
|
301
|
+
rubygems_version: 1.5.3
|
273
302
|
signing_key:
|
274
303
|
specification_version: 3
|
275
304
|
summary: Flexible authentication solution for Rails with Warden
|
@@ -280,9 +309,12 @@ test_files:
|
|
280
309
|
- test/devise_test.rb
|
281
310
|
- test/encryptors_test.rb
|
282
311
|
- test/failure_app_test.rb
|
283
|
-
- test/generators/
|
312
|
+
- test/generators/active_record_generator_test.rb
|
313
|
+
- test/generators/devise_generator_test.rb
|
284
314
|
- test/generators/install_generator_test.rb
|
315
|
+
- test/generators/mongoid_generator_test.rb
|
285
316
|
- test/generators/views_generator_test.rb
|
317
|
+
- test/indifferent_hash.rb
|
286
318
|
- test/integration/authenticatable_test.rb
|
287
319
|
- test/integration/confirmable_test.rb
|
288
320
|
- test/integration/database_authenticatable_test.rb
|
@@ -310,9 +342,11 @@ test_files:
|
|
310
342
|
- test/models/trackable_test.rb
|
311
343
|
- test/models/validatable_test.rb
|
312
344
|
- test/models_test.rb
|
345
|
+
- test/omniauth/test_helpers_test.rb
|
313
346
|
- test/omniauth/url_helpers_test.rb
|
314
347
|
- test/orm/active_record.rb
|
315
348
|
- test/orm/mongoid.rb
|
349
|
+
- test/rails_app/Rakefile
|
316
350
|
- test/rails_app/app/active_record/admin.rb
|
317
351
|
- test/rails_app/app/active_record/shim.rb
|
318
352
|
- test/rails_app/app/active_record/user.rb
|
@@ -328,8 +362,18 @@ test_files:
|
|
328
362
|
- test/rails_app/app/mongoid/admin.rb
|
329
363
|
- test/rails_app/app/mongoid/shim.rb
|
330
364
|
- test/rails_app/app/mongoid/user.rb
|
365
|
+
- test/rails_app/app/views/admins/index.html.erb
|
366
|
+
- test/rails_app/app/views/admins/sessions/new.html.erb
|
367
|
+
- test/rails_app/app/views/home/index.html.erb
|
368
|
+
- test/rails_app/app/views/home/private.html.erb
|
369
|
+
- test/rails_app/app/views/layouts/application.html.erb
|
370
|
+
- test/rails_app/app/views/users/index.html.erb
|
371
|
+
- test/rails_app/app/views/users/mailer/confirmation_instructions.erb
|
372
|
+
- test/rails_app/app/views/users/sessions/new.html.erb
|
373
|
+
- test/rails_app/config.ru
|
331
374
|
- test/rails_app/config/application.rb
|
332
375
|
- test/rails_app/config/boot.rb
|
376
|
+
- test/rails_app/config/database.yml
|
333
377
|
- test/rails_app/config/environment.rb
|
334
378
|
- test/rails_app/config/environments/development.rb
|
335
379
|
- test/rails_app/config/environments/production.rb
|
@@ -343,10 +387,17 @@ test_files:
|
|
343
387
|
- test/rails_app/db/schema.rb
|
344
388
|
- test/rails_app/lib/shared_admin.rb
|
345
389
|
- test/rails_app/lib/shared_user.rb
|
390
|
+
- test/rails_app/public/404.html
|
391
|
+
- test/rails_app/public/422.html
|
392
|
+
- test/rails_app/public/500.html
|
393
|
+
- test/rails_app/public/favicon.ico
|
394
|
+
- test/rails_app/script/rails
|
346
395
|
- test/routes_test.rb
|
396
|
+
- test/schema_test.rb
|
347
397
|
- test/support/assertions.rb
|
348
398
|
- test/support/helpers.rb
|
349
399
|
- test/support/integration.rb
|
400
|
+
- test/support/locale/en.yml
|
350
401
|
- test/support/webrat/integrations/rails.rb
|
351
402
|
- test/test_helper.rb
|
352
403
|
- test/test_helpers_test.rb
|