lobby_boy 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4617831685bdd22323a6cc6d1250857f50d15a73
|
4
|
+
data.tar.gz: 1e891188c9ca998ee0bc2277612918f494a9ee2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca5dbc1eb3f194a43f78e4f5c1065956d17afe8e6ec9c574337b7b5323bcd739739f3cc3e7f59526e9b0619520a0c801b3c44bd926275490f89b9dfa9ae2cbdb
|
7
|
+
data.tar.gz: 89c2c6dee8629814800377d27cebfd27fedb7e913130d53810470dfaeec8a7b1bda70d8cf018bab1b85a49e1178c43e39febbf44fc2050dbac6cfee2d44ccb86
|
@@ -45,10 +45,11 @@
|
|
45
45
|
|
46
46
|
if (state || locallyLoggedIn) {
|
47
47
|
self.loggedIn = true;
|
48
|
+
var expire = state && (state.expires_at - time <= offset);
|
48
49
|
|
49
|
-
if (state &&
|
50
|
+
if (state && !expire) {
|
50
51
|
checkState(state.state);
|
51
|
-
} else if (!state && locallyLoggedIn) {
|
52
|
+
} else if (expire || (!state && locallyLoggedIn)) {
|
52
53
|
/**
|
53
54
|
* This branch is executed in two cases:
|
54
55
|
*
|
@@ -42,8 +42,14 @@ module LobbyBoy
|
|
42
42
|
origin =~ /#{script_name}\/session\/state/
|
43
43
|
end
|
44
44
|
|
45
|
+
##
|
46
|
+
# Authentication with &prompt=none fails if the user is not already signed in
|
47
|
+
# with the respective provider. Retry without &prompt=none in that case.
|
48
|
+
#
|
49
|
+
# Google responds with 'immediate_failed' in that case.
|
50
|
+
# Our own concierge with 'interaction_required'.
|
45
51
|
def retry?
|
46
|
-
|
52
|
+
['immediate_failed', 'interaction_required'].include? error.message
|
47
53
|
end
|
48
54
|
|
49
55
|
def retry_interactive
|
data/lib/lobby_boy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lobby_boy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Finn GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|