devise_traceable 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,6 +3,7 @@ require 'rake'
3
3
  require 'rake/rdoctask'
4
4
  require 'rake/gempackagetask'
5
5
  require 'rake/testtask'
6
+ require File.join(File.dirname(__FILE__), 'lib', 'devise_traceable', 'version')
6
7
 
7
8
  Rake::TestTask.new(:test) do |t|
8
9
  t.libs << 'lib'
@@ -27,7 +28,7 @@ spec = Gem::Specification.new do |s|
27
28
  s.description = "Devise Traceable For Traceing Devise Models Logins and Logouts in separate model table"
28
29
  s.files = FileList["[A-Z]*", "{lib}/**/*"]
29
30
  s.require_paths = ["lib"]
30
- s.version = "0.0.2"
31
+ s.version = DeviseTraceable::VERSION.dup
31
32
  s.email = "sbertel@mobithought.com"
32
33
  s.homepage = "http://github.com/shenoudab/devise_traceable"
33
34
  s.author = 'Shenouda Bertel'
@@ -4,14 +4,15 @@
4
4
  # not trigger it.
5
5
 
6
6
  Warden::Manager.after_set_user :except => :fetch do |record, warden, options|
7
- puts record
7
+ puts "Shenouda AfterSETUser" + record
8
8
  if record.respond_to?(:insert_login!) #&& warden.authenticated?(options[:scope])
9
+ puts "WardenRequest" + warden.request
9
10
  record.insert_login!(warden.request)
10
11
  end
11
12
  end
12
13
 
13
14
  Warden::Manager.before_logout do |record, warden, opts|
14
- puts record
15
+ puts "Shenouda Before Logout" + record
15
16
  if record.respond_to?(:update_logout!)
16
17
  record.update_logout!(warden.request)
17
18
  end
@@ -2,6 +2,6 @@ require 'devise_traceable'
2
2
 
3
3
  module DeviseTraceable
4
4
  class Engine < ::Rails::Engine
5
- engine_name :devise_taceable
5
+
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module DeviseTraceable
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
@@ -1,6 +1,7 @@
1
1
  unless defined?(Devise)
2
2
  require 'devise'
3
3
  end
4
+ require 'devise_traceable'
4
5
 
5
6
  Devise.add_module :traceable, :model => 'devise_traceable/model'
6
7
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Shenouda Bertel