lol_auth 0.1.13 → 0.1.14

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
  SHA256:
3
- metadata.gz: fe4b29b9a735ff6a60a6c87d6ec15621334fa243c95c7e80b92b7723e106ba05
4
- data.tar.gz: b6b440b72708c5e9cadcd4b26ec6ae74b14ea517b11b0afbf637215c58fab4ca
3
+ metadata.gz: 45aa54b05630d2dcf79c56561d7833e1485dd812120f57c22f2d580ce2bc99b2
4
+ data.tar.gz: ff1dc1715881bbb524ebca3e6ee68e8dd4098041a28e9f3d62da04be813a501c
5
5
  SHA512:
6
- metadata.gz: 4d61cb6aa55774466a8af89e30de20921668c43d8ae9effd36cb515085a0f25fa6543c8e82a5ed6dc4f57b033400c4dbba82eb858946f19fe16bcf2d21f103ec
7
- data.tar.gz: 9bd975e38537be5fa84312cb7fcbaa63917bddae6a248a02c17813de6ed717d1e7c759640919d60c613c243318804c3d6839bf432e2ad145e24e563b44f91afd
6
+ metadata.gz: fc4196a1494b308e3507ce5c164252fac8a6d5dfe1230284019997ac6f85980d2d702766ab9da7170cbf849abf6c0dc2b427b5f71f707fcb12a74aa6c5de6498
7
+ data.tar.gz: 3c1786f5abc253d6ef28ff8b984f248b113c5fa82932d0b4bc30e82a1f587ae1b09d5a4c18ea5b146d30490485385fdecd0d4ad69b64b4dc2b9df55c38440456
@@ -9,7 +9,7 @@ module LolAuth
9
9
 
10
10
  @user = @manager.login_with_token(params[:token])
11
11
 
12
- if @user
12
+ if @user.present?
13
13
  sign_in(:user, @user, store: false, bypass: true)
14
14
 
15
15
  response.headers.merge!(@manager.auth_header)
@@ -25,7 +25,7 @@ module LolAuth
25
25
 
26
26
  @user = @manager.process()
27
27
 
28
- if @user
28
+ if @user.present?
29
29
  sign_in(:user, @user, store: false, bypass: true)
30
30
 
31
31
  response.headers.merge!(@manager.auth_header)
@@ -41,7 +41,7 @@ module LolAuth
41
41
 
42
42
  @user = @manager.process()
43
43
 
44
- if @user
44
+ if @user.present?
45
45
  sign_in(:user, @user, store: false, bypass: true)
46
46
 
47
47
  response.headers.merge!(@manager.auth_header)
@@ -1,3 +1,3 @@
1
1
  module LolAuth
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lol_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Zaghi