devise-jdguyot 1.2.rc

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. data/.gitignore +10 -0
  2. data/CHANGELOG.rdoc +532 -0
  3. data/Gemfile +29 -0
  4. data/Gemfile.lock +152 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.rdoc +353 -0
  7. data/Rakefile +36 -0
  8. data/TODO +4 -0
  9. data/app/controllers/devise/confirmations_controller.rb +33 -0
  10. data/app/controllers/devise/omniauth_callbacks_controller.rb +26 -0
  11. data/app/controllers/devise/passwords_controller.rb +41 -0
  12. data/app/controllers/devise/registrations_controller.rb +110 -0
  13. data/app/controllers/devise/sessions_controller.rb +25 -0
  14. data/app/controllers/devise/unlocks_controller.rb +34 -0
  15. data/app/helpers/devise_helper.rb +19 -0
  16. data/app/mailers/devise/mailer.rb +88 -0
  17. data/app/views/devise/confirmations/new.html.erb +12 -0
  18. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  19. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  20. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  21. data/app/views/devise/passwords/edit.html.erb +16 -0
  22. data/app/views/devise/passwords/new.html.erb +12 -0
  23. data/app/views/devise/registrations/edit.html.erb +25 -0
  24. data/app/views/devise/registrations/new.html.erb +18 -0
  25. data/app/views/devise/sessions/new.html.erb +17 -0
  26. data/app/views/devise/shared/_links.erb +25 -0
  27. data/app/views/devise/unlocks/new.html.erb +12 -0
  28. data/config/locales/en.yml +46 -0
  29. data/devise.gemspec +25 -0
  30. data/lib/devise/controllers/helpers.rb +227 -0
  31. data/lib/devise/controllers/internal_helpers.rb +119 -0
  32. data/lib/devise/controllers/scoped_views.rb +33 -0
  33. data/lib/devise/controllers/url_helpers.rb +39 -0
  34. data/lib/devise/encryptors/authlogic_sha512.rb +19 -0
  35. data/lib/devise/encryptors/base.rb +20 -0
  36. data/lib/devise/encryptors/clearance_sha1.rb +17 -0
  37. data/lib/devise/encryptors/restful_authentication_sha1.rb +22 -0
  38. data/lib/devise/encryptors/sha1.rb +25 -0
  39. data/lib/devise/encryptors/sha512.rb +25 -0
  40. data/lib/devise/failure_app.rb +132 -0
  41. data/lib/devise/hooks/activatable.rb +11 -0
  42. data/lib/devise/hooks/forgetable.rb +12 -0
  43. data/lib/devise/hooks/rememberable.rb +48 -0
  44. data/lib/devise/hooks/timeoutable.rb +22 -0
  45. data/lib/devise/hooks/trackable.rb +9 -0
  46. data/lib/devise/mapping.rb +110 -0
  47. data/lib/devise/models/authenticatable.rb +146 -0
  48. data/lib/devise/models/confirmable.rb +160 -0
  49. data/lib/devise/models/database_authenticatable.rb +100 -0
  50. data/lib/devise/models/encryptable.rb +72 -0
  51. data/lib/devise/models/lockable.rb +169 -0
  52. data/lib/devise/models/omniauthable.rb +23 -0
  53. data/lib/devise/models/recoverable.rb +123 -0
  54. data/lib/devise/models/registerable.rb +21 -0
  55. data/lib/devise/models/rememberable.rb +130 -0
  56. data/lib/devise/models/timeoutable.rb +43 -0
  57. data/lib/devise/models/token_authenticatable.rb +72 -0
  58. data/lib/devise/models/trackable.rb +30 -0
  59. data/lib/devise/models/validatable.rb +65 -0
  60. data/lib/devise/models.rb +68 -0
  61. data/lib/devise/modules.rb +30 -0
  62. data/lib/devise/omniauth/config.rb +30 -0
  63. data/lib/devise/omniauth/test_helpers.rb +57 -0
  64. data/lib/devise/omniauth/url_helpers.rb +29 -0
  65. data/lib/devise/omniauth.rb +47 -0
  66. data/lib/devise/orm/active_record.rb +38 -0
  67. data/lib/devise/orm/mongoid.rb +31 -0
  68. data/lib/devise/path_checker.rb +18 -0
  69. data/lib/devise/rails/routes.rb +292 -0
  70. data/lib/devise/rails/warden_compat.rb +125 -0
  71. data/lib/devise/rails.rb +50 -0
  72. data/lib/devise/schema.rb +97 -0
  73. data/lib/devise/strategies/authenticatable.rb +150 -0
  74. data/lib/devise/strategies/base.rb +15 -0
  75. data/lib/devise/strategies/database_authenticatable.rb +21 -0
  76. data/lib/devise/strategies/rememberable.rb +51 -0
  77. data/lib/devise/strategies/token_authenticatable.rb +53 -0
  78. data/lib/devise/test_helpers.rb +100 -0
  79. data/lib/devise/version.rb +3 -0
  80. data/lib/devise.rb +381 -0
  81. data/lib/generators/active_record/devise_generator.rb +28 -0
  82. data/lib/generators/active_record/templates/migration.rb +31 -0
  83. data/lib/generators/devise/devise_generator.rb +17 -0
  84. data/lib/generators/devise/install_generator.rb +24 -0
  85. data/lib/generators/devise/orm_helpers.rb +23 -0
  86. data/lib/generators/devise/views_generator.rb +106 -0
  87. data/lib/generators/mongoid/devise_generator.rb +17 -0
  88. data/lib/generators/templates/README +25 -0
  89. data/lib/generators/templates/devise.rb +186 -0
  90. data/test/controllers/helpers_test.rb +237 -0
  91. data/test/controllers/internal_helpers_test.rb +72 -0
  92. data/test/controllers/url_helpers_test.rb +59 -0
  93. data/test/devise_test.rb +65 -0
  94. data/test/encryptors_test.rb +30 -0
  95. data/test/failure_app_test.rb +187 -0
  96. data/test/generators/active_record_generator_test.rb +24 -0
  97. data/test/generators/install_generator_test.rb +13 -0
  98. data/test/generators/mongoid_generator_test.rb +22 -0
  99. data/test/generators/views_generator_test.rb +35 -0
  100. data/test/indifferent_hash.rb +33 -0
  101. data/test/integration/authenticatable_test.rb +447 -0
  102. data/test/integration/confirmable_test.rb +104 -0
  103. data/test/integration/database_authenticatable_test.rb +60 -0
  104. data/test/integration/http_authenticatable_test.rb +74 -0
  105. data/test/integration/lockable_test.rb +109 -0
  106. data/test/integration/omniauthable_test.rb +107 -0
  107. data/test/integration/recoverable_test.rb +160 -0
  108. data/test/integration/registerable_test.rb +179 -0
  109. data/test/integration/rememberable_test.rb +180 -0
  110. data/test/integration/timeoutable_test.rb +89 -0
  111. data/test/integration/token_authenticatable_test.rb +99 -0
  112. data/test/integration/trackable_test.rb +64 -0
  113. data/test/mailers/confirmation_instructions_test.rb +84 -0
  114. data/test/mailers/reset_password_instructions_test.rb +72 -0
  115. data/test/mailers/unlock_instructions_test.rb +66 -0
  116. data/test/mapping_test.rb +119 -0
  117. data/test/models/confirmable_test.rb +221 -0
  118. data/test/models/database_authenticatable_test.rb +98 -0
  119. data/test/models/encryptable_test.rb +65 -0
  120. data/test/models/lockable_test.rb +204 -0
  121. data/test/models/recoverable_test.rb +190 -0
  122. data/test/models/rememberable_test.rb +279 -0
  123. data/test/models/timeoutable_test.rb +28 -0
  124. data/test/models/token_authenticatable_test.rb +37 -0
  125. data/test/models/trackable_test.rb +5 -0
  126. data/test/models/validatable_test.rb +99 -0
  127. data/test/models_test.rb +84 -0
  128. data/test/omniauth/url_helpers_test.rb +47 -0
  129. data/test/orm/active_record.rb +9 -0
  130. data/test/orm/mongoid.rb +11 -0
  131. data/test/rails_app/Rakefile +10 -0
  132. data/test/rails_app/app/active_record/admin.rb +6 -0
  133. data/test/rails_app/app/active_record/shim.rb +2 -0
  134. data/test/rails_app/app/active_record/user.rb +8 -0
  135. data/test/rails_app/app/controllers/admins/sessions_controller.rb +6 -0
  136. data/test/rails_app/app/controllers/admins_controller.rb +6 -0
  137. data/test/rails_app/app/controllers/application_controller.rb +8 -0
  138. data/test/rails_app/app/controllers/home_controller.rb +16 -0
  139. data/test/rails_app/app/controllers/publisher/registrations_controller.rb +2 -0
  140. data/test/rails_app/app/controllers/publisher/sessions_controller.rb +2 -0
  141. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +7 -0
  142. data/test/rails_app/app/controllers/users_controller.rb +18 -0
  143. data/test/rails_app/app/helpers/application_helper.rb +3 -0
  144. data/test/rails_app/app/mongoid/admin.rb +9 -0
  145. data/test/rails_app/app/mongoid/shim.rb +29 -0
  146. data/test/rails_app/app/mongoid/user.rb +10 -0
  147. data/test/rails_app/app/views/admins/index.html.erb +1 -0
  148. data/test/rails_app/app/views/admins/sessions/new.html.erb +2 -0
  149. data/test/rails_app/app/views/home/index.html.erb +1 -0
  150. data/test/rails_app/app/views/home/private.html.erb +1 -0
  151. data/test/rails_app/app/views/layouts/application.html.erb +24 -0
  152. data/test/rails_app/app/views/users/index.html.erb +1 -0
  153. data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +1 -0
  154. data/test/rails_app/app/views/users/sessions/new.html.erb +1 -0
  155. data/test/rails_app/config/application.rb +40 -0
  156. data/test/rails_app/config/boot.rb +13 -0
  157. data/test/rails_app/config/database.yml +18 -0
  158. data/test/rails_app/config/environment.rb +5 -0
  159. data/test/rails_app/config/environments/development.rb +19 -0
  160. data/test/rails_app/config/environments/production.rb +33 -0
  161. data/test/rails_app/config/environments/test.rb +33 -0
  162. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  163. data/test/rails_app/config/initializers/devise.rb +176 -0
  164. data/test/rails_app/config/initializers/inflections.rb +2 -0
  165. data/test/rails_app/config/initializers/secret_token.rb +2 -0
  166. data/test/rails_app/config/routes.rb +55 -0
  167. data/test/rails_app/config.ru +4 -0
  168. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +31 -0
  169. data/test/rails_app/db/schema.rb +52 -0
  170. data/test/rails_app/lib/shared_admin.rb +9 -0
  171. data/test/rails_app/lib/shared_user.rb +23 -0
  172. data/test/rails_app/public/404.html +26 -0
  173. data/test/rails_app/public/422.html +26 -0
  174. data/test/rails_app/public/500.html +26 -0
  175. data/test/rails_app/public/favicon.ico +0 -0
  176. data/test/rails_app/script/rails +10 -0
  177. data/test/routes_test.rb +179 -0
  178. data/test/support/assertions.rb +24 -0
  179. data/test/support/helpers.rb +60 -0
  180. data/test/support/integration.rb +88 -0
  181. data/test/support/locale/en.yml +4 -0
  182. data/test/support/webrat/integrations/rails.rb +24 -0
  183. data/test/test_helper.rb +29 -0
  184. data/test/test_helpers_test.rb +118 -0
  185. metadata +388 -0
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ **/*/log/*
2
+ **/*/tmp/*
3
+ *~
4
+ coverage/*
5
+ *.sqlite3
6
+ .bundle
7
+ rdoc/*
8
+ pkg
9
+ log
10
+ test/tmp/*
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,532 @@
1
+ * enhancements
2
+ * rails g devise:views supports slim templates (by github.com/fredwu)
3
+
4
+ * bug fix
5
+ * Fix an issue causing infinite redirects in production
6
+ * rails g destroy works properly with devise generators (by github.com/andmej)
7
+ * before_failure callbacks should work on test helpers (by github.com/twinge)
8
+ * rememberable cookie now is httponly by default (by github.com/JamesFerguson)
9
+
10
+ * deprecations
11
+ * Deprecated anybody_signed_in? in favor of signed_in? (by github.com/gavinhughes)
12
+
13
+ == 1.2.rc
14
+
15
+ * deprecations
16
+ * cookie_domain is deprecated in favor of cookie_options
17
+ * after_update_path_for can no longer be defined in ApplicationController
18
+
19
+ * enhancements
20
+ * Added OmniAuth support
21
+ * Added ORM adapter to abstract ORM iteraction
22
+ * sign_out_via is available in the router to configure the method used for sign out (by github.com/martinrehfeld)
23
+ * Improved Ajax requests handling in failure app (by github.com/spastorino)
24
+ * Added request_keys to easily use request specific values (like subdomain) in authentication
25
+ * Increased the size of friendly_token to 60 characters (reduces the chances of a successful brute attack)
26
+ * Ensure the friendly token does not include "_" or "-" since some e-mails may not autolink it properly (by github.com/rymai)
27
+ * Extracted encryptors into :encryptable for better bcrypt support
28
+ * :rememberable is now able to use salt as token if no remember_token is provided
29
+ * Store the salt in session and expire the session if the user changes his password
30
+ * Allow :stateless_token to be set to true avoiding users to be stored in session through token authentication
31
+ * cookie_options uses session_options values by default
32
+ * Sign up now check if the user is active or not and redirect him accordingly setting the inactive_signed_up message
33
+ * Use ActiveModel#to_key instead of #id
34
+ * sign_out_all_scopes now destroys the whole session
35
+ * Added case_insensitive_keys that automatically downcases the given keys, by default downcases only e-mail (by github.com/adahl)
36
+
37
+ * default behavior changes
38
+ * sign_out_all_scopes defaults to true as security measure
39
+ * http authenticatable is disabled by default
40
+ * Devise does not intercept 401 returned from applications
41
+
42
+ * bugfix
43
+ * after_sign_in_path_for always receives a resource
44
+ * Do not execute Warden::Callbacks on Devise::TestHelpers (by github.com/sgronblo)
45
+ * Allow password recovery and account unlocking to change used keys (by github.com/RStankov)
46
+ * FailureApp now properly handles nil request.format
47
+ * Fix a bug causing FailureApp to return with HTTP Auth Headers for IE7
48
+ * Ensure namespaces has proper scoped views
49
+ * Ensure Devise does not set empty flash messages (by github.com/sxross)
50
+
51
+ == 1.1.4
52
+
53
+ * bugfix
54
+ * Avoid session fixation attacks
55
+
56
+ == 1.1.3
57
+
58
+ * bugfix
59
+ * Add reply-to to e-mail headers by default
60
+ * Updated the views generator to respect the rails :template_engine option (by github.com/fredwu)
61
+ * Check the type of HTTP Authentication before using Basic headers
62
+ * Avoid invalid_salt errors by checking salt presence (by github.com/thibaudgg)
63
+ * Forget user deletes the right cookie before logout, not remembering the user anymore (by github.com/emtrane)
64
+ * Fix for failed first-ever logins on PostgreSQL where column default is nil (by github.com/bensie)
65
+ * :default options is now honored in migrations
66
+
67
+ == 1.1.2
68
+
69
+ * bugfix
70
+ * Compatibility with latest Rails routes schema
71
+
72
+ == 1.1.1
73
+
74
+ * bugfix
75
+ * Fix a small bug where generated locale file was empty on devise:install
76
+
77
+ == 1.1.0
78
+
79
+ * enhancements
80
+ * Rememberable module allows user to be remembered across browsers and is enabled by default (by github.com/trevorturk)
81
+ * Rememberable module allows you to activate the period the remember me token is extended (by github.com/trevorturk)
82
+ * devise_for can now be used together with scope method in routes but with a few limitations (check the documentation)
83
+ * Support `as` or `devise_scope` in the router to specify controller access scope
84
+ * HTTP Basic Auth can now be disabled/enabled for xhr(ajax) requests using http_authenticatable_on_xhr option (by github.com/pellja)
85
+
86
+ * bug fix
87
+ * Fix a bug in Devise::TestHelpers where current_user was returning a Response object for non active accounts
88
+ * Devise should respect script_name and path_info contracts
89
+ * Fix a bug when accessing a path with (.:format) (by github.com/klacointe)
90
+ * Do not add unlock routes unless unlock strategy is email or both
91
+ * Email should be case insensitive
92
+ * Store classes as string in session, to avoid serialization and stale data issues
93
+
94
+ * deprecations
95
+ * use_default_scope is deprecated and has no effect. Use :as or :devise_scope in the router instead
96
+
97
+ == 1.1.rc2
98
+
99
+ * enhancements
100
+ * Allow to set cookie domain for the remember token. (by github.com/mantas)
101
+ * Added navigational formats to specify when it should return a 302 and when a 401.
102
+ * Added authenticate(scope) support in routes (by github.com/wildchild)
103
+ * Added after_update_path_for to registrations controller (by github.com/thedelchop)
104
+ * Allow the mailer object to be replaced through config.mailer = "MyOwnMailer"
105
+
106
+ * bug fix
107
+ * Fix a bug where session was timing out on sign out
108
+
109
+ * deprecations
110
+ * bcrypt is now the default encryptor
111
+ * devise.mailer.confirmations_instructions now should be devise.mailer.confirmations_instructions.subject
112
+ * devise.mailer.user.confirmations_instructions now should be devise.mailer.confirmations_instructions.user_subject
113
+ * Generators now use Rails 3 syntax (devise:install) instead of devise_install
114
+
115
+ == 1.1.rc1
116
+
117
+ * enhancements
118
+ * Rails 3 compatibility
119
+ * All controllers and views are namespaced, for example: Devise::SessionsController and "devise/sessions"
120
+ * Devise.orm is deprecated. This reduces the required API to hook your ORM with devise
121
+ * Use metal for failure app
122
+ * HTML e-mails now have proper formatting
123
+ * Allow to give :skip and :controllers in routes
124
+ * Move trackable logic to the model
125
+ * E-mails now use any template available in the filesystem. Easy to create multipart e-mails
126
+ * E-mails asks headers_for in the model to set the proper headers
127
+ * Allow to specify haml in devise_views
128
+ * Compatibility with Mongoid
129
+ * Make config.devise available on config/application.rb
130
+ * TokenAuthenticatable now works with HTTP Basic Auth
131
+ * Allow :unlock_strategy to be :none and add :lock_strategy which can be :failed_attempts or none. Setting those values to :none means that you want to handle lock and unlocking by yourself
132
+ * No need to append ?unauthenticated=true in URLs anymore since Flash was moved to a middleware in Rails 3
133
+ * :activatable is included by default in your models
134
+
135
+ * bug fix
136
+ * Fix a bug with STI
137
+
138
+ * deprecations
139
+ * Rails 3 compatible only
140
+ * Removed support for MongoMapper
141
+ * Scoped views are no longer "sessions/users/new". Now use "users/sessions/new"
142
+ * Devise.orm is deprecated, just require "devise/orm/YOUR_ORM" instead
143
+ * Devise.default_url_options is deprecated, just modify ApplicationController.default_url_options
144
+ * All messages under devise.sessions, except :signed_in and :signed_out, should be moved to devise.failure
145
+ * :as and :scope in routes is deprecated. Use :path and :singular instead
146
+
147
+ == 1.0.8
148
+
149
+ * enhancements
150
+ * Support for latest MongoMapper
151
+ * Added anybody_signed_in? helper (by github.com/SSDany)
152
+
153
+ * bug fix
154
+ * confirmation_required? is properly honored on active? calls. (by github.com/paulrosania)
155
+
156
+ == 1.0.7
157
+
158
+ * bug fix
159
+ * Ensure password confirmation is always required
160
+
161
+ * deprecations
162
+ * authenticatable was deprecated and renamed to database_authenticatable
163
+ * confirmable is not included by default on generation
164
+
165
+ == 1.0.6
166
+
167
+ * bug fix
168
+ * Do not allow unlockable strategies based on time to access a controller.
169
+ * Do not send unlockable email several times.
170
+ * Allow controller to upstram custom! failures to Warden.
171
+
172
+ == 1.0.5
173
+
174
+ * bug fix
175
+ * Use prepend_before_filter in require_no_authentication.
176
+ * require_no_authentication on unlockable.
177
+ * Fix a bug when giving an association proxy to devise.
178
+ * Do not use lock! on lockable since it's part of ActiveRecord API.
179
+
180
+ == 1.0.4
181
+
182
+ * bug fix
183
+ * Fixed a bug when deleting an account with rememberable
184
+ * Fixed a bug with custom controllers
185
+
186
+ == 1.0.3
187
+
188
+ * enhancements
189
+ * HTML e-mails now have proper formatting
190
+ * Do not remove MongoMapper options in find
191
+
192
+ == 1.0.2
193
+
194
+ * enhancements
195
+ * Allows you set mailer content type (by github.com/glennr)
196
+
197
+ * bug fix
198
+ * Uses the same content type as request on http authenticatable 401 responses
199
+
200
+ == 1.0.1
201
+
202
+ * enhancements
203
+ * HttpAuthenticatable is not added by default automatically.
204
+ * Avoid mass assignment error messages with current password.
205
+
206
+ * bug fix
207
+ * Fixed encryptors autoload
208
+
209
+ == 1.0.0
210
+
211
+ * deprecation
212
+ * :old_password in update_with_password is deprecated, use :current_password instead
213
+
214
+ * enhancements
215
+ * Added Registerable
216
+ * Added Http Basic Authentication support
217
+ * Allow scoped_views to be customized per controller/mailer class
218
+ * [#99] Allow authenticatable to used in change_table statements
219
+
220
+ == 0.9.2
221
+
222
+ * bug fix
223
+ * Ensure inactive user cannot sign in
224
+ * Ensure redirect to proper url after sign up
225
+
226
+ * enhancements
227
+ * Added gemspec to repo
228
+ * Added token authenticatable (by github.com/grimen)
229
+
230
+ == 0.9.1
231
+
232
+ * bug fix
233
+ * Allow bigger salt size (by github.com/jgeiger)
234
+ * Fix relative url root
235
+
236
+ == 0.9.0
237
+
238
+ * deprecation
239
+ * devise :all is deprecated
240
+ * :success and :failure flash messages are now :notice and :alert
241
+
242
+ * enhancements
243
+ * Added devise lockable (by github.com/mhfs)
244
+ * Warden 0.9.0 compatibility
245
+ * Mongomapper 0.6.10 compatibility
246
+ * Added Devise.add_module as hooks for extensions (by github.com/grimen)
247
+ * Ruby 1.9.1 compatibility (by github.com/grimen)
248
+
249
+ * bug fix
250
+ * Accept path prefix not starting with slash
251
+ * url helpers should rely on find_scope!
252
+
253
+ == 0.8.2
254
+
255
+ * enhancements
256
+ * Allow Devise.mailer_sender to be a proc (by github.com/grimen)
257
+
258
+ * bug fix
259
+ * Fix bug with passenger, update is required to anyone deploying on passenger (by github.com/dvdpalm)
260
+
261
+ == 0.8.1
262
+
263
+ * enhancements
264
+ * Move salt to encryptors
265
+ * Devise::Lockable
266
+ * Moved view links into partial and I18n'ed them
267
+
268
+ * bug fix
269
+ * Bcrypt generator was not being loaded neither setting the proper salt
270
+
271
+ == 0.8.0
272
+
273
+ * enhancements
274
+ * Warden 0.8.0 compatibility
275
+ * Add an easy for map.connect "sign_in", :controller => "sessions", :action => "new" to work
276
+ * Added :bcrypt encryptor (by github.com/capotej)
277
+
278
+ * bug fix
279
+ * sign_in_count is also increased when user signs in via password change, confirmation, etc..
280
+ * More DataMapper compatibility (by github.com/lancecarlson)
281
+
282
+ * deprecation
283
+ * Removed DeviseMailer.sender
284
+
285
+ == 0.7.5
286
+
287
+ * enhancements
288
+ * Set a default value for mailer to avoid find_template issues
289
+ * Add models configuration to MongoMapper::EmbeddedDocument as well
290
+
291
+ == 0.7.4
292
+
293
+ * enhancements
294
+ * Extract Activatable from Confirmable
295
+ * Decouple Serializers from Devise modules
296
+
297
+ == 0.7.3
298
+
299
+ * bug fix
300
+ * Give scope to the proper model validation
301
+
302
+ * enhancements
303
+ * Mail views are scoped as well
304
+ * Added update_with_password for authenticatable
305
+ * Allow render_with_scope to accept :controller option
306
+
307
+ == 0.7.2
308
+
309
+ * deprecation
310
+ * Renamed reset_confirmation! to resend_confirmation!
311
+ * Copying locale is part of the installation process
312
+
313
+ * bug fix
314
+ * Fixed render_with_scope to work with all controllers
315
+ * Allow sign in with two different users in Devise::TestHelpers
316
+
317
+ == 0.7.1
318
+
319
+ * enhancements
320
+ * Small enhancements for other plugins compatibility (by github.com/grimen)
321
+
322
+ == 0.7.0
323
+
324
+ * deprecations
325
+ * :authenticatable is not included by default anymore
326
+
327
+ * enhancements
328
+ * Improve loading process
329
+ * Extract SessionSerializer from Authenticatable
330
+
331
+ == 0.6.3
332
+
333
+ * bug fix
334
+ * Added trackable to migrations
335
+ * Allow inflections to work
336
+
337
+ == 0.6.2
338
+
339
+ * enhancements
340
+ * More DataMapper compatibility
341
+ * Devise::Trackable - track sign in count, timestamps and ips
342
+
343
+ == 0.6.1
344
+
345
+ * enhancements
346
+ * Devise::Timeoutable - timeout sessions without activity
347
+ * DataMapper now accepts conditions
348
+
349
+ == 0.6.0
350
+
351
+ * deprecations
352
+ * :authenticatable is still included by default, but yields a deprecation warning
353
+
354
+ * enhancements
355
+ * Added DataMapper support
356
+ * Remove store_location from authenticatable strategy and add it to failure app
357
+ * Allow a strategy to be placed after authenticatable
358
+ * [#45] Do not rely attribute? methods, since they are not added on Datamapper
359
+
360
+ == 0.5.6
361
+
362
+ * enhancements
363
+ * [#42] Do not send nil to build (DataMapper compatibility)
364
+ * [#44] Allow to have scoped views
365
+
366
+ == 0.5.5
367
+
368
+ * enhancements
369
+ * Allow overwriting find for authentication method
370
+ * [#38] Remove Ruby 1.8.7 dependency
371
+
372
+ == 0.5.4
373
+
374
+ * deprecations
375
+ * Deprecate :singular in devise_for and use :scope instead
376
+
377
+ * enhancements
378
+ * [#37] Create after_sign_in_path_for and after_sign_out_path_for hooks to be
379
+ overwriten in ApplicationController
380
+ * Create sign_in_and_redirect and sign_out_and_redirect helpers
381
+ * Warden::Manager.default_scope is automatically configured to the first given scope
382
+
383
+ == 0.5.3
384
+
385
+ * bug fix
386
+ * MongoMapper now converts DateTime to Time
387
+ * Ensure all controllers are unloadable
388
+
389
+ * enhancements
390
+ * [#35] Moved friendly_token to Devise
391
+ * Added Devise.all, so you can freeze your app strategies
392
+ * Added Devise.apply_schema, so you can turn it to false in Datamapper or MongoMapper
393
+ in cases you don't want it be handlded automatically
394
+
395
+ == 0.5.2
396
+
397
+ * enhancements
398
+ * [#28] Improved sign_in and sign_out helpers to accepts resources
399
+ * [#28] Added stored_location_for as a helper
400
+ * [#20] Added test helpers
401
+
402
+ == 0.5.1
403
+
404
+ * enhancements
405
+ * Added serializers based on Warden ones
406
+ * Allow authentication keys to be set
407
+
408
+ == 0.5.0
409
+
410
+ * bug fix
411
+ * Fixed a bug where remember me module was not working properly
412
+
413
+ * enhancements
414
+ * Moved encryption strategy into the Encryptors module to allow several algorithms (by github.com/mhfs)
415
+ * Implemented encryptors for Clearance, Authlogic and Restful-Authentication (by github.com/mhfs)
416
+ * Added support for MongoMapper (by github.com/shingara)
417
+
418
+ == 0.4.3
419
+
420
+ * bug fix
421
+ * [#29] Authentication just fails if user cannot be serialized from session, without raising errors;
422
+ * Default configuration values should not overwrite user values;
423
+
424
+ == 0.4.2
425
+
426
+ * deprecations
427
+ * Renamed mail_sender to mailer_sender
428
+
429
+ * enhancements
430
+ * skip_before_filter added in Devise controllers
431
+ * Use home_or_root_path on require_no_authentication as well
432
+ * Added devise_controller?, useful to select or reject filters in ApplicationController
433
+ * Allow :path_prefix to be given to devise_for
434
+ * Allow default_url_options to be configured through devise (:path_prefix => "/:locale" is now supported)
435
+
436
+ == 0.4.1
437
+
438
+ * bug fix
439
+ * [#21] Ensure options can be set even if models were not loaded
440
+
441
+ == 0.4.0
442
+
443
+ * deprecations
444
+ * Notifier is deprecated, use DeviseMailer instead. Remember to rename
445
+ app/views/notifier to app/views/devise_mailer and I18n key from
446
+ devise.notifier to devise.mailer
447
+ * :authenticable calls are deprecated, use :authenticatable instead
448
+
449
+ * enhancements
450
+ * [#16] Allow devise to be more agnostic and do not require ActiveRecord to be loaded
451
+ * Allow Warden::Manager to be configured through Devise
452
+ * Created a generator which creates an initializer
453
+
454
+ == 0.3.0
455
+
456
+ * bug fix
457
+ * [#15] Allow yml messages to be configured by not using engine locales
458
+
459
+ * deprecations
460
+ * Renamed confirm_in to confirm_within
461
+ * [#14] Do not send confirmation messages when user changes his e-mail
462
+ * [#13] Renamed authenticable to authenticatable and added deprecation warnings
463
+
464
+ == 0.2.3
465
+
466
+ * enhancements
467
+ * Ensure fail! works inside strategies
468
+ * [#12] Make unauthenticated message (when you haven't signed in) different from invalid message
469
+
470
+ * bug fix
471
+ * Do not redirect on invalid authenticate
472
+ * Allow model configuration to be set to nil
473
+
474
+ == 0.2.2
475
+
476
+ * bug fix
477
+ * [#9] Fix a bug when using customized resources
478
+
479
+ == 0.2.1
480
+
481
+ * refactor
482
+ * Clean devise_views generator to use devise existing views
483
+
484
+ * enhancements
485
+ * [#7] Create instance variables (like @user) for each devise controller
486
+ * Use Devise::Controller::Helpers only internally
487
+
488
+ * bug fix
489
+ * [#6] Fix a bug with Mongrel and Ruby 1.8.6
490
+
491
+ == 0.2.0
492
+
493
+ * enhancements
494
+ * [#4] Allow option :null => true in authenticable migration
495
+ * [#3] Remove attr_accessible calls from devise modules
496
+ * Customizable time frame for rememberable with :remember_for config
497
+ * Customizable time frame for confirmable with :confirm_in config
498
+ * Generators for creating a resource and copy views
499
+
500
+ * optimize
501
+ * Do not load hooks or strategies if they are not used
502
+
503
+ * bug fixes
504
+ * [#2] Fixed requiring devise strategies
505
+
506
+ == 0.1.1
507
+
508
+ * bug fixes
509
+ * [#1] Fixed requiring devise mapping
510
+
511
+ == 0.1.0
512
+
513
+ * Devise::Authenticable
514
+ * Devise::Confirmable
515
+ * Devise::Recoverable
516
+ * Devise::Validatable
517
+ * Devise::Migratable
518
+ * Devise::Rememberable
519
+
520
+ * SessionsController
521
+ * PasswordsController
522
+ * ConfirmationsController
523
+
524
+ * Create an example app
525
+ * devise :all, :except => :rememberable
526
+ * Use sign_in and sign_out in SessionsController
527
+
528
+ * Mailer subjects namespaced by model
529
+ * Allow stretches and pepper per model
530
+
531
+ * Store session[:return_to] in session
532
+ * Sign user in automatically after confirming or changing it's password
data/Gemfile ADDED
@@ -0,0 +1,29 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ gem "rails", "~> 3.0.0"
6
+ gem "oa-oauth", :require => "omniauth/oauth"
7
+ gem "oa-openid", :require => "omniauth/openid"
8
+
9
+ group :test do
10
+ gem "webrat", "0.7.2", :require => false
11
+ gem "mocha", :require => false
12
+ end
13
+
14
+ platforms :jruby do
15
+ gem 'activerecord-jdbcsqlite3-adapter'
16
+ end
17
+
18
+ platforms :ruby do
19
+ group :test do
20
+ gem "sqlite3-ruby"
21
+ gem "ruby-debug", ">= 0.10.3" if RUBY_VERSION < '1.9'
22
+ end
23
+
24
+ group :mongoid do
25
+ gem "mongo", "1.1.2"
26
+ gem "mongoid", "2.0.0.beta.20"
27
+ gem "bson_ext", "1.1.2"
28
+ end
29
+ end