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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d4bd8555409124e1b9e3ada14c4d7f6fa1922a7e589638d6526fdc0667a26db
4
- data.tar.gz: 3a7b8476abf8a14266553bc18645a2935f4e44889d75dfb2bb27a8fcef4c8b33
3
+ metadata.gz: 499b1d6f461aa4297f3d084494a5311e33632795156cdbd64e8462de97ffb222
4
+ data.tar.gz: 6712b62696b1ce474d5e6fa1dbaeff2b3003babce1e672960f44eb1bc95b2042
5
5
  SHA512:
6
- metadata.gz: 641b56153b7fc523839e059d41f5846ecc5ae440e191573e4ff2721aa1cbe62b3ee7370616bcaae5e1234c02de62f69163d85203b597b611d47e509d35476d9b
7
- data.tar.gz: fc1aa93521ee825fdd21e99fae60f8dc73fec98794c5d90143b24a1d0deff0c52049f4d13616c311349857d0f99685f768334e35a730929d55c0020d43ed32d5
6
+ metadata.gz: 4475927c8cc7e2247968789f3f17b7a043992afbbfa8465d4fcec75960692f1af07f24793436e93110caab9e1a45023c304b75e6800c35c95634125f1ccf7ecd
7
+ data.tar.gz: 436ca0020510847dcfae27bb38f3c5be407558a21c5e5829c9e4605b7d78d94378d35cd22a5c3c8779df26ad7f45c941f5b2a5ef05ceda3b40d5dfa43f6376a1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grand_id_simple (1.0.0)
4
+ grand_id_simple (1.0.2)
5
5
  sinatra (~> 2.2)
6
6
  typhoeus (~> 1.4)
7
7
  webrick (~> 1.8)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GrandIdSimple
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
@@ -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
- body = call_api(:Logout, params: {sessionId: session_id})
84
- Logout.new(body)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grand_id_simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fonsan