uber_login 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/uber_login/version.rb +1 -1
- data/lib/uber_login.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGEwZjM1NDhmNmNiYWI5Y2NlZTMyZmMyMzlhMTg5YzE3MjdmNTFiZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDJmNjkzZmUzZTczM2U3NzZmZjYwNTRiNDljMjljM2Y5M2YzY2FiNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTIyMDc4MzRmMTg1MDRkZGE0NmNiNjcyNDY1MmQ1MTEzMTk5ZTQ2YzBjYTE4
|
10
|
+
Yzc4MWJkNzdiNGRhNzE4YWVhMTBlMjM3YTQ5MzQ5NzkwYTkxNTk5MjYxNGFm
|
11
|
+
ZTY5OWQ4NjI0OWJmMjcxZDk0OThjZDVhMDQwMTQ4ODUzOTUwNDg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzU1MmQ3ODYxMWZlYWNhNDQ2MGUwZTEwYTNkYzc4YjY0M2U1MGRmNjMyMzM5
|
14
|
+
ZDVkYjJhNWUxNDdkMzM2N2I3YzQ0Y2ViNzcxNjQwMzY4MDJjY2VhY2ZiNjU5
|
15
|
+
ODU2M2UwNzQ5OGM1MGMwMGE5NDJhMWViOTU2MjAwMmY5MjQzMmM=
|
data/lib/uber_login/version.rb
CHANGED
data/lib/uber_login.rb
CHANGED
@@ -148,8 +148,8 @@ module UberLogin
|
|
148
148
|
user_agent = UserAgent.parse(request.user_agent)
|
149
149
|
|
150
150
|
row.ip_address = request.remote_ip if row.respond_to? :ip_address=
|
151
|
-
row.os = user_agent.os if row.respond_to? :os=
|
152
|
-
row.browser = user_agent.browser + ' ' + user_agent.version if row.respond_to? :browser=
|
151
|
+
row.os = (user_agent.os || '') if row.respond_to? :os=
|
152
|
+
row.browser = (user_agent.browser || '') + ' ' + user_agent.version if row.respond_to? :browser=
|
153
153
|
end
|
154
154
|
|
155
155
|
def strong_sessions
|