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.

Files changed (121) hide show
  1. data/CHANGELOG.rdoc +34 -26
  2. data/README.rdoc +134 -100
  3. data/app/controllers/devise/confirmations_controller.rb +1 -1
  4. data/app/controllers/devise/omniauth_callbacks_controller.rb +26 -0
  5. data/app/controllers/devise/passwords_controller.rb +1 -1
  6. data/app/controllers/devise/registrations_controller.rb +59 -6
  7. data/app/controllers/devise/sessions_controller.rb +3 -2
  8. data/app/controllers/devise/unlocks_controller.rb +1 -1
  9. data/app/helpers/devise_helper.rb +4 -2
  10. data/app/mailers/devise/mailer.rb +27 -10
  11. data/app/views/devise/confirmations/new.html.erb +1 -1
  12. data/app/views/devise/passwords/edit.html.erb +2 -2
  13. data/app/views/devise/passwords/new.html.erb +1 -1
  14. data/app/views/devise/registrations/edit.html.erb +1 -1
  15. data/app/views/devise/registrations/new.html.erb +1 -1
  16. data/app/views/devise/sessions/new.html.erb +1 -1
  17. data/app/views/devise/shared/_links.erb +6 -0
  18. data/app/views/devise/unlocks/new.html.erb +1 -1
  19. data/config/locales/en.yml +9 -2
  20. data/lib/devise.rb +116 -58
  21. data/lib/devise/controllers/helpers.rb +103 -107
  22. data/lib/devise/controllers/internal_helpers.rb +23 -7
  23. data/lib/devise/controllers/scoped_views.rb +4 -6
  24. data/lib/devise/controllers/url_helpers.rb +3 -5
  25. data/lib/devise/encryptors/base.rb +1 -1
  26. data/lib/devise/encryptors/restful_authentication_sha1.rb +4 -4
  27. data/lib/devise/failure_app.rb +29 -21
  28. data/lib/devise/hooks/forgetable.rb +2 -1
  29. data/lib/devise/hooks/rememberable.rb +11 -9
  30. data/lib/devise/mapping.rb +12 -5
  31. data/lib/devise/models.rb +0 -14
  32. data/lib/devise/models/authenticatable.rb +40 -30
  33. data/lib/devise/models/confirmable.rb +11 -15
  34. data/lib/devise/models/database_authenticatable.rb +23 -35
  35. data/lib/devise/models/encryptable.rb +65 -0
  36. data/lib/devise/models/lockable.rb +8 -7
  37. data/lib/devise/models/omniauthable.rb +23 -0
  38. data/lib/devise/models/recoverable.rb +5 -3
  39. data/lib/devise/models/registerable.rb +13 -0
  40. data/lib/devise/models/rememberable.rb +38 -30
  41. data/lib/devise/models/timeoutable.rb +20 -3
  42. data/lib/devise/models/token_authenticatable.rb +19 -7
  43. data/lib/devise/models/validatable.rb +16 -4
  44. data/lib/devise/modules.rb +15 -8
  45. data/lib/devise/omniauth.rb +47 -0
  46. data/lib/devise/omniauth/config.rb +30 -0
  47. data/lib/devise/omniauth/test_helpers.rb +57 -0
  48. data/lib/devise/omniauth/url_helpers.rb +29 -0
  49. data/lib/devise/orm/active_record.rb +2 -0
  50. data/lib/devise/orm/mongoid.rb +4 -2
  51. data/lib/devise/rails.rb +26 -46
  52. data/lib/devise/rails/routes.rb +64 -20
  53. data/lib/devise/rails/warden_compat.rb +18 -20
  54. data/lib/devise/schema.rb +13 -14
  55. data/lib/devise/strategies/authenticatable.rb +33 -7
  56. data/lib/devise/strategies/database_authenticatable.rb +1 -1
  57. data/lib/devise/strategies/rememberable.rb +1 -1
  58. data/lib/devise/strategies/token_authenticatable.rb +6 -2
  59. data/lib/devise/test_helpers.rb +11 -1
  60. data/lib/devise/version.rb +1 -1
  61. data/lib/generators/active_record/templates/migration.rb +1 -0
  62. data/lib/generators/devise/orm_helpers.rb +3 -2
  63. data/lib/generators/templates/devise.rb +70 -39
  64. data/test/controllers/helpers_test.rb +43 -67
  65. data/test/controllers/internal_helpers_test.rb +29 -8
  66. data/test/controllers/url_helpers_test.rb +2 -1
  67. data/test/failure_app_test.rb +56 -21
  68. data/test/generators/generators_test_helper.rb +4 -0
  69. data/test/generators/install_generator_test.rb +14 -0
  70. data/test/generators/views_generator_test.rb +37 -0
  71. data/test/integration/authenticatable_test.rb +147 -62
  72. data/test/integration/database_authenticatable_test.rb +22 -0
  73. data/test/integration/http_authenticatable_test.rb +12 -2
  74. data/test/integration/omniauthable_test.rb +107 -0
  75. data/test/integration/recoverable_test.rb +39 -20
  76. data/test/integration/registerable_test.rb +30 -4
  77. data/test/integration/rememberable_test.rb +57 -34
  78. data/test/integration/timeoutable_test.rb +10 -1
  79. data/test/integration/token_authenticatable_test.rb +12 -17
  80. data/test/mailers/confirmation_instructions_test.rb +4 -0
  81. data/test/mailers/reset_password_instructions_test.rb +4 -0
  82. data/test/mailers/unlock_instructions_test.rb +4 -0
  83. data/test/mapping_test.rb +37 -3
  84. data/test/models/confirmable_test.rb +3 -3
  85. data/test/models/database_authenticatable_test.rb +14 -71
  86. data/test/models/encryptable_test.rb +65 -0
  87. data/test/models/lockable_test.rb +17 -1
  88. data/test/models/recoverable_test.rb +17 -0
  89. data/test/models/rememberable_test.rb +186 -125
  90. data/test/models/token_authenticatable_test.rb +1 -13
  91. data/test/models_test.rb +5 -5
  92. data/test/omniauth/url_helpers_test.rb +47 -0
  93. data/test/rails_app/app/active_record/admin.rb +4 -1
  94. data/test/rails_app/app/active_record/user.rb +5 -4
  95. data/test/rails_app/app/controllers/{sessions_controller.rb → admins/sessions_controller.rb} +1 -1
  96. data/test/rails_app/app/controllers/home_controller.rb +9 -0
  97. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +7 -0
  98. data/test/rails_app/app/mongoid/admin.rb +4 -1
  99. data/test/rails_app/app/mongoid/shim.rb +16 -3
  100. data/test/rails_app/app/mongoid/user.rb +5 -5
  101. data/test/rails_app/config/initializers/devise.rb +52 -28
  102. data/test/rails_app/config/routes.rb +14 -6
  103. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +21 -17
  104. data/test/rails_app/db/schema.rb +17 -51
  105. data/test/rails_app/lib/shared_admin.rb +9 -0
  106. data/test/rails_app/lib/shared_user.rb +23 -0
  107. data/test/routes_test.rb +42 -9
  108. data/test/support/integration.rb +3 -3
  109. data/test/support/webrat/integrations/rails.rb +7 -0
  110. data/test/test_helper.rb +2 -0
  111. data/test/test_helpers_test.rb +29 -0
  112. metadata +60 -30
  113. data/Gemfile +0 -27
  114. data/Gemfile.lock +0 -115
  115. data/Rakefile +0 -55
  116. data/TODO +0 -3
  117. data/lib/devise/encryptors/bcrypt.rb +0 -19
  118. data/lib/generators/devise_install_generator.rb +0 -4
  119. data/lib/generators/devise_views_generator.rb +0 -4
  120. data/test/indifferent_hash.rb +0 -33
  121. data/test/support/test_silencer.rb +0 -5
@@ -1,81 +1,47 @@
1
- # This file is auto-generated from the current state of the database. Instead of editing this file,
2
- # please use the migrations feature of Active Record to incrementally modify your database, and
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 database schema. If you need
6
- # to create the application database on another system, you should be using db:schema:load, not running
7
- # all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
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", :default => ""
40
- t.string "encrypted_password", :default => ""
41
- t.string "password_salt", :default => ""
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.integer "sign_in_count", :default => 0
50
- t.datetime "current_sign_in_at"
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", :default => 0
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", :default => 0
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,9 @@
1
+ module SharedAdmin
2
+ extend ActiveSupport::Concern
3
+
4
+ included do
5
+ devise :database_authenticatable, :encryptable, :registerable,
6
+ :timeoutable, :recoverable, :rememberable, :lockable,
7
+ :unlock_strategy => :time
8
+ end
9
+ end
@@ -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
@@ -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, name)
92
- assert_equal result, @routes.url_helpers.send(name)
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 confirmation' do
124
- assert_recognizes({:controller => 'devise/confirmations', :action => 'new', :locale => 'en'}, '/en/accounts/verification/new')
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 unlock' do
128
- assert_recognizes({:controller => 'devise/unlocks', :action => 'new', :locale => 'en'}, '/en/accounts/unblock/new')
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 account with custom path name for registration' do
132
- assert_recognizes({:controller => 'devise/registrations', :action => 'new', :locale => 'en'}, '/en/accounts/management/register')
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
 
@@ -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?
@@ -7,6 +7,13 @@ module Webrat
7
7
  Rack::Utils.parse_nested_query(params)
8
8
  end
9
9
  end
10
+
11
+ module Logging
12
+ # Avoid RAILS_DEFAULT_LOGGER deprecation warning
13
+ def logger # :nodoc:
14
+ ::Rails.logger
15
+ end
16
+ end
10
17
  end
11
18
 
12
19
  module ActionDispatch #:nodoc:
@@ -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 }
@@ -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: 1
5
- prerelease:
4
+ hash: 7712074
5
+ prerelease: true
6
6
  segments:
7
7
  - 1
8
- - 1
9
- - 9
10
- version: 1.1.9
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: 2011-03-25 00:00:00 +01:00
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: bcrypt-ruby
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: *id002
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/indifferent_hash.rb
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/sessions_controller.rb
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: 3
263
+ hash: 25
243
264
  segments:
244
- - 0
245
- version: "0"
265
+ - 1
266
+ - 3
267
+ - 1
268
+ version: 1.3.1
246
269
  requirements: []
247
270
 
248
271
  rubyforge_project:
249
- rubygems_version: 1.5.3
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/indifferent_hash.rb
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/sessions_controller.rb
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