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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a87697bb31a79b0c123a791756fa4d25a556ec311f52d7782c1ac20af1ee62c
4
- data.tar.gz: fae706222471770559a406c40b4ce9f56fb80bfbf1f4e61feed40f81430dc338
3
+ metadata.gz: d2094f0f377bc1501926b18ff9d9f0e4dd335eb118aa53fc56a3ca0372207703
4
+ data.tar.gz: 52a8d21284446ed7caac230a381c517651add0629e00072a1ef28fb83402eaa1
5
5
  SHA512:
6
- metadata.gz: a0b2d43c5eff2b4d82fc7f7005639a59ff1654ae9d08bbb4fbd01a6c638d7fe298234fbf27f6d8dcde09c6acf22381e1414a14c740bf759129add6ce6b588b5f
7
- data.tar.gz: ed3d9a599992421cc9c9a79d5d01233d44ca171ea4bdb7ff302847d18de4eb8e4b4e6c6ee0cc64a18b3f496d69b75a505211da7e329ad306082f75ecb6b04db6
6
+ metadata.gz: 35b6dfd1511d3d9c1806ac498a9cd254d7b8017f191daa89dbd1404b288ddedc410265f9917252ccc084ebbfbb683696a57b00e6dbc11e11cf7ac3bd3b707763
7
+ data.tar.gz: bb9ead4a6861cd8ebcac0138e7458db81c05f6a81e5137f08ad0892d750a9118238a273a4c3fb8080be669b0b1708d3e3885b30a7c8b75adab1bbae1d6cbb1d1
@@ -1,3 +1,3 @@
1
1
  module SticapiClient
2
- VERSION = "3.4.0"
2
+ VERSION = "3.5.0"
3
3
  end
@@ -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.0
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-07-23 00:00:00.000000000 Z
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.15
142
+ rubygems_version: 3.5.18
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Client to use TJPI sticapi services