devise_castle 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/devise_castle/hooks.rb +3 -0
- data/lib/devise_castle/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43245bf115aa0218597885bc3ed9140b14dd5659
|
4
|
+
data.tar.gz: 5f65da1892251a537636b1b84e710c2e3430bf43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5e467806f6d9c0301ec39750bd1d20dee4bf2e2734accfe13c07e964bb4d3a0b4f46110eef2e4678324a6cce4b471ae148a4dca7241de1467bbd5a8cd7ca29e
|
7
|
+
data.tar.gz: 6d5d6dd38c8740ce9dedc2759fee06723152517a5a422ffbdf9dbff98e1ac6562fe2125c62cc2f100ffb3e60af952da03003c897349a3090595c2ba056edebc3
|
data/lib/devise_castle/hooks.rb
CHANGED
@@ -34,6 +34,9 @@ end
|
|
34
34
|
Warden::Manager.after_set_user :except => :fetch do |record, warden, opts|
|
35
35
|
if record.respond_to?(:castle_id)
|
36
36
|
castle = warden.request.env['castle']
|
37
|
+
castle.identify(record._castle_id, {
|
38
|
+
email: record.email
|
39
|
+
})
|
37
40
|
castle.track(user_id: record._castle_id, name: '$login.succeeded')
|
38
41
|
end
|
39
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_castle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johan Brissmyr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.2.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.2.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|