haveapi 0.23.0 → 0.23.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: 6c66cdf4f10a5d8d65b70c4d934cd4ab98b96d89fd5af283cdd1d0cd21cbb4b8
4
- data.tar.gz: d3beeb71e1da7049735864c44e76abdd512fe22fbec0df056d10f2f0ad9dc409
3
+ metadata.gz: 0aa11eba96b789b794f330f04fc0d83a6820bef8dcb049ae3e9e8ab6a44260d2
4
+ data.tar.gz: e7af2470dc6267371241a9cacdbfe8fc7bd8ef6dfc01d4c7028062b2fd693beb
5
5
  SHA512:
6
- metadata.gz: a139c2b9bfc85f476a77c8e113d8e9d769dc505261028d807a4804dc108e1dee07dfa65f54220988b28bc78d4893fde0cbad37fee9e0eae01d697a3c58719b88
7
- data.tar.gz: 18525da72a705a5bd8f955b5597f87035bde722fe3520abd2db09e6fac9066cb01eafffb39dbc1f480504568b60852388144e4245861a3d2d2590ba69f7eb790
6
+ metadata.gz: 138a5423132543912b986c7b5ece46f2e007f0da70e1dd01ce9aed622e811d8c2a21c2a14a16dec012668673e1c9e9592326026e52274ddabc8c3f96c0eef84a
7
+ data.tar.gz: 9d96e7a6048db84cfecba31c2f3dc5433c5c59350d3a2e85092dafbc9e34ea28eb28f601f95f7b1171082d1b72d59efc546ab15c04893fe887bd824a93ccd55d
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.0'
19
+ s.add_runtime_dependency 'haveapi-client', '~> 0.23.2'
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.renew_token(ActionRequest.new(
285
- request:,
286
- user: current_user,
287
- token: provider.token(request)
288
- ), ActionResult.new)
284
+ result = provider.config.class.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 }
@@ -1,4 +1,4 @@
1
1
  module HaveAPI
2
2
  PROTOCOL_VERSION = '2.0'.freeze
3
- VERSION = '0.23.0'.freeze
3
+ VERSION = '0.23.2'.freeze
4
4
  end
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.0
4
+ version: 0.23.2
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.0
47
+ version: 0.23.2
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.0
54
+ version: 0.23.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: json
57
57
  requirement: !ruby/object:Gem::Requirement