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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d4bd8555409124e1b9e3ada14c4d7f6fa1922a7e589638d6526fdc0667a26db
4
- data.tar.gz: 3a7b8476abf8a14266553bc18645a2935f4e44889d75dfb2bb27a8fcef4c8b33
3
+ metadata.gz: 1bc3b3b6edce993af91b534132a303cb5bc48a0cc0776bf307f9784e0def4726
4
+ data.tar.gz: e8f968da7e8b355aeeb79bd732bb7ad6cf3e9b9bacd4500ef7d5bc4519201cbd
5
5
  SHA512:
6
- metadata.gz: 641b56153b7fc523839e059d41f5846ecc5ae440e191573e4ff2721aa1cbe62b3ee7370616bcaae5e1234c02de62f69163d85203b597b611d47e509d35476d9b
7
- data.tar.gz: fc1aa93521ee825fdd21e99fae60f8dc73fec98794c5d90143b24a1d0deff0c52049f4d13616c311349857d0f99685f768334e35a730929d55c0020d43ed32d5
6
+ metadata.gz: d5ee28a2898bc451b594d99bbd4156560ee74b544543498ab3a7781540f5813ffb5420fbe5e6bbfd5229b93da3b4a27394c0e22f40ee2f3280b34dd131d67726
7
+ data.tar.gz: 5f277c175596a61fc4a681c3962d9e603cd9b8558ef343d8920915e10fc0cd04922b5eda139dca08c5fa7652a3c570dff7a0c28eaf470e0da6a79339102957ae
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.3)
5
5
  sinatra (~> 2.2)
6
6
  typhoeus (~> 1.4)
7
7
  webrick (~> 1.8)
@@ -57,6 +57,6 @@ class FakeGrandIdSimple < GrandIdSimple
57
57
  end
58
58
 
59
59
  def logout(_session_id)
60
- Logout.new(sessiondeleted: true)
60
+ true
61
61
  end
62
62
  end
@@ -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.3'
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fonsan