sso-auth 0.1.1 → 0.1.2

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: e9331c12c3bd2e6b60d4400c2e2455c8aa4b693e
4
- data.tar.gz: 8752d123dae674a72042a1be2fb6f483296aa313
3
+ metadata.gz: 16414f6855c1086a9bfef8ce283c9db95bb3e9a5
4
+ data.tar.gz: 5685f81df19520b186241ea34e74fa69997ef043
5
5
  SHA512:
6
- metadata.gz: 15c512fd2f032ddc1f736d04b6132fcba38574d5484237273a409e6fab0e9897ee1eccf29dea805174b463ede1c2b264d9cf1b83dd0e899c77841236877c2433
7
- data.tar.gz: 5d0bc59fc92367e6a78e754d21a74c10285badb970243f2b09f074cbf2173e479a9911c91cd01884e78dc1e24c37d6069eb05a42e353e1c50fca2edc487a94f3
6
+ metadata.gz: 18c9c75d8c266194396bed0975b2f25ea42eb6a01fc82ba3313a629b57ec2c49c560eced3652a99460036a4cf36347fc2a0d6fbb91d62e549fbdedd35db97a52
7
+ data.tar.gz: 95b7dd2e2def84145fc170a520b760dbbd94fc405d000f14adab4dce255fcf234988ca4bbcfcb9df72cab82fc211e808eaf349c2241c1bb1ce6cb911e7027370
@@ -105,11 +105,11 @@ module Sso
105
105
 
106
106
  define_singleton_method :rewrite_devise_session_methods do
107
107
  def self.serialize_into_session(record)
108
- [record.uid, record.authenticatable_salt]
108
+ [record.uid.to_s, record.authenticatable_salt]
109
109
  end
110
110
 
111
111
  def self.serialize_from_session(key, salt)
112
- record = find_by(:uid => key)
112
+ record = find_by(:uid => key.to_s)
113
113
  record if record && record.authenticatable_salt == salt
114
114
  end
115
115
  end
@@ -1,5 +1,5 @@
1
1
  module Sso
2
2
  module Auth
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sso-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - http://openteam.ru
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-14 00:00:00.000000000 Z
11
+ date: 2014-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cancan