Permalink
Browse files

Update TODO, CHANGELOG and README.

  • Loading branch information...
josevalim committed Nov 24, 2009
1 parent f9c5dd6 commit 0434d72009e2f5ac58b9d8f7ad29b53020b490f4
Showing with 13 additions and 10 deletions.
  1. +3 −0 CHANGELOG.rdoc
  2. +1 −0 README.rdoc
  3. +0 −3 TODO
  4. +1 −1 lib/devise.rb
  5. +8 −6 test/integration/trackable_test.rb
View
@@ -1,3 +1,6 @@
+* enhancements
+ * Devise::Trackable - track sign in count, timestamps and ips
+
== 0.6.1
* enhancements
View
@@ -14,6 +14,7 @@ Right now it's composed of five mainly modules:
* Recoverable: takes care of reseting the user password and send reset instructions.
* Rememberable: manages generating and clearing token for remember the user from a saved cookie.
* Timeoutable: expires sessions without activity in a certain period of time.
+* Trackable: tracks sign in count, timestamps and ip.
* Validatable: creates all needed validations for email and password. It's totally optional, so you're able to to customize validations by yourself.
There's an example application using Devise at http://github.com/plataformatec/devise_example .
View
3 TODO
@@ -1,5 +1,2 @@
* Create update_with_password
* Make test run with different ORMs
-* Use request_ip in session cookies
-* Devise::BruteForceProtection
-* Devise::Trackeable
View
@@ -1,6 +1,6 @@
module Devise
ALL = [:authenticatable, :confirmable, :recoverable, :rememberable,
- :trackable, :timeoutable, :validatable].freeze
+ :timeoutable, :trackable, :validatable].freeze
# Maps controller names to devise modules
CONTROLLERS = {
@@ -1,6 +1,6 @@
require 'test/test_helper'
-class TrackableTest < ActionController::IntegrationTest
+class TrackableHooksTest < ActionController::IntegrationTest
test "current and last sign in timestamps are updated on each sign in" do
user = create_user
@@ -52,11 +52,13 @@ class TrackableTest < ActionController::IntegrationTest
end
test "does not update anything if user is signed out along the way" do
- user = create_user(:confirm => false)
- sign_in_as_user
+ swap Devise, :confirm_within => 0 do
+ user = create_user(:confirm => false)
+ sign_in_as_user
- user.reload
- assert_nil user.current_sign_in_at
- assert_nil user.last_sign_in_at
+ user.reload
+ assert_nil user.current_sign_in_at
+ assert_nil user.last_sign_in_at
+ end
end
end

0 comments on commit 0434d72

Please sign in to comment.