cloudflare-ruby 0.4.1 → 0.4.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 +4 -4
- data/lib/cloudflare/realtime_kit/participant.rb +9 -1
- data/lib/cloudflare/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78ad6ee80daad3440f0c6819384fcd13105ca857d399a57c63bb427007c01897
|
|
4
|
+
data.tar.gz: a5b52e20244b54a392ea024c03db3c5cf00e69214b2a08964a1b140b22a16d3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59ce5cb8bc0975653040b8f84581195273302f1ee1f715d5d2217bdecd27340941a6e7086b3c46c9d15c546b070138e50b81ad0da02dfe99c785a7a216eed595
|
|
7
|
+
data.tar.gz: '09a32d7b062f21f3e319229bb5754203e66e7506d97529994cf3f7c0788ebb6d77129a7c15bf3700d8c13a08ae8beda5a74c8ebe968747a4c80b170413770836'
|
|
@@ -30,9 +30,17 @@ module Cloudflare
|
|
|
30
30
|
# POST /meetings/{meeting_id}/participants/{id}/token
|
|
31
31
|
# Mints a fresh token for an existing participant (e.g., when their
|
|
32
32
|
# previous token expired or was leaked).
|
|
33
|
+
#
|
|
34
|
+
# Unlike +update+ / +replace+, this endpoint returns only the new
|
|
35
|
+
# token (`{ "data": { "token": "..." } }`) — NOT the full participant
|
|
36
|
+
# object. We merge into +@attrs+ rather than replace via
|
|
37
|
+
# +set_attrs_from_response+, otherwise +id+, +custom_participant_id+,
|
|
38
|
+
# +name+, and friends get clobbered to nil.
|
|
33
39
|
def regenerate_token
|
|
34
40
|
response = request(:post, "#{member_path}/token")
|
|
35
|
-
|
|
41
|
+
inner = self.class.unwrap_envelope(response)
|
|
42
|
+
@attrs.merge!(inner.transform_keys(&:to_s)) if inner.is_a?(Hash)
|
|
43
|
+
@loaded = true
|
|
36
44
|
self
|
|
37
45
|
end
|
|
38
46
|
end
|
data/lib/cloudflare/version.rb
CHANGED