setsuzoku 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 323e5a4555c1f507e09e4c37a03c17dd0d8be3a9178a103a63472e6a4b5182f7
4
- data.tar.gz: f70654328bbe20500bdc1c4f59e5077633fcaf353e8726d84e9d2918cdf1aef2
3
+ metadata.gz: 8112cbd43e8c0b19c96ed0197a6b91ca7df547c4e8ce58bcb40f531dae3eff2b
4
+ data.tar.gz: 80a90a90db0ad55bc69ec5fc087319261df453c5a247fd8e0772db674a34fd22
5
5
  SHA512:
6
- metadata.gz: 57c8ceaf5f4d4cfdb202126038cfc7e2095d251d5d68bf765663500ac3780b2611295a2df27d970e605cf2aa522de5bd58c5e116d59a3a66369f699f5825fd68
7
- data.tar.gz: e81190b2aca16f38d15002c7d52ceff0541d2a81ca25eb31b8fd497b814db479a81ef71e997515a5358c7907f1ba74b132e0af688fcf2b4e8d6565420ec0ebac
6
+ metadata.gz: b4ee3cc74093cd713d6a0bec429a42639cfd5b552c2038100014ccf82b5f115e60e50096453cd6e0b1f3f99e426f01a2942bc095fd07f8b67538f2e23f5f2bf8
7
+ data.tar.gz: e03952368397f59b1ec4a8a425e1a96ea0c7f4cc5bec67477ba25e76981ffff13af2fc507e988c92a539f02e2b4b949308bd9f2b935704ff9bb44713854510cb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- setsuzoku (0.14.0)
4
+ setsuzoku (0.14.1)
5
5
  activesupport (>= 5.0, < 7)
6
6
  faraday (~> 0.11)
7
7
  nokogiri (~> 1.10)
@@ -10,31 +10,29 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (6.1.4)
13
+ activesupport (6.0.3.4)
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
- i18n (>= 1.6, < 2)
16
- minitest (>= 5.1)
17
- tzinfo (~> 2.0)
18
- zeitwerk (~> 2.3)
15
+ i18n (>= 0.7, < 2)
16
+ minitest (~> 5.1)
17
+ tzinfo (~> 1.1)
18
+ zeitwerk (~> 2.2, >= 2.2.2)
19
19
  addressable (2.7.0)
20
20
  public_suffix (>= 2.0.2, < 5.0)
21
- concurrent-ruby (1.1.9)
21
+ concurrent-ruby (1.1.7)
22
22
  crack (0.4.3)
23
23
  safe_yaml (~> 1.0.0)
24
24
  diff-lcs (1.4.2)
25
- faraday (0.17.4)
25
+ faraday (0.17.3)
26
26
  multipart-post (>= 1.2, < 3)
27
27
  hashdiff (1.0.1)
28
- i18n (1.8.10)
28
+ i18n (1.8.5)
29
29
  concurrent-ruby (~> 1.0)
30
- mini_portile2 (2.5.3)
31
- minitest (5.14.4)
30
+ mini_portile2 (2.4.0)
31
+ minitest (5.14.2)
32
32
  multipart-post (2.1.1)
33
- nokogiri (1.11.7)
34
- mini_portile2 (~> 2.5.0)
35
- racc (~> 1.4)
33
+ nokogiri (1.10.10)
34
+ mini_portile2 (~> 2.4.0)
36
35
  public_suffix (4.0.5)
37
- racc (1.5.2)
38
36
  rake (10.5.0)
39
37
  rspec (3.8.0)
40
38
  rspec-core (~> 3.8.0)
@@ -52,15 +50,16 @@ GEM
52
50
  safe_yaml (1.0.5)
53
51
  sorbet (0.5.5675)
54
52
  sorbet-static (= 0.5.5675)
55
- sorbet-runtime (0.5.6466)
53
+ sorbet-runtime (0.5.5937)
56
54
  sorbet-static (0.5.5675-universal-darwin-14)
57
- tzinfo (2.0.4)
58
- concurrent-ruby (~> 1.0)
55
+ thread_safe (0.3.6)
56
+ tzinfo (1.2.7)
57
+ thread_safe (~> 0.1)
59
58
  webmock (3.8.0)
60
59
  addressable (>= 2.3.6)
61
60
  crack (>= 0.3.2)
62
61
  hashdiff (>= 0.4.0, < 2.0.0)
63
- zeitwerk (2.4.2)
62
+ zeitwerk (2.4.0)
64
63
 
65
64
  PLATFORMS
66
65
  ruby
@@ -146,18 +146,6 @@ module Setsuzoku
146
146
 
147
147
  self.credential.set_token!(resp)
148
148
  end
149
-
150
- #
151
- # set_token!
152
- sig { abstract.params(resp: Setsuzoku::ApiResponse, attrs: T::Hash[Symbol, T.untyped]).void }
153
- #
154
- # Persist relevant token and response data after authentication.
155
- #
156
- # @param resp [Setsuzoku::ApiResponse] the successful response for an authentication token.
157
- # @param attrs [Hash] additional attrs that can be set by a specific credential implementation.
158
- #
159
- # @return [void]
160
- def set_token!(resp, attrs = {}); end
161
149
  end
162
150
  end
163
151
  end
@@ -53,13 +53,13 @@ module Setsuzoku
53
53
  sig{ abstract.params(val: DateTime).returns(T.nilable(DateTime)) }
54
54
  def expires_on=(val); end
55
55
 
56
- # Alternatively, a credential can manually handle what to do with a token response.
57
- # For instance, storing multiple tokens as sub-resources
56
+ # All credentials must have some implementation of storing their token details.
58
57
  #
59
- # @param resp [Hash] the response hash from the external api call for a token.
58
+ # @param resp [Setsuzoku::ApiResponse] the response hash from the external api call for a token.
59
+ # @param attrs [Hash] additional attrs to be passed to super if desired.
60
60
  #
61
61
  # @return [Hash] the attributes to assign to the credential.
62
- sig{ abstract.params(resp: T::Hash[Symbol, T.untyped]).void }
62
+ sig { abstract.params(resp: Setsuzoku::ApiResponse, attrs: T::Hash[Symbol, T.untyped]).void }
63
63
  def set_token!; end
64
64
  end
65
65
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Setsuzoku
5
- VERSION = '0.14.1'
5
+ VERSION = '0.14.2'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: setsuzoku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Stadtler