devise_userbin 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74c13514b787b554dbadad7eca6d1b737660645b
4
- data.tar.gz: 9d572271db7d6c33536c4cfc3143f639dbbde199
3
+ metadata.gz: 1b8601ece7f4cf2de6ff13fce2202528c5313c60
4
+ data.tar.gz: e16a893a37b12a718c2099839b431978ed00adf0
5
5
  SHA512:
6
- metadata.gz: 15a1055c682c6988ab1555c41f9092c498b4a3d39d4fcb0a263f083eedc0cfcfbcbd4b2fb6df85ec797b7a6f736373430479407637080c9df96f81dc20055cb3
7
- data.tar.gz: 187e7d92904849e389b6106d450d039e5e1fd0a2b434bd8d63ec994c9b138c3b880dc1ed7a97cf418360e497032ec508d446c2b89f808b401db9ab142172f543
6
+ metadata.gz: b9ce7f523b2d522076222fb389ae7b8d012d0225024ee8952f6f9a572e347e63bdaceaf8cd70e6e79bed9c774236e2d0e3abebb4224c388ac451b160e34d5ba1
7
+ data.tar.gz: 99a4158de471b9f21d6101d4952f09e289874865ce2259c0a5ddacd7f45e26bb09b7248350d8dabb9f70df0c9cc89526d7b18ddf721eaccc8d1e291f2f140f3b
@@ -9,13 +9,13 @@ Warden::Manager.before_logout do |record, warden, opts|
9
9
  if record.respond_to?(:userbin_id)
10
10
  userbin = warden.request.env['userbin']
11
11
  userbin.logout
12
- userbin.track(name: 'logout.succeeded')
12
+ userbin.track(user_id: record._userbin_id, name: 'logout.succeeded')
13
13
  end
14
14
  end
15
15
 
16
16
  # Track login.failed
17
17
  Warden::Manager.before_failure do |env, opts|
18
- if opts[:action] == 'unauthenticated'
18
+ if opts[:action] == 'unauthenticated' && opts[:recall]
19
19
  userbin = env['userbin']
20
20
  userbin.track(name: 'login.failed')
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module DeviseUserbin
2
- VERSION = "0.7.0".freeze
2
+ VERSION = "0.7.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_userbin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Brissmyr