uber_login 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/uber_login/version.rb +1 -1
- data/lib/uber_login.rb +6 -1
- metadata +19 -20
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NTRiY2EwNjc3Njk0MDBlYjQ2YWYwZjkzNmUwZDU2MjRhNDM3OGQ0ZQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6edc017bab345b54c7ab10824c609f844aec35a5
|
4
|
+
data.tar.gz: dc19d7e16b1e4e6a1da9bdbeb31207ddbac36e54
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ODZhMDJhZTVmMzMzYTdkN2I0ODYxNzc2NDhjYTcwYTc1NTEwOTc0YjZjNDEw
|
11
|
-
MmU5YjNhZjllN2VlY2MxODljMzk0MWFjNTE4YjczNzE1ZGFiZDc=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZGMyOGJjYzVhYmQ4YzlmMzFhOGU1YWJhN2Y0MTZjYzZhMjFlNGM0OWFiMTgx
|
14
|
-
NjVkNzZmODUzODEzNDM3OWU1NTFhZWFmZmU0NmUwMWMwNmVjNDIzYTU5ZjZm
|
15
|
-
MDdlMTI1YWM1N2Q4ZDVmNzQyYTMxYmM5ODczZGJiOWYxZjg5ZjU=
|
6
|
+
metadata.gz: 589d4c703a068457623c18c00429ea72bbec57a884b98f0c3b18951967288f1d3113eaa590d11658f318be1fd65ab643a7e8eb3a89ca805357c6c351cef91b37
|
7
|
+
data.tar.gz: e82006e2d483c952e8084cd5b42b781ed0352bd112fbb29dec119c8a7bccb0e7f78a6933247b699f1b673cfef39cc8d2985640fcd58f45766594d05e603f5f4a
|
data/lib/uber_login/version.rb
CHANGED
data/lib/uber_login.rb
CHANGED
@@ -197,7 +197,12 @@ module UberLogin
|
|
197
197
|
|
198
198
|
def get_uid(user)
|
199
199
|
uid = user.id
|
200
|
-
|
200
|
+
begin
|
201
|
+
uid = uid.to_s if uid.is_a? BSON::ObjectId
|
202
|
+
rescue Exception
|
203
|
+
end
|
204
|
+
|
205
|
+
uid
|
201
206
|
end
|
202
207
|
|
203
208
|
def current_sequence
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uber_login
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Boffa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: useragent
|
15
|
-
type: :runtime
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- -
|
17
|
+
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
19
|
version: 0.10.0
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.10.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
|
-
type: :runtime
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
31
30
|
requirements:
|
32
|
-
- -
|
31
|
+
- - ">="
|
33
32
|
- !ruby/object:Gem::Version
|
34
33
|
version: '0'
|
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
40
|
version: '0'
|
41
41
|
description: Login and logout management with secure "remember me" capabilities and
|
@@ -46,20 +46,20 @@ extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- lib/uber_login.rb
|
49
|
+
- lib/uber_login/configuration.rb
|
49
50
|
- lib/uber_login/cookie_manager.rb
|
50
|
-
- lib/uber_login/
|
51
|
-
- lib/uber_login/token_encoder.rb
|
51
|
+
- lib/uber_login/session_manager.rb
|
52
52
|
- lib/uber_login/storage.rb
|
53
|
+
- lib/uber_login/token_encoder.rb
|
54
|
+
- lib/uber_login/token_validator.rb
|
53
55
|
- lib/uber_login/version.rb
|
54
|
-
- lib/uber_login/session_manager.rb
|
55
|
-
- lib/uber_login/configuration.rb
|
56
|
-
- spec/token_encoder_spec.rb
|
57
|
-
- spec/storage_spec.rb
|
58
|
-
- spec/spec_helper.rb
|
59
56
|
- spec/cookie_manager_spec.rb
|
60
|
-
- spec/uber_login_spec.rb
|
61
57
|
- spec/session_manager_spec.rb
|
58
|
+
- spec/spec_helper.rb
|
59
|
+
- spec/storage_spec.rb
|
60
|
+
- spec/token_encoder_spec.rb
|
62
61
|
- spec/token_validator_spec.rb
|
62
|
+
- spec/uber_login_spec.rb
|
63
63
|
homepage: https://github.com/AlfaOmega08/uber_login
|
64
64
|
licenses:
|
65
65
|
- MIT
|
@@ -70,17 +70,17 @@ require_paths:
|
|
70
70
|
- lib
|
71
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- -
|
78
|
+
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.1
|
83
|
+
rubygems_version: 2.2.1
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Tired of rewriting the login, logout and current_user methods for the millionth
|
@@ -95,4 +95,3 @@ test_files:
|
|
95
95
|
- spec/uber_login_spec.rb
|
96
96
|
- spec/session_manager_spec.rb
|
97
97
|
- spec/token_validator_spec.rb
|
98
|
-
has_rdoc:
|