authie 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authie/session.rb +6 -0
- data/lib/authie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82f9cbf8b7eb0ccd0b493a4e8be91f94488ffa58
|
4
|
+
data.tar.gz: 46e5638c564822b3a2f10c28faac9b97a0175f6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5885e36cd39f34abaa9c504bb5bed3dc0a9a3f36fc08a0b8444e131e784a156dbefb6881ea319c26947f01fe5a71ea7531004a66180d4ea3e82d5511a8ea63dc
|
7
|
+
data.tar.gz: 59e4fe5e2d7b60ae9c7b71c3b4339f61317aad308336af952e93dcb4b233e611a0beddc955391919d18839eef7f267e9645e44c245b8ef4233987344924f7111
|
data/lib/authie/session.rb
CHANGED
@@ -22,6 +22,12 @@ module Authie
|
|
22
22
|
serialize :data, Hash
|
23
23
|
attr_accessor :controller
|
24
24
|
|
25
|
+
before_validation do
|
26
|
+
if self.user_agent.is_a?(String)
|
27
|
+
self.user_agent = self.user_agent[0,255]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
25
31
|
before_create do
|
26
32
|
self.token = SecureRandom.base64(32)
|
27
33
|
if controller
|
data/lib/authie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Rails library for storing user sessions in a backend database
|
14
14
|
email:
|