devise 1.1.9 → 1.2.rc
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/CHANGELOG.rdoc +34 -26
- data/README.rdoc +134 -100
- data/app/controllers/devise/confirmations_controller.rb +1 -1
- data/app/controllers/devise/omniauth_callbacks_controller.rb +26 -0
- data/app/controllers/devise/passwords_controller.rb +1 -1
- data/app/controllers/devise/registrations_controller.rb +59 -6
- data/app/controllers/devise/sessions_controller.rb +3 -2
- data/app/controllers/devise/unlocks_controller.rb +1 -1
- data/app/helpers/devise_helper.rb +4 -2
- data/app/mailers/devise/mailer.rb +27 -10
- data/app/views/devise/confirmations/new.html.erb +1 -1
- data/app/views/devise/passwords/edit.html.erb +2 -2
- data/app/views/devise/passwords/new.html.erb +1 -1
- data/app/views/devise/registrations/edit.html.erb +1 -1
- data/app/views/devise/registrations/new.html.erb +1 -1
- data/app/views/devise/sessions/new.html.erb +1 -1
- data/app/views/devise/shared/_links.erb +6 -0
- data/app/views/devise/unlocks/new.html.erb +1 -1
- data/config/locales/en.yml +9 -2
- data/lib/devise.rb +116 -58
- data/lib/devise/controllers/helpers.rb +103 -107
- data/lib/devise/controllers/internal_helpers.rb +23 -7
- data/lib/devise/controllers/scoped_views.rb +4 -6
- data/lib/devise/controllers/url_helpers.rb +3 -5
- data/lib/devise/encryptors/base.rb +1 -1
- data/lib/devise/encryptors/restful_authentication_sha1.rb +4 -4
- data/lib/devise/failure_app.rb +29 -21
- data/lib/devise/hooks/forgetable.rb +2 -1
- data/lib/devise/hooks/rememberable.rb +11 -9
- data/lib/devise/mapping.rb +12 -5
- data/lib/devise/models.rb +0 -14
- data/lib/devise/models/authenticatable.rb +40 -30
- data/lib/devise/models/confirmable.rb +11 -15
- data/lib/devise/models/database_authenticatable.rb +23 -35
- data/lib/devise/models/encryptable.rb +65 -0
- data/lib/devise/models/lockable.rb +8 -7
- data/lib/devise/models/omniauthable.rb +23 -0
- data/lib/devise/models/recoverable.rb +5 -3
- data/lib/devise/models/registerable.rb +13 -0
- data/lib/devise/models/rememberable.rb +38 -30
- data/lib/devise/models/timeoutable.rb +20 -3
- data/lib/devise/models/token_authenticatable.rb +19 -7
- data/lib/devise/models/validatable.rb +16 -4
- data/lib/devise/modules.rb +15 -8
- data/lib/devise/omniauth.rb +47 -0
- data/lib/devise/omniauth/config.rb +30 -0
- data/lib/devise/omniauth/test_helpers.rb +57 -0
- data/lib/devise/omniauth/url_helpers.rb +29 -0
- data/lib/devise/orm/active_record.rb +2 -0
- data/lib/devise/orm/mongoid.rb +4 -2
- data/lib/devise/rails.rb +26 -46
- data/lib/devise/rails/routes.rb +64 -20
- data/lib/devise/rails/warden_compat.rb +18 -20
- data/lib/devise/schema.rb +13 -14
- data/lib/devise/strategies/authenticatable.rb +33 -7
- data/lib/devise/strategies/database_authenticatable.rb +1 -1
- data/lib/devise/strategies/rememberable.rb +1 -1
- data/lib/devise/strategies/token_authenticatable.rb +6 -2
- data/lib/devise/test_helpers.rb +11 -1
- data/lib/devise/version.rb +1 -1
- data/lib/generators/active_record/templates/migration.rb +1 -0
- data/lib/generators/devise/orm_helpers.rb +3 -2
- data/lib/generators/templates/devise.rb +70 -39
- data/test/controllers/helpers_test.rb +43 -67
- data/test/controllers/internal_helpers_test.rb +29 -8
- data/test/controllers/url_helpers_test.rb +2 -1
- data/test/failure_app_test.rb +56 -21
- data/test/generators/generators_test_helper.rb +4 -0
- data/test/generators/install_generator_test.rb +14 -0
- data/test/generators/views_generator_test.rb +37 -0
- data/test/integration/authenticatable_test.rb +147 -62
- data/test/integration/database_authenticatable_test.rb +22 -0
- data/test/integration/http_authenticatable_test.rb +12 -2
- data/test/integration/omniauthable_test.rb +107 -0
- data/test/integration/recoverable_test.rb +39 -20
- data/test/integration/registerable_test.rb +30 -4
- data/test/integration/rememberable_test.rb +57 -34
- data/test/integration/timeoutable_test.rb +10 -1
- data/test/integration/token_authenticatable_test.rb +12 -17
- data/test/mailers/confirmation_instructions_test.rb +4 -0
- data/test/mailers/reset_password_instructions_test.rb +4 -0
- data/test/mailers/unlock_instructions_test.rb +4 -0
- data/test/mapping_test.rb +37 -3
- data/test/models/confirmable_test.rb +3 -3
- data/test/models/database_authenticatable_test.rb +14 -71
- data/test/models/encryptable_test.rb +65 -0
- data/test/models/lockable_test.rb +17 -1
- data/test/models/recoverable_test.rb +17 -0
- data/test/models/rememberable_test.rb +186 -125
- data/test/models/token_authenticatable_test.rb +1 -13
- data/test/models_test.rb +5 -5
- data/test/omniauth/url_helpers_test.rb +47 -0
- data/test/rails_app/app/active_record/admin.rb +4 -1
- data/test/rails_app/app/active_record/user.rb +5 -4
- data/test/rails_app/app/controllers/{sessions_controller.rb → admins/sessions_controller.rb} +1 -1
- data/test/rails_app/app/controllers/home_controller.rb +9 -0
- data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +7 -0
- data/test/rails_app/app/mongoid/admin.rb +4 -1
- data/test/rails_app/app/mongoid/shim.rb +16 -3
- data/test/rails_app/app/mongoid/user.rb +5 -5
- data/test/rails_app/config/initializers/devise.rb +52 -28
- data/test/rails_app/config/routes.rb +14 -6
- data/test/rails_app/db/migrate/20100401102949_create_tables.rb +21 -17
- data/test/rails_app/db/schema.rb +17 -51
- data/test/rails_app/lib/shared_admin.rb +9 -0
- data/test/rails_app/lib/shared_user.rb +23 -0
- data/test/routes_test.rb +42 -9
- data/test/support/integration.rb +3 -3
- data/test/support/webrat/integrations/rails.rb +7 -0
- data/test/test_helper.rb +2 -0
- data/test/test_helpers_test.rb +29 -0
- metadata +60 -30
- data/Gemfile +0 -27
- data/Gemfile.lock +0 -115
- data/Rakefile +0 -55
- data/TODO +0 -3
- data/lib/devise/encryptors/bcrypt.rb +0 -19
- data/lib/generators/devise_install_generator.rb +0 -4
- data/lib/generators/devise_views_generator.rb +0 -4
- data/test/indifferent_hash.rb +0 -33
- data/test/support/test_silencer.rb +0 -5
data/test/rails_app/db/schema.rb
CHANGED
@@ -1,81 +1,47 @@
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
2
|
-
# please use the migrations feature of Active Record to
|
3
|
-
# then regenerate this schema definition.
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
4
|
#
|
5
|
-
# Note that this schema.rb definition is the authoritative source for your
|
6
|
-
# to create the application database on another
|
7
|
-
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
8
9
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
9
10
|
#
|
10
11
|
# It's strongly recommended to check this file into your version control system.
|
11
12
|
|
12
13
|
ActiveRecord::Schema.define(:version => 20100401102949) do
|
13
14
|
|
14
|
-
create_table "accounts", :force => true do |t|
|
15
|
-
t.string "email", :default => "", :null => false
|
16
|
-
t.string "encrypted_password", :default => "", :null => false
|
17
|
-
t.string "password_salt", :default => "", :null => false
|
18
|
-
t.string "username"
|
19
|
-
t.string "confirmation_token"
|
20
|
-
t.datetime "confirmed_at"
|
21
|
-
t.datetime "confirmation_sent_at"
|
22
|
-
t.string "reset_password_token"
|
23
|
-
t.string "remember_token"
|
24
|
-
t.datetime "remember_created_at"
|
25
|
-
t.integer "sign_in_count", :default => 0
|
26
|
-
t.datetime "current_sign_in_at"
|
27
|
-
t.datetime "last_sign_in_at"
|
28
|
-
t.string "current_sign_in_ip"
|
29
|
-
t.string "last_sign_in_ip"
|
30
|
-
t.integer "failed_attempts", :default => 0
|
31
|
-
t.string "unlock_token"
|
32
|
-
t.datetime "locked_at"
|
33
|
-
t.string "authentication_token"
|
34
|
-
t.datetime "created_at"
|
35
|
-
t.datetime "updated_at"
|
36
|
-
end
|
37
|
-
|
38
15
|
create_table "admins", :force => true do |t|
|
39
|
-
t.string "email"
|
40
|
-
t.string "encrypted_password", :
|
41
|
-
t.string "password_salt"
|
42
|
-
t.string "username"
|
43
|
-
t.string "confirmation_token"
|
44
|
-
t.datetime "confirmed_at"
|
45
|
-
t.datetime "confirmation_sent_at"
|
46
|
-
t.string "reset_password_token"
|
16
|
+
t.string "email"
|
17
|
+
t.string "encrypted_password", :limit => 128
|
18
|
+
t.string "password_salt"
|
47
19
|
t.string "remember_token"
|
48
20
|
t.datetime "remember_created_at"
|
49
|
-
t.
|
50
|
-
t.
|
51
|
-
t.datetime "last_sign_in_at"
|
52
|
-
t.string "current_sign_in_ip"
|
53
|
-
t.string "last_sign_in_ip"
|
54
|
-
t.integer "failed_attempts", :default => 0
|
21
|
+
t.string "reset_password_token"
|
22
|
+
t.integer "failed_attempts", :default => 0
|
55
23
|
t.string "unlock_token"
|
56
24
|
t.datetime "locked_at"
|
57
|
-
t.string "authentication_token"
|
58
25
|
t.datetime "created_at"
|
59
26
|
t.datetime "updated_at"
|
60
27
|
end
|
61
28
|
|
62
29
|
create_table "users", :force => true do |t|
|
63
|
-
t.string "email", :default => "", :null => false
|
64
|
-
t.string "encrypted_password", :default => "", :null => false
|
65
|
-
t.string "password_salt", :default => "", :null => false
|
66
30
|
t.string "username"
|
31
|
+
t.string "facebook_token"
|
32
|
+
t.string "email", :default => "", :null => false
|
33
|
+
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
67
34
|
t.string "confirmation_token"
|
68
35
|
t.datetime "confirmed_at"
|
69
36
|
t.datetime "confirmation_sent_at"
|
70
37
|
t.string "reset_password_token"
|
71
|
-
t.string "remember_token"
|
72
38
|
t.datetime "remember_created_at"
|
73
|
-
t.integer "sign_in_count",
|
39
|
+
t.integer "sign_in_count", :default => 0
|
74
40
|
t.datetime "current_sign_in_at"
|
75
41
|
t.datetime "last_sign_in_at"
|
76
42
|
t.string "current_sign_in_ip"
|
77
43
|
t.string "last_sign_in_ip"
|
78
|
-
t.integer "failed_attempts",
|
44
|
+
t.integer "failed_attempts", :default => 0
|
79
45
|
t.string "unlock_token"
|
80
46
|
t.datetime "locked_at"
|
81
47
|
t.string "authentication_token"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module SharedUser
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
devise :database_authenticatable, :confirmable, :lockable, :recoverable,
|
6
|
+
:registerable, :rememberable, :timeoutable, :token_authenticatable,
|
7
|
+
:trackable, :validatable, :omniauthable
|
8
|
+
|
9
|
+
# They need to be included after Devise is called.
|
10
|
+
extend ExtendMethods
|
11
|
+
end
|
12
|
+
|
13
|
+
module ExtendMethods
|
14
|
+
def new_with_session(params, session)
|
15
|
+
super.tap do |user|
|
16
|
+
if data = session["devise.facebook_data"]
|
17
|
+
user.email = data["email"]
|
18
|
+
user.confirmed_at = Time.now
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/test/routes_test.rb
CHANGED
@@ -86,10 +86,25 @@ class DefaultRoutingTest < ActionController::TestCase
|
|
86
86
|
assert_recognizes({:controller => 'devise/registrations', :action => 'destroy'}, {:path => 'users', :method => :delete})
|
87
87
|
end
|
88
88
|
|
89
|
+
test 'map cancel user registration' do
|
90
|
+
assert_recognizes({:controller => 'devise/registrations', :action => 'cancel'}, {:path => 'users/cancel', :method => :get})
|
91
|
+
assert_named_route "/users/cancel", :cancel_user_registration_path
|
92
|
+
end
|
93
|
+
|
94
|
+
test 'map omniauth callbacks' do
|
95
|
+
assert_recognizes({:controller => 'users/omniauth_callbacks', :action => 'facebook'}, {:path => 'users/auth/facebook/callback', :method => :get})
|
96
|
+
assert_recognizes({:controller => 'users/omniauth_callbacks', :action => 'facebook'}, {:path => 'users/auth/facebook/callback', :method => :post})
|
97
|
+
assert_named_route "/users/auth/facebook/callback", :user_omniauth_callback_path, :facebook
|
98
|
+
|
99
|
+
assert_raise ActionController::RoutingError do
|
100
|
+
assert_recognizes({:controller => 'ysers/omniauth_callbacks', :action => 'twitter'}, {:path => 'users/auth/twitter/callback', :method => :get})
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
89
104
|
protected
|
90
105
|
|
91
|
-
def assert_named_route(result,
|
92
|
-
assert_equal result, @routes.url_helpers.send(
|
106
|
+
def assert_named_route(result, *args)
|
107
|
+
assert_equal result, @routes.url_helpers.send(*args)
|
93
108
|
end
|
94
109
|
end
|
95
110
|
|
@@ -99,7 +114,7 @@ class CustomizedRoutingTest < ActionController::TestCase
|
|
99
114
|
end
|
100
115
|
|
101
116
|
test 'map admin with :controllers option' do
|
102
|
-
assert_recognizes({:controller => 'sessions', :action => 'new'}, {:path => 'admin_area/sign_in', :method => :get})
|
117
|
+
assert_recognizes({:controller => 'admins/sessions', :action => 'new'}, {:path => 'admin_area/sign_in', :method => :get})
|
103
118
|
end
|
104
119
|
|
105
120
|
test 'does not map admin password' do
|
@@ -120,16 +135,34 @@ class CustomizedRoutingTest < ActionController::TestCase
|
|
120
135
|
assert_recognizes({:controller => 'devise/passwords', :action => 'new', :locale => 'en'}, '/en/accounts/secret/new')
|
121
136
|
end
|
122
137
|
|
123
|
-
test 'map account with custom path name for
|
124
|
-
assert_recognizes({:controller => 'devise/
|
138
|
+
test 'map account with custom path name for registration' do
|
139
|
+
assert_recognizes({:controller => 'devise/registrations', :action => 'new', :locale => 'en'}, '/en/accounts/management/register')
|
125
140
|
end
|
126
141
|
|
127
|
-
test 'map account with custom path name for
|
128
|
-
assert_recognizes({:controller => 'devise/
|
142
|
+
test 'map account with custom path name for cancel registration' do
|
143
|
+
assert_recognizes({:controller => 'devise/registrations', :action => 'cancel', :locale => 'en'}, '/en/accounts/management/giveup')
|
129
144
|
end
|
130
145
|
|
131
|
-
test 'map
|
132
|
-
assert_recognizes({:controller => 'devise/
|
146
|
+
test 'map deletes with :sign_out_via option' do
|
147
|
+
assert_recognizes({:controller => 'devise/sessions', :action => 'destroy'}, {:path => '/sign_out_via/deletes/sign_out', :method => :delete})
|
148
|
+
assert_raise ActionController::RoutingError do
|
149
|
+
assert_recognizes({:controller => 'devise/sessions', :action => 'destroy'}, {:path => '/sign_out_via/deletes/sign_out', :method => :get})
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
test 'map posts with :sign_out_via option' do
|
154
|
+
assert_recognizes({:controller => 'devise/sessions', :action => 'destroy'}, {:path => '/sign_out_via/posts/sign_out', :method => :post})
|
155
|
+
assert_raise ActionController::RoutingError do
|
156
|
+
assert_recognizes({:controller => 'devise/sessions', :action => 'destroy'}, {:path => '/sign_out_via/posts/sign_out', :method => :get})
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
test 'map delete_or_posts with :sign_out_via option' do
|
161
|
+
assert_recognizes({:controller => 'devise/sessions', :action => 'destroy'}, {:path => '/sign_out_via/delete_or_posts/sign_out', :method => :post})
|
162
|
+
assert_recognizes({:controller => 'devise/sessions', :action => 'destroy'}, {:path => '/sign_out_via/delete_or_posts/sign_out', :method => :delete})
|
163
|
+
assert_raise ActionController::RoutingError do
|
164
|
+
assert_recognizes({:controller => 'devise/sessions', :action => 'destroy'}, {:path => '/sign_out_via/delete_or_posts/sign_out', :method => :get})
|
165
|
+
end
|
133
166
|
end
|
134
167
|
end
|
135
168
|
|
data/test/support/integration.rb
CHANGED
@@ -10,8 +10,8 @@ class ActionDispatch::IntegrationTest
|
|
10
10
|
user = User.create!(
|
11
11
|
:username => 'usertest',
|
12
12
|
:email => options[:email] || 'user@test.com',
|
13
|
-
:password => '123456',
|
14
|
-
:password_confirmation => '123456',
|
13
|
+
:password => options[:password] || '123456',
|
14
|
+
:password_confirmation => options[:password] || '123456',
|
15
15
|
:created_at => Time.now.utc
|
16
16
|
)
|
17
17
|
user.confirm! unless options[:confirm] == false
|
@@ -32,7 +32,7 @@ class ActionDispatch::IntegrationTest
|
|
32
32
|
def sign_in_as_user(options={}, &block)
|
33
33
|
user = create_user(options)
|
34
34
|
visit_with_option options[:visit], new_user_session_path
|
35
|
-
fill_in 'email', :with => 'user@test.com'
|
35
|
+
fill_in 'email', :with => options[:email] || 'user@test.com'
|
36
36
|
fill_in 'password', :with => options[:password] || '123456'
|
37
37
|
check 'remember me' if options[:remember_me] == true
|
38
38
|
yield if block_given?
|
data/test/test_helper.rb
CHANGED
@@ -17,6 +17,8 @@ Webrat.configure do |config|
|
|
17
17
|
config.open_error_files = false
|
18
18
|
end
|
19
19
|
|
20
|
+
Devise::OmniAuth.test_mode!
|
21
|
+
|
20
22
|
# Add support to load paths so we can overwrite broken webrat setup
|
21
23
|
$:.unshift File.expand_path('../support', __FILE__)
|
22
24
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
data/test/test_helpers_test.rb
CHANGED
@@ -53,6 +53,35 @@ class TestHelpersTest < ActionController::TestCase
|
|
53
53
|
assert_redirected_to new_user_session_path
|
54
54
|
end
|
55
55
|
|
56
|
+
test "defined Warden after_authentication callback should not be called when sign_in is called" do
|
57
|
+
begin
|
58
|
+
Warden::Manager.after_authentication do |user, auth, opts|
|
59
|
+
flunk "callback was called while it should not"
|
60
|
+
end
|
61
|
+
|
62
|
+
user = create_user
|
63
|
+
user.confirm!
|
64
|
+
sign_in user
|
65
|
+
ensure
|
66
|
+
Warden::Manager._after_set_user.pop
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
test "defined Warden before_logout callback should not be called when sign_out is called" do
|
71
|
+
begin
|
72
|
+
Warden::Manager.before_logout do |user, auth, opts|
|
73
|
+
flunk "callback was called while it should not"
|
74
|
+
end
|
75
|
+
user = create_user
|
76
|
+
user.confirm!
|
77
|
+
|
78
|
+
sign_in user
|
79
|
+
sign_out user
|
80
|
+
ensure
|
81
|
+
Warden::Manager._before_logout.pop
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
56
85
|
test "allows to sign in with different users" do
|
57
86
|
first_user = create_user
|
58
87
|
first_user.confirm!
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 7712074
|
5
|
+
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 2
|
9
|
+
- rc
|
10
|
+
version: 1.2.rc
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Jos\xC3\xA9 Valim"
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2010-11-26 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -36,9 +36,25 @@ dependencies:
|
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: *id001
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
name:
|
39
|
+
name: orm_adapter
|
40
40
|
prerelease: false
|
41
41
|
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 27
|
47
|
+
segments:
|
48
|
+
- 0
|
49
|
+
- 0
|
50
|
+
- 2
|
51
|
+
version: 0.0.2
|
52
|
+
type: :runtime
|
53
|
+
version_requirements: *id002
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: bcrypt-ruby
|
56
|
+
prerelease: false
|
57
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
58
|
none: false
|
43
59
|
requirements:
|
44
60
|
- - ~>
|
@@ -50,7 +66,7 @@ dependencies:
|
|
50
66
|
- 2
|
51
67
|
version: 2.1.2
|
52
68
|
type: :runtime
|
53
|
-
version_requirements: *
|
69
|
+
version_requirements: *id003
|
54
70
|
description: Flexible authentication solution for Rails with Warden
|
55
71
|
email: contact@plataformatec.com.br
|
56
72
|
executables: []
|
@@ -59,19 +75,14 @@ extensions: []
|
|
59
75
|
|
60
76
|
extra_rdoc_files:
|
61
77
|
- CHANGELOG.rdoc
|
62
|
-
- Gemfile.lock
|
63
78
|
- MIT-LICENSE
|
64
79
|
- README.rdoc
|
65
|
-
- TODO
|
66
80
|
files:
|
67
81
|
- CHANGELOG.rdoc
|
68
|
-
- Gemfile
|
69
|
-
- Gemfile.lock
|
70
82
|
- MIT-LICENSE
|
71
83
|
- README.rdoc
|
72
|
-
- Rakefile
|
73
|
-
- TODO
|
74
84
|
- app/controllers/devise/confirmations_controller.rb
|
85
|
+
- app/controllers/devise/omniauth_callbacks_controller.rb
|
75
86
|
- app/controllers/devise/passwords_controller.rb
|
76
87
|
- app/controllers/devise/registrations_controller.rb
|
77
88
|
- app/controllers/devise/sessions_controller.rb
|
@@ -97,7 +108,6 @@ files:
|
|
97
108
|
- lib/devise/controllers/url_helpers.rb
|
98
109
|
- lib/devise/encryptors/authlogic_sha512.rb
|
99
110
|
- lib/devise/encryptors/base.rb
|
100
|
-
- lib/devise/encryptors/bcrypt.rb
|
101
111
|
- lib/devise/encryptors/clearance_sha1.rb
|
102
112
|
- lib/devise/encryptors/restful_authentication_sha1.rb
|
103
113
|
- lib/devise/encryptors/sha1.rb
|
@@ -113,7 +123,9 @@ files:
|
|
113
123
|
- lib/devise/models/authenticatable.rb
|
114
124
|
- lib/devise/models/confirmable.rb
|
115
125
|
- lib/devise/models/database_authenticatable.rb
|
126
|
+
- lib/devise/models/encryptable.rb
|
116
127
|
- lib/devise/models/lockable.rb
|
128
|
+
- lib/devise/models/omniauthable.rb
|
117
129
|
- lib/devise/models/recoverable.rb
|
118
130
|
- lib/devise/models/registerable.rb
|
119
131
|
- lib/devise/models/rememberable.rb
|
@@ -122,6 +134,10 @@ files:
|
|
122
134
|
- lib/devise/models/trackable.rb
|
123
135
|
- lib/devise/models/validatable.rb
|
124
136
|
- lib/devise/modules.rb
|
137
|
+
- lib/devise/omniauth.rb
|
138
|
+
- lib/devise/omniauth/config.rb
|
139
|
+
- lib/devise/omniauth/test_helpers.rb
|
140
|
+
- lib/devise/omniauth/url_helpers.rb
|
125
141
|
- lib/devise/orm/active_record.rb
|
126
142
|
- lib/devise/orm/mongoid.rb
|
127
143
|
- lib/devise/path_checker.rb
|
@@ -142,8 +158,6 @@ files:
|
|
142
158
|
- lib/generators/devise/install_generator.rb
|
143
159
|
- lib/generators/devise/orm_helpers.rb
|
144
160
|
- lib/generators/devise/views_generator.rb
|
145
|
-
- lib/generators/devise_install_generator.rb
|
146
|
-
- lib/generators/devise_views_generator.rb
|
147
161
|
- lib/generators/mongoid/devise_generator.rb
|
148
162
|
- lib/generators/templates/README
|
149
163
|
- lib/generators/templates/devise.rb
|
@@ -153,12 +167,15 @@ files:
|
|
153
167
|
- test/devise_test.rb
|
154
168
|
- test/encryptors_test.rb
|
155
169
|
- test/failure_app_test.rb
|
156
|
-
- test/
|
170
|
+
- test/generators/generators_test_helper.rb
|
171
|
+
- test/generators/install_generator_test.rb
|
172
|
+
- test/generators/views_generator_test.rb
|
157
173
|
- test/integration/authenticatable_test.rb
|
158
174
|
- test/integration/confirmable_test.rb
|
159
175
|
- test/integration/database_authenticatable_test.rb
|
160
176
|
- test/integration/http_authenticatable_test.rb
|
161
177
|
- test/integration/lockable_test.rb
|
178
|
+
- test/integration/omniauthable_test.rb
|
162
179
|
- test/integration/recoverable_test.rb
|
163
180
|
- test/integration/registerable_test.rb
|
164
181
|
- test/integration/rememberable_test.rb
|
@@ -171,6 +188,7 @@ files:
|
|
171
188
|
- test/mapping_test.rb
|
172
189
|
- test/models/confirmable_test.rb
|
173
190
|
- test/models/database_authenticatable_test.rb
|
191
|
+
- test/models/encryptable_test.rb
|
174
192
|
- test/models/lockable_test.rb
|
175
193
|
- test/models/recoverable_test.rb
|
176
194
|
- test/models/rememberable_test.rb
|
@@ -179,17 +197,19 @@ files:
|
|
179
197
|
- test/models/trackable_test.rb
|
180
198
|
- test/models/validatable_test.rb
|
181
199
|
- test/models_test.rb
|
200
|
+
- test/omniauth/url_helpers_test.rb
|
182
201
|
- test/orm/active_record.rb
|
183
202
|
- test/orm/mongoid.rb
|
184
203
|
- test/rails_app/app/active_record/admin.rb
|
185
204
|
- test/rails_app/app/active_record/shim.rb
|
186
205
|
- test/rails_app/app/active_record/user.rb
|
206
|
+
- test/rails_app/app/controllers/admins/sessions_controller.rb
|
187
207
|
- test/rails_app/app/controllers/admins_controller.rb
|
188
208
|
- test/rails_app/app/controllers/application_controller.rb
|
189
209
|
- test/rails_app/app/controllers/home_controller.rb
|
190
210
|
- test/rails_app/app/controllers/publisher/registrations_controller.rb
|
191
211
|
- test/rails_app/app/controllers/publisher/sessions_controller.rb
|
192
|
-
- test/rails_app/app/controllers/
|
212
|
+
- test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
|
193
213
|
- test/rails_app/app/controllers/users_controller.rb
|
194
214
|
- test/rails_app/app/helpers/application_helper.rb
|
195
215
|
- test/rails_app/app/mongoid/admin.rb
|
@@ -208,11 +228,12 @@ files:
|
|
208
228
|
- test/rails_app/config/routes.rb
|
209
229
|
- test/rails_app/db/migrate/20100401102949_create_tables.rb
|
210
230
|
- test/rails_app/db/schema.rb
|
231
|
+
- test/rails_app/lib/shared_admin.rb
|
232
|
+
- test/rails_app/lib/shared_user.rb
|
211
233
|
- test/routes_test.rb
|
212
234
|
- test/support/assertions.rb
|
213
235
|
- test/support/helpers.rb
|
214
236
|
- test/support/integration.rb
|
215
|
-
- test/support/test_silencer.rb
|
216
237
|
- test/support/webrat/integrations/rails.rb
|
217
238
|
- test/test_helper.rb
|
218
239
|
- test/test_helpers_test.rb
|
@@ -221,8 +242,8 @@ homepage: http://github.com/plataformatec/devise
|
|
221
242
|
licenses: []
|
222
243
|
|
223
244
|
post_install_message:
|
224
|
-
rdoc_options:
|
225
|
-
|
245
|
+
rdoc_options:
|
246
|
+
- --charset=UTF-8
|
226
247
|
require_paths:
|
227
248
|
- lib
|
228
249
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -237,16 +258,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
237
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
259
|
none: false
|
239
260
|
requirements:
|
240
|
-
- - "
|
261
|
+
- - ">"
|
241
262
|
- !ruby/object:Gem::Version
|
242
|
-
hash:
|
263
|
+
hash: 25
|
243
264
|
segments:
|
244
|
-
-
|
245
|
-
|
265
|
+
- 1
|
266
|
+
- 3
|
267
|
+
- 1
|
268
|
+
version: 1.3.1
|
246
269
|
requirements: []
|
247
270
|
|
248
271
|
rubyforge_project:
|
249
|
-
rubygems_version: 1.
|
272
|
+
rubygems_version: 1.3.7
|
250
273
|
signing_key:
|
251
274
|
specification_version: 3
|
252
275
|
summary: Flexible authentication solution for Rails with Warden
|
@@ -257,12 +280,15 @@ test_files:
|
|
257
280
|
- test/devise_test.rb
|
258
281
|
- test/encryptors_test.rb
|
259
282
|
- test/failure_app_test.rb
|
260
|
-
- test/
|
283
|
+
- test/generators/generators_test_helper.rb
|
284
|
+
- test/generators/install_generator_test.rb
|
285
|
+
- test/generators/views_generator_test.rb
|
261
286
|
- test/integration/authenticatable_test.rb
|
262
287
|
- test/integration/confirmable_test.rb
|
263
288
|
- test/integration/database_authenticatable_test.rb
|
264
289
|
- test/integration/http_authenticatable_test.rb
|
265
290
|
- test/integration/lockable_test.rb
|
291
|
+
- test/integration/omniauthable_test.rb
|
266
292
|
- test/integration/recoverable_test.rb
|
267
293
|
- test/integration/registerable_test.rb
|
268
294
|
- test/integration/rememberable_test.rb
|
@@ -275,6 +301,7 @@ test_files:
|
|
275
301
|
- test/mapping_test.rb
|
276
302
|
- test/models/confirmable_test.rb
|
277
303
|
- test/models/database_authenticatable_test.rb
|
304
|
+
- test/models/encryptable_test.rb
|
278
305
|
- test/models/lockable_test.rb
|
279
306
|
- test/models/recoverable_test.rb
|
280
307
|
- test/models/rememberable_test.rb
|
@@ -283,17 +310,19 @@ test_files:
|
|
283
310
|
- test/models/trackable_test.rb
|
284
311
|
- test/models/validatable_test.rb
|
285
312
|
- test/models_test.rb
|
313
|
+
- test/omniauth/url_helpers_test.rb
|
286
314
|
- test/orm/active_record.rb
|
287
315
|
- test/orm/mongoid.rb
|
288
316
|
- test/rails_app/app/active_record/admin.rb
|
289
317
|
- test/rails_app/app/active_record/shim.rb
|
290
318
|
- test/rails_app/app/active_record/user.rb
|
319
|
+
- test/rails_app/app/controllers/admins/sessions_controller.rb
|
291
320
|
- test/rails_app/app/controllers/admins_controller.rb
|
292
321
|
- test/rails_app/app/controllers/application_controller.rb
|
293
322
|
- test/rails_app/app/controllers/home_controller.rb
|
294
323
|
- test/rails_app/app/controllers/publisher/registrations_controller.rb
|
295
324
|
- test/rails_app/app/controllers/publisher/sessions_controller.rb
|
296
|
-
- test/rails_app/app/controllers/
|
325
|
+
- test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
|
297
326
|
- test/rails_app/app/controllers/users_controller.rb
|
298
327
|
- test/rails_app/app/helpers/application_helper.rb
|
299
328
|
- test/rails_app/app/mongoid/admin.rb
|
@@ -312,11 +341,12 @@ test_files:
|
|
312
341
|
- test/rails_app/config/routes.rb
|
313
342
|
- test/rails_app/db/migrate/20100401102949_create_tables.rb
|
314
343
|
- test/rails_app/db/schema.rb
|
344
|
+
- test/rails_app/lib/shared_admin.rb
|
345
|
+
- test/rails_app/lib/shared_user.rb
|
315
346
|
- test/routes_test.rb
|
316
347
|
- test/support/assertions.rb
|
317
348
|
- test/support/helpers.rb
|
318
349
|
- test/support/integration.rb
|
319
|
-
- test/support/test_silencer.rb
|
320
350
|
- test/support/webrat/integrations/rails.rb
|
321
351
|
- test/test_helper.rb
|
322
352
|
- test/test_helpers_test.rb
|