grand_id_simple 1.0.1 → 1.0.3
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/fake_grand_id_simple.rb +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: 1bc3b3b6edce993af91b534132a303cb5bc48a0cc0776bf307f9784e0def4726
|
4
|
+
data.tar.gz: e8f968da7e8b355aeeb79bd732bb7ad6cf3e9b9bacd4500ef7d5bc4519201cbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5ee28a2898bc451b594d99bbd4156560ee74b544543498ab3a7781540f5813ffb5420fbe5e6bbfd5229b93da3b4a27394c0e22f40ee2f3280b34dd131d67726
|
7
|
+
data.tar.gz: 5f277c175596a61fc4a681c3962d9e603cd9b8558ef343d8920915e10fc0cd04922b5eda139dca08c5fa7652a3c570dff7a0c28eaf470e0da6a79339102957ae
|
data/Gemfile.lock
CHANGED
data/lib/fake_grand_id_simple.rb
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
|