statelydb 0.12.1 → 0.12.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: 8446a58ed766b26aeb2effbbbe422d1b809eb9d1833f51c8b0d9309c7787e4a3
4
- data.tar.gz: 1de0251f91a6bd26399ed57999f09d3f1c27f11faecbc9335216d3c986d58d81
3
+ metadata.gz: 16704510255d3248c18f2f26a63e2e94debe5207e6bdb820b8be999a44aeb486
4
+ data.tar.gz: 981f9a3030231adfcf253dbde5c84bb54232d64c4cec169a630d8c085194cc0e
5
5
  SHA512:
6
- metadata.gz: 7194ac043df22729233b6d76e1517e3a34710d68f9c9d486aa1f849489c9bab435f767a1a805287e7cf85d3324bfedce744339aabdb3c03a6ff6a793aaa36b84
7
- data.tar.gz: 02c00886f4704f8d0af5f8a7d885a906034238d924ec30c2fb46543bbce1a8bc646e64ceea8803604b0cb41fa87878a186968e901b320e6bfcf455d4ab8a73cd
6
+ metadata.gz: 647935dfc070e7b871933d9f75d24c7b6e651cd95005b374a65c5af7e1d0f3271259c5bf585350b3c9065fef8e33c10e86212bb3500d87ef0647ed77cf9bb79d
7
+ data.tar.gz: a5857dbb91d7f4f91e2d3518d1e0fcdaf8104e5e26b792440207c18f4c18f3d7e0a639c2d090c9ef95cf25e623b00ee8d708956d8989993a54e4a44b8f5f0947
@@ -115,7 +115,7 @@ module StatelyDB
115
115
  end
116
116
 
117
117
  # Refresh the access token
118
- # @return [string] The new access token
118
+ # @return [Task] A task that will resolve to the new access token
119
119
  def refresh_token
120
120
  Async do
121
121
  # we use an Async::Condition to dedupe multiple requests here
@@ -125,7 +125,7 @@ module StatelyDB
125
125
  if @pending_refresh.nil?
126
126
  begin
127
127
  @pending_refresh = Async::Condition.new
128
- new_access_token = refresh_token_impl.wait
128
+ new_access_token = refresh_token_impl
129
129
  # now broadcast the new token to any waiters
130
130
  @pending_refresh.signal(new_access_token)
131
131
  new_access_token
@@ -150,7 +150,7 @@ module StatelyDB
150
150
  # Refresh the access token implementation
151
151
  # @return [String] The new access token
152
152
  def refresh_token_impl
153
- Async do
153
+ Sync do
154
154
  resp_data = make_auth0_request
155
155
 
156
156
  new_access_token = resp_data["access_token"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statelydb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stately Cloud, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
11
+ date: 2024-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async