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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f797bd4bb500cfc0df057f36cd650bc489d99f5e
4
- data.tar.gz: 36fd88d40beabf360457f18b39472cc4d52096bb
3
+ metadata.gz: 82f9cbf8b7eb0ccd0b493a4e8be91f94488ffa58
4
+ data.tar.gz: 46e5638c564822b3a2f10c28faac9b97a0175f6b
5
5
  SHA512:
6
- metadata.gz: 0343ba3d82ddef388fe0e057700280a965c1d9c0965d6505b59cbe83f21490753eeb217ab2e409696692b30ad71515acf4f0bf773d4c608d32f74b9aefd07bb8
7
- data.tar.gz: 0d70089241b7eaccff8536d7526840cc16017efa7a4e806accb5acb441c062129a0eb12fefdce42cad430e89828f75ed78204c1bd6600496b00fac32261fc50d
6
+ metadata.gz: 5885e36cd39f34abaa9c504bb5bed3dc0a9a3f36fc08a0b8444e131e784a156dbefb6881ea319c26947f01fe5a71ea7531004a66180d4ea3e82d5511a8ea63dc
7
+ data.tar.gz: 59e4fe5e2d7b60ae9c7b71c3b4339f61317aad308336af952e93dcb4b233e611a0beddc955391919d18839eef7f267e9645e44c245b8ef4233987344924f7111
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Authie
2
- VERSION = '1.2.4'
2
+ VERSION = '1.2.5'
3
3
  end
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
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-07-24 00:00:00.000000000 Z
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: