Relax jwt dependency to support ruby-jwt 3.x (>= 2.0, < 4.0)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
Direzione di ricerca
Inizia dalla dipendenza runtime di gemspec e analizza gli entry point esistenti per encode/decode, la verifica della firma dei webhook e la generazione interna dei token. Allenta il vincolo su jwt, quindi verifica l’SDK con jwt 2.10.x e 3.1.x, assicurandoti che questi comportamenti funzionino con entrambe le versioni.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
getstream-ruby 6.1.1 pins jwt (~> 2.0), which blocks applications from upgrading to ruby-jwt 3.x. Bundler cannot resolve a single bundle when the app (or other gems) require jwt 3.x.
Current behavior
From the published gem (6.1.1):
jwt (~> 2.0) # resolves to 2.x only (e.g. 2.10.2)
Other common dependencies already allow jwt 3, e.g. googleauth uses jwt (>= 1.4, < 4.0). The blocker for a unified bundle is specifically getstream-ruby's upper bound.
Problem
- We cannot
bundle update jwtto 3.x while usinggetstream-ruby. - Ruby loads one
jwtversion per process; there is no supported way for the SDK to stay on 2.x while the host app uses 3.x. - Workarounds (forking the gemspec, hand-editing
Gemfile.lock) are fragile and unsupported.
Use case
We use getstream-ruby for Stream Chat (API client, webhooks, user upsert) and also use jwt directly elsewhere in the app (user tokens, CDN auth, etc.). We want to upgrade to jwt 3.x for security/maintenance alignment with the rest of the ecosystem, without dropping the official SDK.
Requested change
Relax the runtime dependency, for example:
# gemspec
s.add_runtime_dependency "jwt", ">= 2.0", "< 4.0"
Then verify the SDK against jwt 2.10.x and 3.1.x (encode/decode, webhook signature verification, any internal token generation).
Environment
getstream-ruby: 6.1.1- Ruby: 3.x (Rails 7.2 app)
- Current resolved
jwt: 2.10.2 (due to~> 2.0constraint)
- Lingua principale
- Ruby
- Stelle
- 32
- Fork
- 23
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GetStream/stream-chat-ruby
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
GetStream/stream-chat-ruby#137 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
GetStream/stream-chat-ruby#133 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
GetStream/stream-chat-ruby#132 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
GetStream/stream-chat-ruby#127 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
GetStream/stream-chat-ruby#114 · 3 commenti · 1 reazione ·
Tutte le issue di GetStream/stream-chat-ruby
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Please Drop ruby 3.2 support Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
googleapis/google-api-ruby-client#28001 · 5 reazioni ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100