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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjcyNWJjYjgwNTZlYTM0OTBiNjk4Y2YyNTQ2YmY1ODRkYmE4MmIxOQ==
4
+ ZGEwZjM1NDhmNmNiYWI5Y2NlZTMyZmMyMzlhMTg5YzE3MjdmNTFiZQ==
5
5
  data.tar.gz: !binary |-
6
- OTJmNGMwMzQyOTMxNWE4YjlkYmY2MDYzMzc3YjQwNTMzNjVmOWM3Mw==
6
+ ZDJmNjkzZmUzZTczM2U3NzZmZjYwNTRiNDljMjljM2Y5M2YzY2FiNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjM3OTE0Y2VkZjg2MmU3ODcxMjM1MDU5N2M1OGE1YzNiNjhhMzRhMjE1ZDA3
10
- Yzc2ZjUwMTc1ZGJlMWRiOGY2NzYzYzgzZmJhYWNkNmM5NDM3NjY3ZDExZjYw
11
- MTI2OTc3ZjVmNDg0MTVhNDViODRlOTQ1NDk0MjY3MDk4ZjE5ODA=
9
+ MTIyMDc4MzRmMTg1MDRkZGE0NmNiNjcyNDY1MmQ1MTEzMTk5ZTQ2YzBjYTE4
10
+ Yzc4MWJkNzdiNGRhNzE4YWVhMTBlMjM3YTQ5MzQ5NzkwYTkxNTk5MjYxNGFm
11
+ ZTY5OWQ4NjI0OWJmMjcxZDk0OThjZDVhMDQwMTQ4ODUzOTUwNDg=
12
12
  data.tar.gz: !binary |-
13
- MTBhOTUxMDBkZmE1YjMxMmQ3NTdmNjhhMWYxOGFjZjk3MjE2ZTkxYjM2ZTk5
14
- MzQ1MjMzYWIwYzBlYzQyYzAwNDhhMTlkODYwNTVjM2U4OTkxY2YyZjFiNWQy
15
- OThkYzJjZDg4OGVmYzViZTYzYzUzNWYwODgxNTBjNWYyZDllYmE=
13
+ MzU1MmQ3ODYxMWZlYWNhNDQ2MGUwZTEwYTNkYzc4YjY0M2U1MGRmNjMyMzM5
14
+ ZDVkYjJhNWUxNDdkMzM2N2I3YzQ0Y2ViNzcxNjQwMzY4MDJjY2VhY2ZiNjU5
15
+ ODU2M2UwNzQ5OGM1MGMwMGE5NDJhMWViOTU2MjAwMmY5MjQzMmM=
@@ -1,3 +1,3 @@
1
1
  module UberLogin
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uber_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Boffa