grand_id_simple 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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/grand_id_simple/version.rb +1 -1
- data/lib/grand_id_simple.rb +3 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 499b1d6f461aa4297f3d084494a5311e33632795156cdbd64e8462de97ffb222
|
4
|
+
data.tar.gz: 6712b62696b1ce474d5e6fa1dbaeff2b3003babce1e672960f44eb1bc95b2042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4475927c8cc7e2247968789f3f17b7a043992afbbfa8465d4fcec75960692f1af07f24793436e93110caab9e1a45023c304b75e6800c35c95634125f1ccf7ecd
|
7
|
+
data.tar.gz: 436ca0020510847dcfae27bb38f3c5be407558a21c5e5829c9e4605b7d78d94378d35cd22a5c3c8779df26ad7f45c941f5b2a5ef05ceda3b40d5dfa43f6376a1
|
data/Gemfile.lock
CHANGED
data/lib/grand_id_simple.rb
CHANGED
@@ -37,11 +37,6 @@ class GrandIdSimple
|
|
37
37
|
keyword_init: true,
|
38
38
|
)
|
39
39
|
|
40
|
-
Logout = Struct.new(
|
41
|
-
:sessiondeleted,
|
42
|
-
keyword_init: true,
|
43
|
-
)
|
44
|
-
|
45
40
|
def initialize(api_key, service_key, base_url: DEFAULT_BASE_URL)
|
46
41
|
@api_key = api_key
|
47
42
|
@service_key = service_key
|
@@ -80,8 +75,9 @@ class GrandIdSimple
|
|
80
75
|
end
|
81
76
|
|
82
77
|
def logout(session_id)
|
83
|
-
|
84
|
-
|
78
|
+
call_api(:Logout, params: {sessionId: session_id})
|
79
|
+
rescue Error => e
|
80
|
+
raise(e) unless e.message['User already logged out']
|
85
81
|
end
|
86
82
|
|
87
83
|
private
|