haveapi 0.23.0 → 0.23.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/haveapi.gemspec +1 -1
- data/lib/haveapi/authentication/token/provider.rb +5 -5
- data/lib/haveapi/version.rb +1 -1
- 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: 54cc880c99b9714c7fd4661be4f8c7b4ff333e6bcbfa896a6d508f53791797a9
|
4
|
+
data.tar.gz: 6c69f7cc21150d4de0bcb3124c03dc50a3c134a945d32c72c2fb7fcca28291e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 516218e4d6fdcfd4fe09114a2bc4ef4b979a0874e7a50db2bd6ce0535f3dcb5240d5ff4ee31e17dd98dd3c7e700d1f7960b4ceda49531d5d05ec4d33e8d4429b
|
7
|
+
data.tar.gz: 932a6f8690fb1378a4ba689f256d51c3b695ed0464d662970ee8e017d7b5f3c09467abcecfbd24e0c17bd7368a56c3c9edfad153a1793db1e32cfe709bcf0144
|
data/haveapi.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_runtime_dependency 'activesupport', '>= 7.1'
|
18
18
|
s.add_runtime_dependency 'github-markdown'
|
19
|
-
s.add_runtime_dependency 'haveapi-client', '~> 0.23.
|
19
|
+
s.add_runtime_dependency 'haveapi-client', '~> 0.23.1'
|
20
20
|
s.add_runtime_dependency 'json'
|
21
21
|
s.add_runtime_dependency 'mail'
|
22
22
|
s.add_runtime_dependency 'nesty', '~> 1.0'
|
@@ -281,11 +281,11 @@ module HaveAPI::Authentication
|
|
281
281
|
|
282
282
|
def exec
|
283
283
|
provider = self.class.resource.token_instance
|
284
|
-
result = provider.config.
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
284
|
+
result = provider.config.renew.handle.call(ActionRequest.new(
|
285
|
+
request:,
|
286
|
+
user: current_user,
|
287
|
+
token: provider.token(request)
|
288
|
+
), ActionResult.new)
|
289
289
|
|
290
290
|
if result.ok?
|
291
291
|
{ valid_to: result.valid_to }
|
data/lib/haveapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haveapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.
|
4
|
+
version: 0.23.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Skokan
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.23.
|
47
|
+
version: 0.23.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.23.
|
54
|
+
version: 0.23.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: json
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|