rails_sso 0.2.0 → 0.2.1

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: 297b750c108836e79da3b03ad4cbfb84341a4854
4
- data.tar.gz: e9f74bbd907a1a149327e8bce747ef3454d78aaa
3
+ metadata.gz: c4d48903a72cbc4b17e174fc2c9d9086d62e5787
4
+ data.tar.gz: cd2858884d2731c62463f479d632d69732f745ff
5
5
  SHA512:
6
- metadata.gz: 62d7687593e7775cfa865c9bc56fcb6d49cef544da2f11ba8f7a1edac0a3a6e767784a7845a87aad73071a668d3c58d0b81828fd85cb1dbbdc6892824a91991f
7
- data.tar.gz: dd07477eb293f068fccf01886dd68d225f0efda7cc0456623a402de8b08824340eafdc2b56a1d5bcbd66d9b27857a2089b69ee895f74d0edb2c7ca392eccea07
6
+ metadata.gz: 635bfda00322076a73614662f89e7b5a40f557988ba1bddbe8de47cab90ac22f3b929ed36e6c991e6848f7466be6e871ab13b7e76aa309e6c251c4a0fb62f18b
7
+ data.tar.gz: c2c3973789ff1a34cabadf07c3edf2778e0fc45560e4ec7f7fb8a8b5f4a8d3e22d478acf23b61f20531c8eefa787baa9e0c0a4c0f5476c82d9cab600c71fc448
@@ -7,7 +7,7 @@ module RailsSso
7
7
  end
8
8
 
9
9
  def current_user_data
10
- @current_user ||= fetch_user
10
+ @current_user_data ||= fetch_user_data
11
11
  end
12
12
 
13
13
  def user_signed_in?
@@ -45,13 +45,13 @@ module RailsSso
45
45
 
46
46
  private
47
47
 
48
- def fetch_user(&block)
48
+ def fetch_user_data
49
49
  return unless session[:access_token]
50
50
 
51
- RailsSso::FetchUser.new(access_token).call(&block)
51
+ RailsSso::FetchUser.new(access_token).call
52
52
  rescue ::OAuth2::Error
53
53
  refresh_access_token! do
54
- RailsSso::FetchUser.new(access_token).call(&block)
54
+ RailsSso::FetchUser.new(access_token).call
55
55
  end
56
56
  end
57
57
  end
@@ -1,3 +1,3 @@
1
1
  module RailsSso
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Dudulski