sticapi_client 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sticapi_client/version.rb +1 -1
- data/lib/sticapi_client.rb +15 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2094f0f377bc1501926b18ff9d9f0e4dd335eb118aa53fc56a3ca0372207703
|
4
|
+
data.tar.gz: 52a8d21284446ed7caac230a381c517651add0629e00072a1ef28fb83402eaa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35b6dfd1511d3d9c1806ac498a9cd254d7b8017f191daa89dbd1404b288ddedc410265f9917252ccc084ebbfbb683696a57b00e6dbc11e11cf7ac3bd3b707763
|
7
|
+
data.tar.gz: bb9ead4a6861cd8ebcac0138e7458db81c05f6a81e5137f08ad0892d750a9118238a273a4c3fb8080be669b0b1708d3e3885b30a7c8b75adab1bbae1d6cbb1d1
|
data/lib/sticapi_client.rb
CHANGED
@@ -95,8 +95,23 @@ module Sticapi
|
|
95
95
|
request.body = options.except(:kind).to_json
|
96
96
|
response = http.request(request)
|
97
97
|
update_token(response)
|
98
|
+
sign_out
|
98
99
|
JSON.parse(response.body)
|
99
100
|
end
|
101
|
+
|
102
|
+
def sign_out
|
103
|
+
uri = URI.parse("#{self.uri}/auth/sign_out")
|
104
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
105
|
+
http.use_ssl = @ssl
|
106
|
+
request = Net::HTTP::Delete.new(uri.request_uri)
|
107
|
+
request["Content-Type"] = "application/json"
|
108
|
+
request["access-token"] = @access_token
|
109
|
+
request["client"] = @client
|
110
|
+
request["uid"] = @uid
|
111
|
+
request["expiry"] = @expiry
|
112
|
+
@access_token = ""
|
113
|
+
response = http.request(request)
|
114
|
+
end
|
100
115
|
end
|
101
116
|
end
|
102
117
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sticapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Viana
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.5.
|
142
|
+
rubygems_version: 3.5.18
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Client to use TJPI sticapi services
|